Claim a custom domain
Starts the proof for one exact hostname (no wildcards; lowercase, no trailing dot). The answer carries txt, the
DNS record to publish: name _sproutboat-challenge.<host>, type TXT, the given value. Then call
POST /v1/domains/{host}/verify. Claiming a host you already claimed returns the claim (200). A team holds at most 10
domains (429 domain-limit). Names under sproutboat.app and the platform’s own hostnames cannot be claimed.
Once verified, add the hostname to an app’s routes (PATCH /v1/apps/{project}/routes); a certificate is then issued
on first use.
/v1/domainsAuthorizationBearer token · headerrequiredA team API key, sbk_..., from Settings, API keys.
x-api-keyAPI key · headerrequiredThe same key, in a header of its own.
application/jsonhoststringrequiredThe existing claim.
hoststringstatestringpendingverifiedlostmethodstringtxtoperatorverified_atstring<date-time> | nulllast_checked_atstring<date-time> | nulllost_atstring<date-time> | nulllost_reasonstring | nullcreated_atstring<date-time>txtobject | nullThe DNS record to publish while the claim is pending (and after a loss, to take the name back). Null once verified.
Show propertiesHide properties
typestringnamestringvaluestringroutesobject[]The team's apps that route this host.
Show propertiesHide properties
objectprojectstringkeystringA new pending claim.
hoststringstatestringpendingverifiedlostmethodstringtxtoperatorverified_atstring<date-time> | nulllast_checked_atstring<date-time> | nulllost_atstring<date-time> | nulllost_reasonstring | nullcreated_atstring<date-time>txtobject | nullThe DNS record to publish while the claim is pending (and after a loss, to take the name back). Null once verified.
Show propertiesHide properties
typestringnamestringvaluestringroutesobject[]The team's apps that route this host.
Show propertiesHide properties
objectprojectstringkeystringThe hostname cannot be claimed (reason: invalid-host), or the body is malformed.
errorstringrequiredA message for people. Do not parse it.
reasonstringrequiredinvalid-hosterrorstringrequiredA message for people. Do not parse it.
reasonstringA stable, machine-readable cause, when there is one.
pathstringThe request field at fault.
needstringThe grant a 403 asks for, app:write for example.
retry_after_sintegerNo key, or an invalid, expired or revoked key (unknown or missing API token, invalid, expired or revoked API key). No reason.
errorstringrequiredA message for people. Do not parse it.
reasonstringA stable, machine-readable cause, when there is one.
pathstringThe request field at fault.
needstringThe grant a 403 asks for, app:write for example.
retry_after_sintegerThe key lacks a grant (reason: forbidden, need: "<resource>:<action>").
errorstringrequiredA message for people. Do not parse it.
reasonstringrequiredforbiddenneedstringrequiredThe grant, as <resource>:<action>, for example app:write.
Another team holds the name, verified (reason: host-claimed).
errorstringrequiredA message for people. Do not parse it.
reasonstringrequiredhost-claimedThe body is over the limit for this route (reason: too-large; some refusals carry a message only).
errorstringrequiredA message for people. Do not parse it.
reasonstringrequiredtoo-largeerrorstringrequiredA message for people. Do not parse it.
reasonstringA stable, machine-readable cause, when there is one.
pathstringThe request field at fault.
needstringThe grant a 403 asks for, app:write for example.
retry_after_sintegerThe team holds the maximum number of domains (domain-limit), or the key is rate-limited (key-rate-limited).
errorstringrequiredA message for people. Do not parse it.
reasonstringrequiredkey-rate-limitedretry_after_sintegerrequiredSeconds to wait; also the Retry-After header.
errorstringrequiredA message for people. Do not parse it.
reasonstringrequireddomain-limit