Skip to content
sproutboatDocs
Esc
↑↓navigate↵open⌘Jpreview

Domain status

dns.points_here says whether the name resolves to the platform (yes, no, unknown) and dns.ingress is what it should point at. certificate is null unless the claim is verified, an app routes the name and certificate probing is on. ?refresh=1 forces a fresh certificate check.

GET/v1/domains/{host}/status
Authorization
AuthorizationBearer token · headerrequired

A team API key, sbk_..., from Settings, API keys.

or
x-api-keyAPI key · headerrequired

The same key, in a header of its own.

Path parameters
hoststringrequired

A custom domain, lowercase, percent-encoded if needed.

Query parameters
refreshstring
Allowed:1
Responses
200

The state.

domainDomainClaimrequired
Show properties
hoststring
statestring
Allowed:pendingverifiedlost
methodstring
Allowed:txtoperator
verified_atstring<date-time> | null
last_checked_atstring<date-time> | null
lost_atstring<date-time> | null
lost_reasonstring | null
created_atstring<date-time>
txtobject | null

The DNS record to publish while the claim is pending (and after a loss, to take the name back). Null once verified.

Show properties
typestring
namestring
valuestring
routesobject[]

The team's apps that route this host.

Show properties
Array of object
projectstring
keystring
dnsobjectrequired
Show properties
points_herestring
Allowed:yesnounknown
detailstring
ingressobject

What the name should point at (addresses or a name).

certificateobject | nullrequired

{state: pending|issuing|ready|failed, reason, expires_at} or null. Uncertain: the exact fields.

401

No key, or an invalid, expired or revoked key (unknown or missing API token, invalid, expired or revoked API key). No reason.

errorstringrequired

A message for people. Do not parse it.

reasonstring

A stable, machine-readable cause, when there is one.

pathstring

The request field at fault.

needstring

The grant a 403 asks for, app:write for example.

retry_after_sinteger
403

The key lacks a grant (reason: forbidden, need: "<resource>:<action>").

errorstringrequired

A message for people. Do not parse it.

reasonstringrequired
Allowed:forbidden
needstringrequired

The grant, as <resource>:<action>, for example app:write.

404

No such app, build, secret, manifest or claim in this team (another team's resource looks the same).

errorstringrequired

A message for people. Do not parse it.

reasonstring

A stable, machine-readable cause, when there is one.

pathstring

The request field at fault.

needstring

The grant a 403 asks for, app:write for example.

retry_after_sinteger
429

The key is over its requests a minute (600, or 2,000 with app:write; reason: key-rate-limited, retry_after_s, Retry-After). Wait that long and retry.

errorstringrequired

A message for people. Do not parse it.

reasonstringrequired
Allowed:key-rate-limited
retry_after_sintegerrequired

Seconds to wait; also the Retry-After header.

Request
curl -X GET 'https://dash.sproutboat.com/v1/domains/app.example.com/status' \
  -H 'Authorization: Bearer YOUR_TOKEN'
Response
{
  "domain": {
    "host": "string",
    "state": "pending",
    "method": "txt",
    "verified_at": "2019-08-24T14:15:22Z",
    "last_checked_at": "2019-08-24T14:15:22Z",
    "lost_at": "2019-08-24T14:15:22Z",
    "lost_reason": "string",
    "created_at": "2019-08-24T14:15:22Z",
    "txt": {
      "type": "TXT",
      "name": "_sproutboat-challenge.app.example.com",
      "value": "sproutboat-verify=..."
    },
    "routes": [
      {
        "project": "string",
        "key": "string"
      }
    ]
  },
  "dns": {
    "points_here": "yes",
    "detail": "string",
    "ingress": {}
  },
  "certificate": {}
}