Skip to content
On this page

Developer documentation

WebRock API v1.1.0

Manage domains, DNS, SSL, FTP, databases, cron jobs, mail and backups from your own scripts, CI pipelines or control panel — or let an AI assistant do it through the MCP endpoint. Same isolation as the dashboard: every token acts strictly within your own account.

https://www.webrock.online/api/v1 OpenAPI 3.1 spec Sign in to get a token

Quickstart

  1. Book API & AI access in the dashboard under Settings → API & AI access (€22.61 per month incl. VAT, cancel monthly, requires an active hosting plan). The add-on covers this REST API and the MCP endpoint for AI assistants.
  2. Create a token on the same page and pick its access level. The token is shown once — store it like a password.
  3. Send it as a bearer token:
curl -H "Authorization: Bearer wr_…" https://www.webrock.online/api/v1/account

# create a domain with a DNS zone
curl -X POST -H "Authorization: Bearer wr_…" -H "Content-Type: application/json" \
  -d '{"domain":"example.com","dns":true}' https://www.webrock.online/api/v1/domains

# issue a certificate, then poll the job
curl -X POST -H "Authorization: Bearer wr_…" https://www.webrock.online/api/v1/domains/example.com/ssl
curl -H "Authorization: Bearer wr_…" https://www.webrock.online/api/v1/jobs/ssl/example.com

Authentication

Every request except GET / and GET /openapi.json needs Authorization: Bearer wr_…. Tokens are 43 characters, prefixed wr_; we store only a hash.

Up to 10 active tokens per account, optional expiry, instant revocation in the dashboard. A revoked or expired token returns 401.

Every token has an access level, chosen when you create it: read only, read and write, or full access. A request the level does not cover returns 403 INSUFFICIENT_SCOPE — see Access levels.

Subscription gate. Without an active API subscription every hosting endpoint returns 402 SUBSCRIPTION_REQUIRED. GET /account still works and tells you api_subscription.active, so scripts can fail early with a clear message. Tokens survive a lapse — after re-booking they simply work again.

Access levels

A token carries one to three scopes. Each request needs exactly one of them:

ScopeAllowsNeeded for
read Read Every GET request.
write Create and change settings Every other request that is not listed under admin — for example creating a domain, a DNS record, a database or a mailbox, issuing a certificate, setting a mail forward, starting a backup.
admin Anything that can lose data, run code or set credentials Deleting anything (every DELETE), restoring a backup, creating cron jobs or FTP accounts, changing passwords of FTP accounts, databases and mailboxes. Each of these also needs a confirmation.

The line between write and admin is not simply “DELETE or not”. A cron job runs any command with the rights of your hosting account. An FTP account can read and change your files. Restoring a backup overwrites current data. And whoever sets a password gets into that FTP account, database or mailbox.

Besides every DELETE, these requests need admin:

You choose one of three levels when you create a token in the dashboard:

LevelScopes
Read only read
Read and write (preselected) read, write
Full access read, write, admin

What “Read and write” can and cannot do

It can create and change settings: create domains, aliases, redirects, DNS records, SSL certificates, databases and mailboxes, set mail forwards and the catch-all address, start backups.

It cannot delete anything, restore a backup, change the password of an existing FTP account, database or mailbox, or create FTP accounts and cron jobs.

It is not harmless. A changed DNS record, redirect or mail forward can send the visitors of your website or your e-mail somewhere else. Give a write token only to scripts and assistants you trust with that; use Read only wherever looking things up is enough.

If the scope is missing, the request is rejected with 403, error code INSUFFICIENT_SCOPE; the field required_scope names the scope you would need:

{
  "error": {
    "code": "INSUFFICIENT_SCOPE",
    "message": "…",
    "required_scope": "admin"
  },
  "request_id": "…"
}

GET /account lists the scopes of the calling token in token.scopes, for example ["read","write"]. The level is fixed when the token is created; to change it, create a new token and revoke the old one. Tokens created before access levels existed keep full access.

Confirming sensitive actions

Every request that needs the admin scope — deleting anything, restoring a backup, creating a cron job or an FTP account, changing a password — takes two steps. The first call only describes what would happen; the second one does it.

  1. Ask. Send the request as usual, including its body. Nothing is changed yet. The answer is 428 with error code CONFIRMATION_REQUIRED and a one-time code in confirm_token.
  2. Confirm. Send the identical request again — same method, same path, same body — with the header X-Confirm-Token: <confirm_token>. Now the action is carried out.
# step 1: nothing is deleted, you get a preview and a code
curl -X DELETE -H "Authorization: Bearer wr_…" https://www.webrock.online/api/v1/databases/user_shop

# 428
{
  "error": {
    "code": "CONFIRMATION_REQUIRED",
    "message": "…",
    "confirm_token": "cf_…",
    "expires_in": 300,
    "action": "Delete database user_shop",
    "effect": "…"
  },
  "request_id": "…"
}

# step 2: same request plus the code
curl -X DELETE -H "Authorization: Bearer wr_…" -H "X-Confirm-Token: cf_…" https://www.webrock.online/api/v1/databases/user_shop

# 204

Fields of the 428 response

FieldTypeDescription
confirm_tokenstringOne-time code, starts with cf_. Send it back in X-Confirm-Token.
expires_inintegerSeconds until the code expires: 300.
actionstringShort description of what will be done, e.g. Delete web domain example.com.
effectstringWhat is lost, exposed or executed.
  • A code is valid for 5 minutes and works exactly once.
  • It is bound to the API token that requested it and to exactly this request: method, path and body. It cannot confirm a different request.
  • Requests with a body: the body of the second call must be the same as in the first, for example the same cron command. If you change it, the code does not fit and you get a new preview instead.
  • Asking for a new preview of the same action invalidates the previous code.
  • A code that is expired, already used or does not match is not accepted: nothing is changed and you get a new 428 with a fresh code.
  • If there is nothing to remove — no certificate, no redirect — DELETE answers 204 right away, without a confirmation.
  • Scripts that do this on purpose send the request, read confirm_token from the 428 answer and send the request again with the header. Show action and effect to a person first if someone should decide.

Conventions

Envelope
Success: {"data": …, "request_id": "…"}. Error: {"error": {"code", "message", …}, "request_id"}. 204 has no body.
Request ID
Also sent as X-Request-Id. Quote it in support tickets — we can trace the exact request.
Bodies
JSON only (Content-Type: application/json). Invalid JSON returns 400 INVALID_JSON.
Rate limit
Per token, fixed 60-second window. Headers X-RateLimit-Limit, -Remaining, -Reset; on 429 honour Retry-After.
Async operations
SSL issuance, mail domain creation and backups return 202 with a job handle. Poll GET /jobs/{kind}/{key} until status is ok or error.
Generated secrets
Omit password when creating FTP, database or mail accounts, or when changing their password, and we generate one. It is returned once in that response and never again.
Timestamps
ISO 8601, UTC.
Stability
v1 is stable. Fields may be added without notice; nothing is removed or renamed within v1.

Error codes

Match on error.code, not on the message — messages may be reworded.

CodeHTTPMeaning
UNAUTHORIZED 401 Missing or invalid bearer token.
TOKEN_EXPIRED 401 The token has passed its expiry date.
SUBSCRIPTION_REQUIRED 402 No active API subscription. Book it in the dashboard.
ACCOUNT_SUSPENDED 403 The account is suspended.
FORBIDDEN 403 The operation is not allowed (e.g. deleting the primary FTP account).
INSUFFICIENT_SCOPE 403 The access level of the token is too low; see `required_scope`.
CONFIRMATION_REQUIRED 428 First step of a sensitive action. Nothing was changed; repeat the identical request with `X-Confirm-Token`.
NOT_FOUND 404 Endpoint or resource does not exist / does not belong to you.
METHOD_NOT_ALLOWED 405 Wrong HTTP method; see the `Allow` header.
NO_HOSTING 409 The account has no active hosting product.
ALREADY_EXISTS 409 A resource with that name already exists.
RESOURCE_LOCKED 409 The resource is locked (e.g. suspended).
RESOURCE_IN_USE 409 The resource is still referenced elsewhere.
INVALID_JSON 400 Request body is not valid JSON.
VALIDATION_ERROR 422 One or more fields are invalid; see `fields`.
QUOTA_EXCEEDED 422 The plan limit for this resource type is reached.
FEATURE_DISABLED 422 The feature is not enabled for this account.
RATE_LIMITED 429 Too many requests; wait `retry_after` seconds.
BACKEND_ERROR 502 The hosting service reported an error. Retry later.
BACKEND_UNAVAILABLE 503 The hosting service is temporarily unreachable. Retry with backoff.
MAINTENANCE 503 Planned maintenance. Wait for `Retry-After` and try again.
INTERNAL_ERROR 500 Unexpected error. Quote the `request_id` to support.

AI assistants (MCP)

The same account actions are available to AI assistants through the Model Context Protocol. Connect an assistant once and ask it in plain language to list your domains, add a DNS record or create a mailbox.

https://www.webrock.online/mcp
Transport
MCP “Streamable HTTP”, POST only. Answers are plain JSON, there is no SSE stream; GET returns 405.
Authentication
The same bearer token as the REST API: Authorization: Bearer wr_…. No separate credentials.
Subscription and limits
Same paid add-on and same rate limit as the REST API.
Tools
Every REST endpoint except the health check is a tool. A token only sees the tools its access level allows.

Connect a client

Any client works that lets you set your own HTTP headers for a remote MCP server — for example Claude Code, Cursor or VS Code.

Claude Code

claude mcp add --transport http webrock https://www.webrock.online/mcp --header "Authorization: Bearer wr_…"

JSON configuration (Cursor and others)

{
  "mcpServers": {
    "webrock": {
      "url": "https://www.webrock.online/mcp",
      "headers": {
        "Authorization": "Bearer wr_…"
      }
    }
  }
}

Sensitive actions through an assistant

Tools that need the admin scope — deleting, restoring a backup, creating cron jobs or FTP accounts, changing passwords — have an optional parameter confirm_token. The first call returns a preview of the action and a code — nothing is changed. Calling the tool again with the same arguments and confirm_token set to that code carries it out. The rules are the same as for confirming sensitive actions over REST: 5 minutes, once, same token, same action with the same arguments.

Limitations

  • No OAuth. Clients that only support OAuth connectors cannot connect yet. You need a client that can send the Authorization header.
  • Dashboard only. Payment, cancellation, plan changes and account deletion are not possible through the API or MCP.

Security

Create a separate token for each assistant and give it the lowest access level that does the job. For an assistant that should only look things up, choose Read only.

An assistant acts on everything it reads. Manipulated content — a web page, an e-mail, a file — can talk it into actions you never asked for.

Read and write is not harmless. It cannot delete anything, restore a backup, change passwords of existing accounts or create FTP accounts and cron jobs. But it can create and change settings, and a changed DNS record, redirect or mail forward can send the visitors of your website or your e-mail somewhere else.

Everything that can lose data, run code or set credentials only works with a Full access token and needs the second, confirming step every single time. Read the preview before you let an assistant confirm.

Tools

Each tool calls the REST endpoint next to it; the link leads to its parameters and response.

ToolRequired scopeREST endpoint
get_account read GET /account
get_usage read GET /account/usage
list_domains read GET /domains
create_domain write POST /domains
get_domain read GET /domains/{domain}
delete_domain admin DELETE /domains/{domain}
list_domain_aliases read GET /domains/{domain}/aliases
add_domain_alias write POST /domains/{domain}/aliases
remove_domain_alias admin DELETE /domains/{domain}/aliases/{alias}
get_domain_redirect read GET /domains/{domain}/redirect
set_domain_redirect write PUT /domains/{domain}/redirect
remove_domain_redirect admin DELETE /domains/{domain}/redirect
get_ssl_status read GET /domains/{domain}/ssl
issue_ssl_certificate write POST /domains/{domain}/ssl
remove_ssl_certificate admin DELETE /domains/{domain}/ssl
list_dns_zones read GET /dns/zones
list_dns_records read GET /dns/zones/{zone}/records
create_dns_record write POST /dns/zones/{zone}/records
update_dns_record write PATCH /dns/zones/{zone}/records/{id}
delete_dns_record admin DELETE /dns/zones/{zone}/records/{id}
list_ftp_accounts read GET /ftp
create_ftp_account admin POST /ftp
change_ftp_password admin PATCH /ftp/{username}
delete_ftp_account admin DELETE /ftp/{username}
list_databases read GET /databases
create_database write POST /databases
change_database_password admin PATCH /databases/{name}
delete_database admin DELETE /databases/{name}
list_cron_jobs read GET /cron
create_cron_job admin POST /cron
delete_cron_job admin DELETE /cron/{id}
list_mail_domains read GET /mail/domains
create_mail_domain write POST /mail/domains
get_mail_domain read GET /mail/domains/{domain}
update_mail_domain write PATCH /mail/domains/{domain}
delete_mail_domain admin DELETE /mail/domains/{domain}
list_mailboxes read GET /mail/domains/{domain}/accounts
create_mailbox write POST /mail/domains/{domain}/accounts
get_mailbox read GET /mail/domains/{domain}/accounts/{account}
update_mailbox write PATCH /mail/domains/{domain}/accounts/{account}
delete_mailbox admin DELETE /mail/domains/{domain}/accounts/{account}
change_mailbox_password admin PATCH /mail/domains/{domain}/accounts/{account}/password
list_backups read GET /backups
create_backup write POST /backups
delete_backup admin DELETE /backups/{name}
restore_backup admin POST /backups/{name}/restore
get_job_status read GET /jobs/{kind}/{key}

Account

GET / Health check

No authentication required.

Response 200 data: Health

FieldTypeDescription
namestring
versionstring
statusstring

GET /account Account and subscription status

Works without an active API subscription — use it to check `api_subscription.active` before making other calls.

Response 200 data: Account

FieldTypeDescription
idinteger
emailstring
hosting_activeboolean
planstring | nullHosting plan key or null.
term_ends_atstring | nullHosting term end (ISO 8601) or null.
suspendedboolean
api_subscriptionobject
tokenobject

GET /account/usage Storage and traffic usage

Response 200 data: Usage

FieldTypeDescription
storageobject
trafficobject

Domains

GET /domains List web domains

Response 200 data: Domain[]

FieldTypeDescription
domainstring
sslboolean
disk_mbnumber
bandwidth_mbnumber

POST /domains Create web domain

Optionally creates a DNS zone pointing at the server IP.

Request body DomainCreate

FieldTypeDescription
domain (required)stringHostname, e.g. example.com.
dnsbooleanAlso create a DNS zone. Default false.

Response 201 data: DomainCreated

FieldTypeDescription
domainstring
sslboolean
dnsbooleanWhether the DNS zone was created.
warningsarray<string>Non-fatal problems, e.g. DNS zone not created.

GET /domains/{domain} Get web domain

Path parameters

NameDescription
domainWeb domain, e.g. `example.com`.

Response 200 data: Domain

FieldTypeDescription
domainstring
sslboolean
disk_mbnumber
bandwidth_mbnumber

DELETE /domains/{domain} Delete web domain

Removes the web domain including its files. Irreversible.

Path parameters

NameDescription
domainWeb domain, e.g. `example.com`.
X-Confirm-TokenConfirmation token from the preceding `428 CONFIRMATION_REQUIRED` response. Omit on the first request.

Response 204

GET /domains/{domain}/aliases List aliases

Path parameters

NameDescription
domainWeb domain, e.g. `example.com`.

Response 200 data: Alias[]

FieldTypeDescription
aliasstring

POST /domains/{domain}/aliases Add alias

Path parameters

NameDescription
domainWeb domain, e.g. `example.com`.

Request body AliasCreate

FieldTypeDescription
alias (required)string

Response 201 data: AliasCreated

FieldTypeDescription
domainstring
aliasstring

DELETE /domains/{domain}/aliases/{alias} Remove alias

Path parameters

NameDescription
domainWeb domain, e.g. `example.com`.
aliasAlias hostname.
X-Confirm-TokenConfirmation token from the preceding `428 CONFIRMATION_REQUIRED` response. Omit on the first request.

Response 204

GET /domains/{domain}/redirect Get redirect

Returns `null` when no redirect is set.

Path parameters

NameDescription
domainWeb domain, e.g. `example.com`.

Response 200 data: Redirect | null

FieldTypeDescription
targetstring
codeinteger301 or 302.

PUT /domains/{domain}/redirect Set redirect

Path parameters

NameDescription
domainWeb domain, e.g. `example.com`.

Request body RedirectSet

FieldTypeDescription
target (required)stringHostname or URL.
codeinteger301 (default) or 302.

Response 200 data: Redirect

FieldTypeDescription
targetstring
codeinteger301 or 302.

DELETE /domains/{domain}/redirect Remove redirect

Path parameters

NameDescription
domainWeb domain, e.g. `example.com`.
X-Confirm-TokenConfirmation token from the preceding `428 CONFIRMATION_REQUIRED` response. Omit on the first request.

Response 204

SSL

GET /domains/{domain}/ssl SSL status

Includes the last issuance job, if any.

Path parameters

NameDescription
domainWeb domain, e.g. `example.com`.

Response 200 data: SslStatus

FieldTypeDescription
domainstring
sslboolean
letsencryptboolean
jobobject | null

POST /domains/{domain}/ssl Issue Let's Encrypt certificate

Asynchronous. Returns `202` with a job handle; poll `GET /jobs/ssl/{domain}`. Rate-limited to one attempt per domain every 5 minutes.

Path parameters

NameDescription
domainWeb domain, e.g. `example.com`.

Response 202 data: Job

FieldTypeDescription
jobstringHandle `kind:key`.
statusnone | pending | started | ok | error
messagestring
updated_atstring | nullISO 8601 or null.

DELETE /domains/{domain}/ssl Remove certificate

Path parameters

NameDescription
domainWeb domain, e.g. `example.com`.
X-Confirm-TokenConfirmation token from the preceding `428 CONFIRMATION_REQUIRED` response. Omit on the first request.

Response 204

DNS

GET /dns/zones List DNS zones

Response 200 data: DnsZone[]

FieldTypeDescription
zonestring
recordsinteger
dnssecboolean

GET /dns/zones/{zone}/records List records

Path parameters

NameDescription
zoneDNS zone, e.g. `example.com`.

Response 200 data: DnsRecord[]

FieldTypeDescription
idstring
namestring`@` for the apex.
typestring
valuestring
priorityinteger | null
ttlinteger | null

POST /dns/zones/{zone}/records Create record

Path parameters

NameDescription
zoneDNS zone, e.g. `example.com`.

Request body DnsRecordInput

FieldTypeDescription
name (required)string`@`, `www`, `mail`, …
type (required)A | AAAA | CNAME | MX | TXT | NS | SRV | CAA | PTR | TLSA | DNSKEY | DS
value (required)string
priorityintegerRequired for MX and SRV.
ttlinteger60 – 2592000 seconds.

Response 201 data: DnsRecord

FieldTypeDescription
idstring
namestring`@` for the apex.
typestring
valuestring
priorityinteger | null
ttlinteger | null

PATCH /dns/zones/{zone}/records/{id} Update record

Partial update — omitted fields keep their value.

Path parameters

NameDescription
zoneDNS zone, e.g. `example.com`.
idRecord id from the list.

Request body DnsRecordInput

FieldTypeDescription
name (required)string`@`, `www`, `mail`, …
type (required)A | AAAA | CNAME | MX | TXT | NS | SRV | CAA | PTR | TLSA | DNSKEY | DS
value (required)string
priorityintegerRequired for MX and SRV.
ttlinteger60 – 2592000 seconds.

Response 200 data: DnsRecord

FieldTypeDescription
idstring
namestring`@` for the apex.
typestring
valuestring
priorityinteger | null
ttlinteger | null

DELETE /dns/zones/{zone}/records/{id} Delete record

Path parameters

NameDescription
zoneDNS zone, e.g. `example.com`.
idRecord id from the list.
X-Confirm-TokenConfirmation token from the preceding `428 CONFIRMATION_REQUIRED` response. Omit on the first request.

Response 204

FTP

GET /ftp List FTP accounts

Response 200 data: FtpAccount[]

FieldTypeDescription
usernamestring
domainstring
pathstring
primaryboolean

POST /ftp Create FTP account

The full login becomes `<panel-user>_<username>`. If `password` is omitted a random one is generated and returned **once**.

Path parameters

NameDescription
X-Confirm-TokenConfirmation token from the preceding `428 CONFIRMATION_REQUIRED` response. Omit on the first request.

Request body FtpAccountCreate

FieldTypeDescription
domain (required)string
username (required)stringSuffix only; lowercase, digits, underscore.
pathstringRelative to the domain root, e.g. public_html/app.
passwordstringMin. 8 chars. Omit to generate.

Response 201 data: FtpAccountCreated

FieldTypeDescription
usernamestring
domainstring
pathstring
primaryboolean
passwordstringOnly when generated. Shown once.

PATCH /ftp/{username} Change FTP password

Omit `password` to generate one.

Path parameters

NameDescription
usernameFull FTP login.
X-Confirm-TokenConfirmation token from the preceding `428 CONFIRMATION_REQUIRED` response. Omit on the first request.

Request body PasswordInput

FieldTypeDescription
passwordstringOmit to generate a random one.

Response 200 data: PasswordChanged

FieldTypeDescription
updatedboolean
passwordstringOnly when generated. Shown once.

DELETE /ftp/{username} Delete FTP account

The primary account cannot be deleted.

Path parameters

NameDescription
usernameFull FTP login.
X-Confirm-TokenConfirmation token from the preceding `428 CONFIRMATION_REQUIRED` response. Omit on the first request.

Response 204

Databases

GET /databases List databases

Response 200 data: Database[]

FieldTypeDescription
namestring
userstring
typestring
hoststring
charsetstring
disk_mbnumber
suspendedboolean

POST /databases Create database

Name and user are prefixed with `<panel-user>_`. Omit `password` to generate one (returned once).

Request body DatabaseCreate

FieldTypeDescription
name (required)stringSuffix; lowercase, digits, underscore, max. 32.
userstringDefaults to name.
typemysql | pgsqlDefault `mysql`.
passwordstringMin. 8 chars. Omit to generate.

Response 201 data: DatabaseCreated

FieldTypeDescription
namestring
userstring
typestring
passwordstringOnly when generated. Shown once.

PATCH /databases/{name} Change database password

Path parameters

NameDescription
nameFull database name.
X-Confirm-TokenConfirmation token from the preceding `428 CONFIRMATION_REQUIRED` response. Omit on the first request.

Request body PasswordInput

FieldTypeDescription
passwordstringOmit to generate a random one.

Response 200 data: PasswordChanged

FieldTypeDescription
updatedboolean
passwordstringOnly when generated. Shown once.

DELETE /databases/{name} Delete database

Irreversible.

Path parameters

NameDescription
nameFull database name.
X-Confirm-TokenConfirmation token from the preceding `428 CONFIRMATION_REQUIRED` response. Omit on the first request.

Response 204

Cron

GET /cron List cron jobs

Response 200 data: CronJob[]

FieldTypeDescription
idstring
minutestring
hourstring
daystring
monthstring
weekdaystring
commandstring
suspendedboolean

POST /cron Create cron job

Path parameters

NameDescription
X-Confirm-TokenConfirmation token from the preceding `428 CONFIRMATION_REQUIRED` response. Omit on the first request.

Request body CronJobCreate

FieldTypeDescription
minutestringDefault `*`.
hourstringDefault `*`.
daystringDefault `*`.
monthstringDefault `*`.
weekdaystringDefault `*`.
command (required)stringSingle line, max. 1024 chars.

Response 201 data: CronJob

FieldTypeDescription
idstring
minutestring
hourstring
daystring
monthstring
weekdaystring
commandstring
suspendedboolean

DELETE /cron/{id} Delete cron job

Path parameters

NameDescription
idJob id from the list.
X-Confirm-TokenConfirmation token from the preceding `428 CONFIRMATION_REQUIRED` response. Omit on the first request.

Response 204

Mail

GET /mail/domains List mail domains

Response 200 data: MailDomain[]

FieldTypeDescription
domainstring
accountsinteger
disk_mbnumber
antispamboolean
antivirusboolean
reject_spamboolean
dkimboolean
sslboolean
catchallstring | null
webmailstring
suspendedboolean
ssl_jobobject | nullOnly on 202 after enabling SSL.

POST /mail/domains Create mail domain

Asynchronous (mail setup takes a while). Returns `202` with a job handle; poll `GET /jobs/mail_create/{domain}`.

Request body MailDomainCreate

FieldTypeDescription
domain (required)string
antispambooleanDefault true.
antivirusbooleanDefault true.
dkimbooleanDefault true.
reject_spambooleanDefault false.

Response 202 data: Job

FieldTypeDescription
jobstringHandle `kind:key`.
statusnone | pending | started | ok | error
messagestring
updated_atstring | nullISO 8601 or null.

GET /mail/domains/{domain} Get mail domain

Path parameters

NameDescription
domainMail domain.

Response 200 data: MailDomain

FieldTypeDescription
domainstring
accountsinteger
disk_mbnumber
antispamboolean
antivirusboolean
reject_spamboolean
dkimboolean
sslboolean
catchallstring | null
webmailstring
suspendedboolean
ssl_jobobject | nullOnly on 202 after enabling SSL.

PATCH /mail/domains/{domain} Update mail domain

Toggle features, set or clear the catch-all, enable/disable SSL. Enabling SSL is asynchronous: the response is `202` with an `ssl_job` handle — poll `GET /jobs/mail_ssl/{domain}`.

Path parameters

NameDescription
domainMail domain.

Request body MailDomainUpdate

FieldTypeDescription
antispamboolean
antivirusboolean
dkimboolean
reject_spamboolean
catchallstringEmail address, or empty string to remove.
sslboolean

Response 200 data: MailDomain

FieldTypeDescription
domainstring
accountsinteger
disk_mbnumber
antispamboolean
antivirusboolean
reject_spamboolean
dkimboolean
sslboolean
catchallstring | null
webmailstring
suspendedboolean
ssl_jobobject | nullOnly on 202 after enabling SSL.

DELETE /mail/domains/{domain} Delete mail domain

Deletes all mailboxes. Irreversible. Asynchronous: returns `202` with a job handle — poll `GET /jobs/mail_delete/{domain}`.

Path parameters

NameDescription
domainMail domain.
X-Confirm-TokenConfirmation token from the preceding `428 CONFIRMATION_REQUIRED` response. Omit on the first request.

Response 202 data: Job

FieldTypeDescription
jobstringHandle `kind:key`.
statusnone | pending | started | ok | error
messagestring
updated_atstring | nullISO 8601 or null.

GET /mail/domains/{domain}/accounts List mailboxes

Path parameters

NameDescription
domainMail domain.

Response 200 data: MailAccount[]

FieldTypeDescription
accountstring
domainstring
emailstring
disk_mbnumber
suspendedboolean

POST /mail/domains/{domain}/accounts Create mailbox

Omit `password` to generate one (returned once).

Path parameters

NameDescription
domainMail domain.

Request body MailAccountCreate

FieldTypeDescription
account (required)stringLocal part.
passwordstringMin. 10 chars. Omit to generate.
quota_mbinteger0 or omitted = unlimited.

Response 201 data: MailAccountCreated

FieldTypeDescription
accountstring
domainstring
emailstring
quota_mbinteger | null
passwordstringOnly when generated. Shown once.

GET /mail/domains/{domain}/accounts/{account} Get mailbox

Includes quota, aliases and forwards.

Path parameters

NameDescription
domainMail domain.
accountLocal part, e.g. `info`.

Response 200 data: MailAccountDetail

FieldTypeDescription
accountstring
domainstring
emailstring
disk_mbnumber
suspendedboolean
quota_mbinteger | nullnull = unlimited.
aliasesarray<string>
forwardsarray<string>
forward_onlyboolean

PATCH /mail/domains/{domain}/accounts/{account} Update mailbox

Change forward-only mode, add/remove forwards and aliases. Fields are validated before any of them is applied.

Path parameters

NameDescription
domainMail domain.
accountLocal part, e.g. `info`.

Request body MailAccountUpdate

FieldTypeDescription
forward_onlybooleanForward incoming mail without storing it in the mailbox.
add_forwardstringEmail address.
remove_forwardstring
add_aliasstringLocal part.
remove_aliasstring

Response 200 data: MailAccountDetail

FieldTypeDescription
accountstring
domainstring
emailstring
disk_mbnumber
suspendedboolean
quota_mbinteger | nullnull = unlimited.
aliasesarray<string>
forwardsarray<string>
forward_onlyboolean

DELETE /mail/domains/{domain}/accounts/{account} Delete mailbox

Irreversible.

Path parameters

NameDescription
domainMail domain.
accountLocal part, e.g. `info`.
X-Confirm-TokenConfirmation token from the preceding `428 CONFIRMATION_REQUIRED` response. Omit on the first request.

Response 204

PATCH /mail/domains/{domain}/accounts/{account}/password Change mailbox password

Min. 10 characters. Omit `password` to generate one (returned once).

Path parameters

NameDescription
domainMail domain.
accountLocal part, e.g. `info`.
X-Confirm-TokenConfirmation token from the preceding `428 CONFIRMATION_REQUIRED` response. Omit on the first request.

Request body PasswordInput

FieldTypeDescription
passwordstringOmit to generate a random one.

Response 200 data: PasswordChanged

FieldTypeDescription
updatedboolean
passwordstringOnly when generated. Shown once.

Backups

GET /backups List backups

Response 200 data: Backup[]

FieldTypeDescription
namestring
typestring
size_mbnumber
created_atstring | nullISO 8601.
contentsobject

POST /backups Schedule backup

Asynchronous; the backup appears in the list once completed. One request per 10 minutes.

Response 202 data: Scheduled

FieldTypeDescription
scheduledboolean
messagestring
namestring

DELETE /backups/{name} Delete backup

Path parameters

NameDescription
nameBackup file name from the list.
X-Confirm-TokenConfirmation token from the preceding `428 CONFIRMATION_REQUIRED` response. Omit on the first request.

Response 204

POST /backups/{name}/restore Schedule restore

Restores the full backup in the background. Existing data is overwritten.

Path parameters

NameDescription
nameBackup file name.
X-Confirm-TokenConfirmation token from the preceding `428 CONFIRMATION_REQUIRED` response. Omit on the first request.

Response 202 data: Scheduled

FieldTypeDescription
scheduledboolean
messagestring
namestring

Jobs

GET /jobs/{kind}/{key} Job status

Poll asynchronous operations. `kind` is one of `ssl`, `mail_ssl`, `mail_create`, `mail_delete`, `dns_records_save`; `key` is the domain.

Path parameters

NameDescription
kindJob kind.
keyDomain the job belongs to.

Response 200 data: Job

FieldTypeDescription
jobstringHandle `kind:key`.
statusnone | pending | started | ok | error
messagestring
updated_atstring | nullISO 8601 or null.

Fields marked * are required. Questions? Open a ticket in the dashboard and include the request_id.