API v1

Check an asset

GET/v1/assets/{asset_id}

Requires service.use and an asset owned by your team.

View Markdown
  • Put your API key after Authorization: Bearer; the key needs service.use permission.
  • Only your team's assets are visible; any other ID returns asset_not_found.
  • active assets return dimensions, size and digest; for unavailable, read failure_reason.

Headers

#AuthorizationstringRequired

Bearer, a space and your API key. A missing or invalid key returns 401 authentication_failed.

#X-Request-IDstring

Your own request identifier. An invalid or repeated value is replaced; the value used comes back in the X-Request-ID response header.

Path parameters

#asset_idstringRequired

ID of an asset owned by the signed-in team.

Length36–36Formatast- and 32 hex digits

ReturnsHTTP 200

The asset's current state and the metadata safe to return at that state.

Returns The asset object; its fields are described there.

Response headers

#X-Request-IDstringRequired

The identifier of this request: the valid value you sent, or its replacement.

#Cache-ControlstringRequired

Instructs clients not to cache the response.

Status codes

Each error.code and what to do about it is on Error codes.

StatusMeaning and error.code
200The asset's current state and the metadata safe to return at that state.
Response headersCache-Control
400The submitted request is not valid.
401The API key is missing or invalid.
Response headersWWW-Authenticate
403This API key does not have service.use permission.
404No visible asset matches this ID.
503The service is temporarily unavailable.