CloudStick REST API
The CloudStick API is organized around REST. It has predictable, resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.
All requests are made over HTTPS to the base URL below. Requests made over plain HTTP are rejected.
BASE_URL = https://version2-api.cloudstick.io
Every endpoint is prefixed with /api/v2.
Pass your API key as a Bearer token in the
Authorization header of every request:Authorization: Bearer cs_live_4f9a2b7c8d1e6035a2b1c0d9e8f7You can find or regenerate your API key in the CloudStick dashboard under Account → API Keys.
Errors
CloudStick uses conventional HTTP response codes to indicate success or failure. Codes in the 2xx range indicate success; codes in the 4xx range indicate a client error; codes in the 5xx range indicate a server error.
All error responses share the same shape:
{
"message": "Error description"
}| Code | Meaning |
|---|---|
200 | OK |
201 | Created |
400 | Bad Request — malformed or missing parameters. |
401 | Unauthorized — no valid credentials supplied. |
403 | Forbidden — credentials lack permission. |
404 | Not Found — resource does not exist. |
409 | Conflict — request conflicts with current state. |
429 | Too Many Requests — rate limit hit. |
500 | Internal Server Error — something went wrong on our end. |
Pagination
List endpoints accept pagination parameters and return a consistent envelope. Pagination is controlled with two query parameters:
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number. Defaults to 1. |
limit | integer | Items per page. Default 20, max 100. |
Paginated responses are wrapped as follows:
{
"data": [ ... ],
"total": 120,
"page": 1,
"limit": 20
}Rate limiting
Rate limiting is delegated to CloudStick's edge infrastructure. If you exceed the allowed request rate, the API responds with 429 Too Many Requests.
429, back off and retry after a short delay. Implement exponential backoff in production integrations.{
"message": "Too Many Requests"
}Users
Manage the authenticated user's profile, credentials, API keys and account history.
Get profile
/api/v2/users/{uid}Retrieve the profile of a user.
| Field | Type | Description | |
|---|---|---|---|
| uid | string | required | Unique identifier of the user. |
Returns 200 OK on success. See Errors for failure responses.
Update profile
/api/v2/users/{uid}Update profile fields. Only the supplied fields are changed.
| Field | Type | Description | |
|---|---|---|---|
| uid | string | required | Unique identifier of the user. |
| Field | Type | Description | |
|---|---|---|---|
| first_name | string | optional | Updated first name. |
| last_name | string | optional | Updated last name. |
| phone | string | optional | Updated phone number (E.164). |
Returns 200 OK on success. See Errors for failure responses.
Change password
/api/v2/users/{uid}/passwordChange the password for an authenticated user. The current password must be supplied.
| Field | Type | Description | |
|---|---|---|---|
| uid | string | required | Unique identifier of the user. |
| Field | Type | Description | |
|---|---|---|---|
| old_password | string | required | The current password. |
| new_password | string | required | The new password. |
Returns 200 OK on success. See Errors for failure responses.
Delete account
/api/v2/users/{uid}Permanently delete the user account and all associated resources. This action cannot be undone.
| Field | Type | Description | |
|---|---|---|---|
| uid | string | required | Unique identifier of the user. |
Returns 200 OK on success. See Errors for failure responses.
Regenerate API key
/api/v2/users/{uid}/regenerate/apikeyGenerate a new API key, immediately invalidating the previous key. Store the returned key securely — it is shown only once.
| Field | Type | Description | |
|---|---|---|---|
| uid | string | required | Unique identifier of the user. |
Returns 200 OK on success. See Errors for failure responses.
List login history
/api/v2/users/{uid}/login-historyReturn a paginated list of login events for the user.
| Field | Type | Description | |
|---|---|---|---|
| uid | string | required | Unique identifier of the user. |
| Field | Type | Description | |
|---|---|---|---|
| page | integer | optional | Page number (default 1). |
| limit | integer | optional | Items per page (max 100). |
Returns 200 OK on success. See Errors for failure responses.
List account activity
/api/v2/users/{uid}/activityReturn a paginated activity log for the user account.
| Field | Type | Description | |
|---|---|---|---|
| uid | string | required | Unique identifier of the user. |
| Field | Type | Description | |
|---|---|---|---|
| page | integer | optional | Page number. |
| limit | integer | optional | Items per page (max 100). |
Returns 200 OK on success. See Errors for failure responses.
List pending confirmations
/api/v2/users/{uid}/pendingReturn all pending confirmation requests (server transfers, team invites, etc.) for the user.
| Field | Type | Description | |
|---|---|---|---|
| uid | string | required | Unique identifier of the user. |
Returns 200 OK on success. See Errors for failure responses.
Servers
Add, configure, and monitor your cloud servers.
Add a server
/api/v2/servers/users/{uid}Connect a new server to Cloudstick. The agent is installed automatically.
| Field | Type | Description | |
|---|---|---|---|
| uid | string | required | Unique identifier of the user. |
| Field | Type | Description | |
|---|---|---|---|
| name | string | required | Friendly name for the server. |
| ip | string | required | Public IPv4 address. |
| provider | string | optional | Cloud provider slug, e.g. digitalocean. |
| os | string | optional | OS slug, e.g. ubuntu-22. |
Returns 201 Created on success. See Errors for failure responses.
List servers
/api/v2/servers/users/{uid}Return all servers belonging to the user.
| Field | Type | Description | |
|---|---|---|---|
| uid | string | required | Unique identifier of the user. |
Returns 200 OK on success. See Errors for failure responses.
Get server details
/api/v2/servers/{sid}/users/{uid}Retrieve detailed information about a specific server.
| Field | Type | Description | |
|---|---|---|---|
| sid | string | required | Unique identifier of the server. |
| uid | string | required | Unique identifier of the user. |
Returns 200 OK on success. See Errors for failure responses.
Delete server
/api/v2/servers/{sid}/users/{uid}Remove a server from Cloudstick. The agent is uninstalled and all managed resources are detached.
| Field | Type | Description | |
|---|---|---|---|
| sid | string | required | Unique identifier of the server. |
| uid | string | required | Unique identifier of the user. |
Returns 200 OK on success. See Errors for failure responses.
Rename server
/api/v2/name/servers/{sid}/users/{uid}Change the friendly name of a server.
| Field | Type | Description | |
|---|---|---|---|
| sid | string | required | Unique identifier of the server. |
| uid | string | required | Unique identifier of the user. |
| Field | Type | Description | |
|---|---|---|---|
| name | string | required | The new server name. |
Returns 200 OK on success. See Errors for failure responses.
Update timezone
/api/v2/timezone/servers/{sid}/users/{uid}Set the system timezone of the server.
| Field | Type | Description | |
|---|---|---|---|
| sid | string | required | Unique identifier of the server. |
| uid | string | required | Unique identifier of the user. |
| Field | Type | Description | |
|---|---|---|---|
| timezone | string | required | An IANA timezone, e.g. America/New_York. |
Returns 200 OK on success. See Errors for failure responses.
Reboot server
/api/v2/reboot/servers/{sid}/users/{uid}Issue a graceful reboot of the server.
| Field | Type | Description | |
|---|---|---|---|
| sid | string | required | Unique identifier of the server. |
| uid | string | required | Unique identifier of the user. |
Returns 200 OK on success. See Errors for failure responses.
Change PHP CLI version
/api/v2/phpcli/servers/{sid}/users/{uid}Set the default PHP version used by the command-line interpreter.
| Field | Type | Description | |
|---|---|---|---|
| sid | string | required | Unique identifier of the server. |
| uid | string | required | Unique identifier of the user. |
| Field | Type | Description | |
|---|---|---|---|
| php_version | string | required | PHP version, e.g. 8.3. |
Returns 200 OK on success. See Errors for failure responses.
Server activity log
/api/v2/activity/servers/{sid}/users/{uid}Return a paginated activity log for the server.
| Field | Type | Description | |
|---|---|---|---|
| sid | string | required | Unique identifier of the server. |
| uid | string | required | Unique identifier of the user. |
| Field | Type | Description | |
|---|---|---|---|
| page | integer | optional | Page number. |
| limit | integer | optional | Items per page (max 100). |
Returns 200 OK on success. See Errors for failure responses.
Transfer server
/api/v2/transfer/servers/{sid}/users/{uid}Initiate a transfer of server ownership to another user. The target user must accept the pending transfer.
| Field | Type | Description | |
|---|---|---|---|
| sid | string | required | Unique identifier of the server. |
| uid | string | required | Unique identifier of the user. |
| Field | Type | Description | |
|---|---|---|---|
| target_uid | string | required | The recipient user id. |
Returns 200 OK on success. See Errors for failure responses.
Websites
Manage websites hosted on your servers.
List websites
/api/v2/websites/servers/{sid}/users/{uid}Return all websites on the given server.
| Field | Type | Description | |
|---|---|---|---|
| sid | string | required | Server identifier. |
| uid | string | required | User identifier. |
Returns 200 OK on success. See Errors for failure responses.
Website activity
/api/v2/activity/websites/{wid}/servers/{sid}/users/{uid}Return the activity log for a specific website.
| Field | Type | Description | |
|---|---|---|---|
| wid | string | required | Website identifier. |
| sid | string | required | Server identifier. |
| uid | string | required | User identifier. |
Returns 200 OK on success. See Errors for failure responses.
Change PHP version
/api/v2/phpversion/websites/{wid}/servers/{sid}/users/{uid}Switch the PHP version for the website.
| Field | Type | Description | |
|---|---|---|---|
| wid | string | required | Website identifier. |
| sid | string | required | Server identifier. |
| uid | string | required | User identifier. |
| Field | Type | Description | |
|---|---|---|---|
| php_version | string | required | Target PHP version, e.g. 8.3. |
Returns 200 OK on success. See Errors for failure responses.
Change stack
/api/v2/stack/websites/{wid}/servers/{sid}/users/{uid}Switch the web server stack (e.g. nginx → apache).
| Field | Type | Description | |
|---|---|---|---|
| wid | string | required | Website identifier. |
| sid | string | required | Server identifier. |
| uid | string | required | User identifier. |
| Field | Type | Description | |
|---|---|---|---|
| stack | string | required | Stack slug: nginx, apache, or ols. |
Returns 200 OK on success. See Errors for failure responses.
Add domains
/api/v2/adddomain/websites/{wid}/servers/{sid}/users/{uid}Add one or more alias domains to the website.
| Field | Type | Description | |
|---|---|---|---|
| wid | string | required | Website identifier. |
| sid | string | required | Server identifier. |
| uid | string | required | User identifier. |
| Field | Type | Description | |
|---|---|---|---|
| domains | string[] | required | Array of domains to add. |
Returns 200 OK on success. See Errors for failure responses.
Remove domains
/api/v2/removedomain/websites/{wid}/servers/{sid}/users/{uid}Remove alias domains from the website.
| Field | Type | Description | |
|---|---|---|---|
| wid | string | required | Website identifier. |
| sid | string | required | Server identifier. |
| uid | string | required | User identifier. |
| Field | Type | Description | |
|---|---|---|---|
| domains | string[] | required | Array of domains to remove. |
Returns 200 OK on success. See Errors for failure responses.
WordPress
Automate WordPress installations, credentials, and magic login links.
Create WordPress site
/api/v2/wordpress/create/websites/{wid}/servers/{sid}/users/{uid}Install WordPress on a website.
| Field | Type | Description | |
|---|---|---|---|
| wid | string | required | Website identifier. |
| sid | string | required | Server identifier. |
| uid | string | required | User identifier. |
Returns 200 OK on success. See Errors for failure responses.
Get WordPress details
/api/v2/wordpress/websites/{wid}/servers/{sid}/users/{uid}Retrieve WordPress installation details including admin credentials.
| Field | Type | Description | |
|---|---|---|---|
| wid | string | required | Website identifier. |
| sid | string | required | Server identifier. |
| uid | string | required | User identifier. |
Returns 200 OK on success. See Errors for failure responses.
Delete WordPress site
/api/v2/wordpress/delete/websites/{wid}/servers/{sid}/users/{uid}Uninstall WordPress from a website.
| Field | Type | Description | |
|---|---|---|---|
| wid | string | required | Website identifier. |
| sid | string | required | Server identifier. |
| uid | string | required | User identifier. |
Returns 200 OK on success. See Errors for failure responses.
Generate magic login link
/api/v2/wordpress/magiclink/websites/{wid}/servers/{sid}/users/{uid}Generate a one-time WordPress admin login URL that expires in 15 minutes.
| Field | Type | Description | |
|---|---|---|---|
| wid | string | required | Website identifier. |
| sid | string | required | Server identifier. |
| uid | string | required | User identifier. |
Returns 200 OK on success. See Errors for failure responses.
Databases
Create and manage MySQL/MariaDB databases and users.
Create database
/api/v2/databases/servers/{sid}/users/{uid}Create a new MySQL/MariaDB database on the server.
| Field | Type | Description | |
|---|---|---|---|
| sid | string | required | Server identifier. |
| uid | string | required | User identifier. |
| Field | Type | Description | |
|---|---|---|---|
| name | string | required | Database name. |
Returns 201 Created on success. See Errors for failure responses.
List databases
/api/v2/databases/servers/{sid}/users/{uid}Return all databases on the server.
| Field | Type | Description | |
|---|---|---|---|
| sid | string | required | Server identifier. |
| uid | string | required | User identifier. |
Returns 200 OK on success. See Errors for failure responses.
Delete database
/api/v2/databases/{did}/servers/{sid}/users/{uid}Permanently drop the database.
| Field | Type | Description | |
|---|---|---|---|
| did | string | required | Database identifier. |
| sid | string | required | Server identifier. |
| uid | string | required | User identifier. |
Returns 200 OK on success. See Errors for failure responses.
Create database user
/api/v2/databaseusers/servers/{sid}/users/{uid}Create a new MySQL/MariaDB user.
| Field | Type | Description | |
|---|---|---|---|
| sid | string | required | Server identifier. |
| uid | string | required | User identifier. |
| Field | Type | Description | |
|---|---|---|---|
| username | string | required | Database username. |
| password | string | required | Database password. |
Returns 201 Created on success. See Errors for failure responses.
List database users
/api/v2/databaseusers/servers/{sid}/users/{uid}Return all database users on the server.
| Field | Type | Description | |
|---|---|---|---|
| sid | string | required | Server identifier. |
| uid | string | required | User identifier. |
Returns 200 OK on success. See Errors for failure responses.
Delete database user
/api/v2/databaseusers/{dbuid}/servers/{sid}/users/{uid}Remove a database user.
| Field | Type | Description | |
|---|---|---|---|
| dbuid | string | required | Database user identifier. |
| sid | string | required | Server identifier. |
| uid | string | required | User identifier. |
Returns 200 OK on success. See Errors for failure responses.
Assign user to database
/api/v2/databases/{did}/assign/servers/{sid}/users/{uid}Link an existing database user to a database.
| Field | Type | Description | |
|---|---|---|---|
| did | string | required | Database identifier. |
| sid | string | required | Server identifier. |
| uid | string | required | User identifier. |
| Field | Type | Description | |
|---|---|---|---|
| dbuid | string | required | Database user to link. |
Returns 200 OK on success. See Errors for failure responses.
SSL Certificates
Install, renew, and remove SSL certificates on your websites.
Install Let's Encrypt certificate
/api/v2/ssl/letsencrypt/websites/{wid}/servers/{sid}/users/{uid}Issue and install a free Let's Encrypt SSL certificate for the website.
| Field | Type | Description | |
|---|---|---|---|
| wid | string | required | Website identifier. |
| sid | string | required | Server identifier. |
| uid | string | required | User identifier. |
Returns 200 OK on success. See Errors for failure responses.
Upload custom certificate
/api/v2/ssl/custom/websites/{wid}/servers/{sid}/users/{uid}Upload a custom SSL certificate and private key.
| Field | Type | Description | |
|---|---|---|---|
| wid | string | required | Website identifier. |
| sid | string | required | Server identifier. |
| uid | string | required | User identifier. |
| Field | Type | Description | |
|---|---|---|---|
| certificate | string | required | PEM-encoded certificate. |
| private_key | string | required | PEM-encoded private key. |
Returns 200 OK on success. See Errors for failure responses.
Remove certificate
/api/v2/ssl/websites/{wid}/servers/{sid}/users/{uid}Remove the SSL certificate from a website.
| Field | Type | Description | |
|---|---|---|---|
| wid | string | required | Website identifier. |
| sid | string | required | Server identifier. |
| uid | string | required | User identifier. |
Returns 200 OK on success. See Errors for failure responses.
Renew free certificate
/api/v2/ssl/renew/websites/{wid}/servers/{sid}/users/{uid}Force-renew the Let's Encrypt certificate before it expires.
| Field | Type | Description | |
|---|---|---|---|
| wid | string | required | Website identifier. |
| sid | string | required | Server identifier. |
| uid | string | required | User identifier. |
Returns 200 OK on success. See Errors for failure responses.
Backups
Manage automated backup plans and trigger manual backups.
List backup plans
/api/v2/backupplans/users/{uid}Return all available backup plans for the user.
| Field | Type | Description | |
|---|---|---|---|
| uid | string | required | User identifier. |
Returns 200 OK on success. See Errors for failure responses.
Enable backups
/api/v2/backups/websites/{wid}/servers/{sid}/users/{uid}Enable scheduled backups for a website.
| Field | Type | Description | |
|---|---|---|---|
| wid | string | required | Website identifier. |
| sid | string | required | Server identifier. |
| uid | string | required | User identifier. |
| Field | Type | Description | |
|---|---|---|---|
| plan_id | string | required | Backup plan to use. |
| frequency | string | optional | Frequency: daily or weekly. |
Returns 200 OK on success. See Errors for failure responses.
Trigger manual backup
/api/v2/backups/manual/websites/{wid}/servers/{sid}/users/{uid}Immediately trigger an on-demand backup.
| Field | Type | Description | |
|---|---|---|---|
| wid | string | required | Website identifier. |
| sid | string | required | Server identifier. |
| uid | string | required | User identifier. |
Returns 200 OK on success. See Errors for failure responses.
Restore backup
/api/v2/backups/restore/websites/{wid}/servers/{sid}/users/{uid}Restore a website from a specific backup.
| Field | Type | Description | |
|---|---|---|---|
| wid | string | required | Website identifier. |
| sid | string | required | Server identifier. |
| uid | string | required | User identifier. |
| Field | Type | Description | |
|---|---|---|---|
| backup_id | string | required | Backup snapshot to restore. |
Returns 200 OK on success. See Errors for failure responses.
SSH & System
Manage SSH keys and system users on your servers.
List SSH keys
/api/v2/sshkeys/servers/{sid}/users/{uid}Return all SSH public keys on the server.
| Field | Type | Description | |
|---|---|---|---|
| sid | string | required | Server identifier. |
| uid | string | required | User identifier. |
Returns 200 OK on success. See Errors for failure responses.
Add SSH key
/api/v2/sshkeys/servers/{sid}/users/{uid}Add a public SSH key to the server.
| Field | Type | Description | |
|---|---|---|---|
| sid | string | required | Server identifier. |
| uid | string | required | User identifier. |
| Field | Type | Description | |
|---|---|---|---|
| label | string | required | Friendly label for the key. |
| public_key | string | required | The OpenSSH public key string. |
Returns 201 Created on success. See Errors for failure responses.
Delete SSH key
/api/v2/sshkeys/{kid}/servers/{sid}/users/{uid}Remove an SSH key from the server.
| Field | Type | Description | |
|---|---|---|---|
| kid | string | required | SSH key identifier. |
| sid | string | required | Server identifier. |
| uid | string | required | User identifier. |
Returns 200 OK on success. See Errors for failure responses.
Create system user
/api/v2/systemusers/servers/{sid}/users/{uid}Create a Linux system user on the server.
| Field | Type | Description | |
|---|---|---|---|
| sid | string | required | Server identifier. |
| uid | string | required | User identifier. |
| Field | Type | Description | |
|---|---|---|---|
| username | string | required | Linux username. |
| password | string | required | Password for the user. |
Returns 201 Created on success. See Errors for failure responses.
List system users
/api/v2/systemusers/servers/{sid}/users/{uid}Return all system users on the server.
| Field | Type | Description | |
|---|---|---|---|
| sid | string | required | Server identifier. |
| uid | string | required | User identifier. |
Returns 200 OK on success. See Errors for failure responses.
Delete system user
/api/v2/systemusers/{suid}/servers/{sid}/users/{uid}Remove a system user from the server.
| Field | Type | Description | |
|---|---|---|---|
| suid | string | required | System user identifier. |
| sid | string | required | Server identifier. |
| uid | string | required | User identifier. |
Returns 200 OK on success. See Errors for failure responses.
Cron Jobs
Schedule recurring tasks at the server and website level.
Create server cron
/api/v2/crons/servers/{sid}/users/{uid}Add a cron job to the server crontab.
| Field | Type | Description | |
|---|---|---|---|
| sid | string | required | Server identifier. |
| uid | string | required | User identifier. |
| Field | Type | Description | |
|---|---|---|---|
| schedule | string | required | Cron expression, e.g. 0 * * * *. |
| command | string | required | Shell command to run. |
| user | string | optional | System user to run the command as. |
Returns 201 Created on success. See Errors for failure responses.
List server crons
/api/v2/crons/servers/{sid}/users/{uid}Return all cron jobs on the server.
| Field | Type | Description | |
|---|---|---|---|
| sid | string | required | Server identifier. |
| uid | string | required | User identifier. |
Returns 200 OK on success. See Errors for failure responses.
Delete server cron
/api/v2/crons/{cid}/servers/{sid}/users/{uid}Remove a cron job from the server.
| Field | Type | Description | |
|---|---|---|---|
| cid | string | required | Cron job identifier. |
| sid | string | required | Server identifier. |
| uid | string | required | User identifier. |
Returns 200 OK on success. See Errors for failure responses.
FTP Accounts
Create and manage FTP accounts for your websites.
Create FTP account
/api/v2/ftp/websites/{wid}/servers/{sid}/users/{uid}Create an FTP account scoped to a website directory.
| Field | Type | Description | |
|---|---|---|---|
| wid | string | required | Website identifier. |
| sid | string | required | Server identifier. |
| uid | string | required | User identifier. |
| Field | Type | Description | |
|---|---|---|---|
| username | string | required | FTP username. |
| password | string | required | FTP password. |
Returns 201 Created on success. See Errors for failure responses.
List FTP accounts
/api/v2/ftp/websites/{wid}/servers/{sid}/users/{uid}Return all FTP accounts for a website.
| Field | Type | Description | |
|---|---|---|---|
| wid | string | required | Website identifier. |
| sid | string | required | Server identifier. |
| uid | string | required | User identifier. |
Returns 200 OK on success. See Errors for failure responses.
Delete FTP account
/api/v2/ftp/{fid}/websites/{wid}/servers/{sid}/users/{uid}Remove an FTP account.
| Field | Type | Description | |
|---|---|---|---|
| fid | string | required | FTP account identifier. |
| wid | string | required | Website identifier. |
| sid | string | required | Server identifier. |
| uid | string | required | User identifier. |
Returns 200 OK on success. See Errors for failure responses.
Email Services
Manage email accounts, passwords, quotas, and forwarders.
Create email account
/api/v2/emails/websites/{wid}/servers/{sid}/users/{uid}Create an email account on the website domain.
| Field | Type | Description | |
|---|---|---|---|
| wid | string | required | Website identifier. |
| sid | string | required | Server identifier. |
| uid | string | required | User identifier. |
| Field | Type | Description | |
|---|---|---|---|
| string | required | Full email address. | |
| password | string | required | Account password. |
| quota_mb | integer | optional | Mailbox quota in MB. |
Returns 201 Created on success. See Errors for failure responses.
List email accounts
/api/v2/emails/websites/{wid}/servers/{sid}/users/{uid}Return all email accounts for the website.
| Field | Type | Description | |
|---|---|---|---|
| wid | string | required | Website identifier. |
| sid | string | required | Server identifier. |
| uid | string | required | User identifier. |
Returns 200 OK on success. See Errors for failure responses.
Delete email account
/api/v2/emails/{eid}/websites/{wid}/servers/{sid}/users/{uid}Permanently remove an email account and its mailbox.
| Field | Type | Description | |
|---|---|---|---|
| eid | string | required | Email account identifier. |
| wid | string | required | Website identifier. |
| sid | string | required | Server identifier. |
| uid | string | required | User identifier. |
Returns 200 OK on success. See Errors for failure responses.
Add email forwarder
/api/v2/emailforwarders/websites/{wid}/servers/{sid}/users/{uid}Create an email forwarder that redirects messages to another address.
| Field | Type | Description | |
|---|---|---|---|
| wid | string | required | Website identifier. |
| sid | string | required | Server identifier. |
| uid | string | required | User identifier. |
| Field | Type | Description | |
|---|---|---|---|
| source | string | required | Source email address. |
| destination | string | required | Destination email address. |
Returns 201 Created on success. See Errors for failure responses.
DNS / Cloudflare
Manage Cloudflare zones, DNS records, and cache purging.
Add Cloudflare zone
/api/v2/cloudflarezones/users/{uid}Add a domain to Cloudflare via the linked integration.
| Field | Type | Description | |
|---|---|---|---|
| uid | string | required | User identifier. |
| Field | Type | Description | |
|---|---|---|---|
| domain | string | required | Root domain to add. |
Returns 201 Created on success. See Errors for failure responses.
Create DNS record
/api/v2/dnsrecords/cloudflarezones/{zone_id}/users/{uid}Create a DNS record in the Cloudflare zone.
| Field | Type | Description | |
|---|---|---|---|
| zone_id | string | required | Cloudflare zone identifier. |
| uid | string | required | User identifier. |
| Field | Type | Description | |
|---|---|---|---|
| type | string | required | Record type: A, AAAA, CNAME, MX, TXT. |
| name | string | required | Record name. |
| content | string | required | Record value. |
| ttl | integer | optional | TTL in seconds (1 = auto). |
Returns 201 Created on success. See Errors for failure responses.
List DNS records
/api/v2/dnsrecords/cloudflarezones/{zone_id}/users/{uid}Return all DNS records in the zone.
| Field | Type | Description | |
|---|---|---|---|
| zone_id | string | required | Cloudflare zone identifier. |
| uid | string | required | User identifier. |
Returns 200 OK on success. See Errors for failure responses.
Purge Cloudflare cache
/api/v2/cloudflarecache/cloudflarezones/{zone_id}/users/{uid}Purge all cached assets for the zone.
| Field | Type | Description | |
|---|---|---|---|
| zone_id | string | required | Cloudflare zone identifier. |
| uid | string | required | User identifier. |
Returns 200 OK on success. See Errors for failure responses.
Teams
Create teams, add members, and share server access.
Create team
/api/v2/teams/users/{uid}Create a new team.
| Field | Type | Description | |
|---|---|---|---|
| uid | string | required | User identifier. |
| Field | Type | Description | |
|---|---|---|---|
| name | string | required | Team name. |
Returns 201 Created on success. See Errors for failure responses.
List teams
/api/v2/teams/users/{uid}Return all teams the user owns or belongs to.
| Field | Type | Description | |
|---|---|---|---|
| uid | string | required | User identifier. |
Returns 200 OK on success. See Errors for failure responses.
Add member
/api/v2/teams/{tid}/adduser/users/{uid}Add a user to the team.
| Field | Type | Description | |
|---|---|---|---|
| tid | string | required | Team identifier. |
| uid | string | required | Owner user identifier. |
| Field | Type | Description | |
|---|---|---|---|
| member_uid | string | required | User to add. |
Returns 200 OK on success. See Errors for failure responses.
Add server to team
/api/v2/teams/{tid}/addserver/users/{uid}Grant a team access to a server.
| Field | Type | Description | |
|---|---|---|---|
| tid | string | required | Team identifier. |
| uid | string | required | Owner user identifier. |
| Field | Type | Description | |
|---|---|---|---|
| sid | string | required | Server to add. |
Returns 200 OK on success. See Errors for failure responses.
Billing
Manage subscriptions and retrieve invoices.
List plans
/api/v2/plansReturn all available subscription plans.
Returns 200 OK on success. See Errors for failure responses.
List invoices
/api/v2/invoices/users/{uid}Return all invoices for the user.
| Field | Type | Description | |
|---|---|---|---|
| uid | string | required | User identifier. |
Returns 200 OK on success. See Errors for failure responses.
Upgrade plan
/api/v2/subscription/users/{uid}Change the user subscription to a different plan.
| Field | Type | Description | |
|---|---|---|---|
| uid | string | required | User identifier. |
| Field | Type | Description | |
|---|---|---|---|
| plan_id | string | required | Target plan identifier. |
Returns 200 OK on success. See Errors for failure responses.