A failed request returns "ok": false with an error object containing a code, a message, and sometimes details:
{
"ok": false,
"error": {
"code": "unauthorized",
"message": "Use a valid Web API Bearer token."
}
}
Authentication and access
HTTP status
Code
Message
401
unauthorized
Use a valid Web API Bearer token.
403
organization_missing
No active organization is linked to this account.
403
forbidden
Varies — for example, an action not available for your account, or a subdomain that is blocked from a particular action.
Not found
HTTP status
Code
Message
404
not_found
Endpoint not found. / Subdomain not found. / Support ticket not found.
Validation
HTTP status
Code
Example message
400
invalid_json
Request body must be valid JSON.
400
validation_error (and similar)
A valid platform domain is required. / A valid DNS label is required. / FQDN must be under a platform domain. / registration_mode must be free, plus, premium or special. / Subject and message are required. / Message is required.
405
method_not_allowed
Method not allowed. (the response includes an Allow header and an allowed list in details)
Registration and renewal
HTTP status
Code
Meaning
402
insufficient_credits
Your credit balance is too low to complete this request.