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

Read an assets manifest

Only for a manifest the team uploaded, or one of its apps names; any other digest is 404 (so the answer does not say whether the platform holds it).

GET/v1/assets/manifests/{sha256}
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
sha256Sha256required

Lowercase hex SHA-256 of the exact bytes of the body.

matches ^[0-9a-f]{64}$
Responses
200

The manifest JSON, byte for byte as uploaded.

notFoundstringrequired

What a path that is no file answers.

Allowed:nonesingle-page-application404-page
runSproutFirstboolean | string[]required

true, false, or a list of /-anchored globs that go to the app before an asset of the same path.

Show properties
One of:
boolean
boolean
string[]
Array of string
string
filesobjectrequired

Request path (absolute, normalized, for example /index.html) to file.

headersobject[]
max items 2000
Show properties
Array of object
patternstringrequired
setany[][]required
unsetstring[]required
redirectsobject[]
max items 2000
Show properties
Array of object
fromstringrequired
tostringrequired
statusintegerrequired
min 300 · max 399
400

The request is malformed. path names the field when one is at fault; some refusals (a digest mismatch, a body that is not JSON) carry a message only.

One of:
ErrorInvalid
errorstringrequired

A message for people. Do not parse it.

reasonstringrequired
Allowed:invalid
ErrorPlain
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
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/assets/manifests/string' \
  -H 'Authorization: Bearer YOUR_TOKEN'
Response
{
  "notFound": "none",
  "runSproutFirst": true,
  "files": {
    "property1": {
      "hash": "string",
      "size": 0,
      "type": "string",
      "br": {
        "hash": "string",
        "size": 0
      },
      "gz": {
        "hash": "string",
        "size": 0
      }
    },
    "property2": {
      "hash": "string",
      "size": 0,
      "type": "string",
      "br": {
        "hash": "string",
        "size": 0
      },
      "gz": {
        "hash": "string",
        "size": 0
      }
    }
  },
  "headers": [
    {
      "pattern": "string",
      "set": [
        [
          "string",
          "string"
        ]
      ],
      "unset": [
        "string"
      ]
    }
  ],
  "redirects": [
    {
      "from": "string",
      "to": "string",
      "status": 300
    }
  ]
}