DeployBase API

The REST API covers accounts, domains, Git deploys, databases, SSH, cron jobs, backups, staging and more. It has 102 endpoints, listed below by area, with the full interactive reference after the list.

Authentication

Generate an API token in Dashboard → Settings → Security and send it with every request. Tokens start with dk_ and can be regenerated or revoked at any time.

curl https://deploybase.io/api/hosting/accounts \
  -H "Authorization: Bearer dk_your_api_token"

Endpoints

Authentication

  • POST/api/auth/register · Register a new account
  • POST/api/auth/login · Log in to an existing account
  • POST/api/auth/logout · Log out and clear session cookies
  • GET/api/auth/me · Get current authenticated user
  • POST/api/auth/change-password · Change the current user's password
  • POST/api/auth/forgot-password · Request a password reset email
  • POST/api/auth/reset-password · Reset password using a token from the reset email
  • POST/api/auth/verify-email · Verify email address using a verification token
  • POST/api/auth/resend-verification · Resend the email verification link
  • GET/api/auth/api-token · Check if an API token exists
  • POST/api/auth/api-token · Generate or regenerate an API token
  • DELETE/api/auth/api-token · Revoke the API token

Accounts

  • GET/api/hosting/products · List all hosting products and their plans
  • GET/api/hosting/products/{slug} · Get a specific hosting product by slug
  • GET/api/hosting/accounts · List all hosting accounts for the authenticated user
  • POST/api/hosting/accounts · Create a new hosting account
  • GET/api/hosting/accounts/{accountId} · Get a specific hosting account with container status
  • DELETE/api/hosting/accounts/{accountId} · Terminate a hosting account
  • GET/api/hosting/accounts/{accountId}/available-plans · List the current plan and the other plans (changing plan is not self-serve; contact us)
  • PATCH/api/hosting/accounts/{accountId}/settings · Update account settings
  • GET/api/hosting/accounts/{accountId}/stats · Get account storage and bandwidth usage statistics
  • POST/api/hosting/accounts/{accountId}/restart · Restart all containers for an account
  • POST/api/hosting/accounts/{accountId}/stop · Stop a site and mark it as suspended
  • POST/api/hosting/accounts/{accountId}/start · Start a stopped site and mark it as active

Git Deploy

  • POST/api/hosting/webhooks/git/{appId} · Git webhook endpoint for auto-deploy
  • GET/api/hosting/accounts/{accountId}/git · Get Git deployment configuration for an account
  • PATCH/api/hosting/accounts/{accountId}/git · Update Git deployment configuration for an account
  • POST/api/hosting/accounts/{accountId}/git/branches · Fetch branches from a Git repository
  • POST/api/hosting/accounts/{accountId}/deploy · Trigger a deployment for the account
  • GET/api/hosting/accounts/{accountId}/deployments · List deployments for an account
  • POST/api/hosting/accounts/{accountId}/domains/{domainId}/git/generate-key · Generate an SSH deploy key for a domain's Git integration
  • PATCH/api/hosting/accounts/{accountId}/domains/{domainId}/git · Update Git deployment configuration for a domain
  • POST/api/hosting/accounts/{accountId}/domains/{domainId}/git/test · Test the Git connection and list branches for a domain
  • POST/api/hosting/accounts/{accountId}/domains/{domainId}/deploy · Trigger a deployment for a specific domain
  • GET/api/hosting/accounts/{accountId}/domains/{domainId}/deployments · List deployments for a specific domain

Monitoring

  • GET/api/hosting/accounts/{accountId}/logs · Get general Docker Compose logs for an account
  • GET/api/hosting/accounts/{accountId}/logs/{logType} · Get specific log type for an account
  • GET/api/hosting/accounts/{accountId}/domains/{domainId}/monitoring/traffic · Get traffic monitoring data for a domain
  • GET/api/hosting/accounts/{accountId}/domains/{domainId}/monitoring/disk · Get disk usage breakdown for a domain
  • GET/api/hosting/accounts/{accountId}/monitoring/resources · Get container resource usage for an account
  • GET/api/hosting/accounts/{accountId}/monitoring/disk · Get account-level disk usage breakdown
  • GET/api/hosting/accounts/{accountId}/services · List running services and their status for an account
  • POST/api/hosting/accounts/{accountId}/services/{service}/restart · Restart a specific service
  • POST/api/hosting/accounts/{accountId}/services/{service}/stop · Stop a specific service
  • POST/api/hosting/accounts/{accountId}/services/{service}/start · Start a specific service
  • GET/api/hosting/accounts/{accountId}/domains/{domainId}/monitoring/mysql · Get MySQL monitoring data
  • GET/api/hosting/accounts/{accountId}/domains/{domainId}/monitoring/php · Get PHP-FPM monitoring data
  • GET/api/hosting/accounts/{accountId}/domains/{domainId}/monitoring/crons · Get cron monitoring data

PHP

  • GET/api/hosting/accounts/{accountId}/php-version · Get current PHP version and available versions
  • POST/api/hosting/accounts/{accountId}/php-version · Change the PHP version for an account
  • GET/api/hosting/accounts/{accountId}/domains/{domainId}/php-settings · Get PHP settings for a specific domain
  • PATCH/api/hosting/accounts/{accountId}/domains/{domainId}/php-settings · Update PHP settings for a specific domain

Domains

  • POST/api/hosting/accounts/{accountId}/domains · Add a new domain to a hosting account
  • POST/api/hosting/accounts/{accountId}/domains/{domainId}/verify · Verify domain DNS and activate it
  • PATCH/api/hosting/accounts/{accountId}/domains/{domainId} · Update domain settings
  • DELETE/api/hosting/accounts/{accountId}/domains/{domainId} · Remove a domain from an account
  • GET/api/hosting/domains · List all domains across all accounts for the current user

SSL

  • POST/api/hosting/accounts/{accountId}/domains/{domainId}/ssl · Request an SSL certificate for a domain

Cron Jobs

  • GET/api/hosting/accounts/{accountId}/domains/{domainId}/crons · List cron jobs for a domain
  • POST/api/hosting/accounts/{accountId}/domains/{domainId}/crons · Add a new cron job
  • DELETE/api/hosting/accounts/{accountId}/domains/{domainId}/crons · Delete a cron job
  • GET/api/hosting/accounts/{accountId}/domains/{domainId}/crontab · Get the raw crontab content for a domain
  • PUT/api/hosting/accounts/{accountId}/domains/{domainId}/crontab · Replace the entire crontab content for a domain

Node.js

  • POST/api/hosting/accounts/{accountId}/domains/{domainId}/restart-node · Restart the Node.js container for a domain
  • GET/api/hosting/accounts/{accountId}/domains/{domainId}/node-logs · Get Node.js application logs for a domain

SSH

  • GET/api/hosting/accounts/{accountId}/ssh · Get SSH access status and credentials
  • POST/api/hosting/accounts/{accountId}/ssh/enable · Enable SSH access for an account
  • POST/api/hosting/accounts/{accountId}/ssh/disable · Disable SSH access for an account
  • POST/api/hosting/accounts/{accountId}/ssh/reset-password · Reset the SSH password for an account
  • GET/api/hosting/accounts/{accountId}/ssh-keys · List SSH keys for an account
  • POST/api/hosting/accounts/{accountId}/ssh-keys · Add an SSH public key
  • DELETE/api/hosting/accounts/{accountId}/ssh-keys/{fingerprint} · Remove an SSH key by fingerprint

Databases

  • GET/api/hosting/accounts/{accountId}/databases · List databases for an account
  • POST/api/hosting/accounts/{accountId}/databases · Create a new database

Backups

  • GET/api/hosting/accounts/{accountId}/backups · List backups for an account
  • POST/api/hosting/accounts/{accountId}/backups · Create a new backup
  • DELETE/api/hosting/accounts/{accountId}/backups/{backupId} · Delete a specific backup
  • POST/api/hosting/accounts/{accountId}/backups/{backupId}/restore · Restore a backup
  • GET/api/hosting/accounts/{accountId}/backup-schedule · Get the backup schedule configuration
  • PATCH/api/hosting/accounts/{accountId}/backup-schedule · Update the backup schedule configuration

File Manager

  • GET/api/hosting/accounts/{accountId}/file-manager · Get file manager (SFTP) access credentials

Installers

  • POST/api/hosting/accounts/{accountId}/install/{script} · Run an installation script (Laravel, Node.js, or static)
  • POST/api/hosting/accounts/{accountId}/install/wordpress · Install WordPress on an account
  • POST/api/hosting/accounts/{accountId}/install/laravel · Install Laravel on an account

Web Rules

  • GET/api/hosting/accounts/{accountId}/domains/{domainId}/web-rules · List web rules
  • POST/api/hosting/accounts/{accountId}/domains/{domainId}/web-rules · Add a web rule
  • DELETE/api/hosting/accounts/{accountId}/domains/{domainId}/web-rules/{ruleIndex} · Remove a web rule

Staging

  • GET/api/hosting/accounts/{accountId}/domains/{domainId}/staging · Get staging status
  • POST/api/hosting/accounts/{accountId}/domains/{domainId}/staging · Create staging environment
  • DELETE/api/hosting/accounts/{accountId}/domains/{domainId}/staging · Delete staging environment
  • POST/api/hosting/accounts/{accountId}/domains/{domainId}/staging/push · Push staging to production

Security

  • GET/api/hosting/accounts/{accountId}/domains/{domainId}/security · Get security status
  • POST/api/hosting/accounts/{accountId}/domains/{domainId}/security/ip-blocklist · Update IP blocklist
  • PATCH/api/hosting/accounts/{accountId}/domains/{domainId}/security/headers · Update security headers
  • POST/api/hosting/accounts/{accountId}/domains/{domainId}/security/scan · Run malware scan

Cloudflare

  • GET/api/hosting/accounts/{accountId}/cloudflare · Get Cloudflare connection status
  • POST/api/hosting/accounts/{accountId}/cloudflare · Connect Cloudflare
  • DELETE/api/hosting/accounts/{accountId}/cloudflare · Disconnect Cloudflare
  • GET/api/hosting/accounts/{accountId}/cloudflare/dns · Get DNS records
  • POST/api/hosting/accounts/{accountId}/cloudflare/purge-cache · Purge Cloudflare cache
  • GET/api/hosting/accounts/{accountId}/cloudflare/analytics · Get Cloudflare analytics
  • POST/api/hosting/accounts/{accountId}/cloudflare/dev-mode · Toggle development mode

Interactive reference

Request and response schemas, with examples you can copy. The raw OpenAPI file is at /openapi.json.