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

List the team's apps

Every live app of the team, most recently updated first. Not paginated. secrets is null unless the key holds secret:list.

GET/v1/apps
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.

Responses
200

The apps.

appsAppSummary[]required
Show properties
Array of AppSummary
projectstring
app_idstring
record_generationinteger
updated_atstring<date-time>
hostsstring[]
created_bystring | null
secretsstring[] | null

Secret names; null without secret:list.

applyApplyState | null

Whether a host has applied the app's record. Null until the first apply was attempted. state is applied, failed or fenced. The app is live at generation N when state is applied and applied_generation is at least N (an applied row with an older generation means keep polling). The CLI gives up on failed and fenced and shows error. Uncertain: the Cloud may retry a failed apply on its own (attempts, next_attempt_at are in the row), so a provider may prefer to keep polling until its own timeout.

Show properties
statestring
Allowed:appliedfailedfenced
applied_generationinteger | null
errorstring | null
attemptsinteger
next_attempt_atstring<date-time> | null
updated_atstring<date-time>
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.

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/apps' \
  -H 'Authorization: Bearer YOUR_TOKEN'
Response
{
  "apps": [
    {
      "project": "string",
      "app_id": "string",
      "record_generation": 0,
      "updated_at": "2019-08-24T14:15:22Z",
      "hosts": [
        "string"
      ],
      "created_by": "string",
      "secrets": [
        "string"
      ],
      "apply": {
        "state": "applied",
        "applied_generation": 0,
        "error": "string",
        "attempts": 0,
        "next_attempt_at": "2019-08-24T14:15:22Z",
        "updated_at": "2019-08-24T14:15:22Z"
      }
    }
  ]
}