PBN.LTD API docs
View as Markdown

Errors

Errors have one shape:

{"error": {"code": "validation_failed", "message": "Some fields are not valid.",
           "details": {"fields": {"domain": ["Site with this Domain already exists."]}}}}
HTTPcodeWhen
400bad_requestThe request is malformed (bad JSON, unknown parameter value).
401unauthorizedNo key, a malformed key, an unknown key, a revoked key or an expired key.
402payment_requiredThe plan has expired, or the feature needs an add-on the account does not have.
403forbiddenThe key lacks the scope, is restricted to other sites, the IP is not on its allowlist, or the account / site is suspended.
403ip_not_allowedThe request came from an IP address that is not on the key's allowlist.
403scope_missingThe key does not have the scope this endpoint needs (see details.required).
403site_not_allowedThe key is restricted to other sites.
404not_foundThe object does not exist or does not belong to this account.
409conflictThe site is busy (another job is running) or not in a state that allows the action.
413too_largeAn upload or a file read is larger than the limit.
422validation_failedSome fields are invalid; details.fields lists the message(s) for each field.
429rate_limitedToo many requests for this key; see Retry-After.
500internal_errorSomething failed on our side. It is logged; the request_id helps support find it.
503api_disabledThe API is switched off for maintenance.
503unavailableA server this call depends on did not answer; try again in a few minutes.

Every answer has an X-Request-Id header. If you contact support about a failed call, quote it. Validation messages are the same messages the panel shows for the same form.