What an asset is and may be used for
const url = 'http://localhost:3000/api/v1/assets/example/description';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://localhost:3000/api/v1/assets/example/description \ --header 'Authorization: Bearer <token>'Title, credit, tags, effective field values, rights, provenance, what supersedes it, its URLs, the transforms it allows and ready-made rendition URLs. Whether a particular use is allowed: POST /api/v1/check.
Scope: read.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Asset id
Responses
Section titled “Responses”The description
object
Only active is served at /a/{id} to anyone; expired and archived answer 410
The version to use: its stack’s current one, or the only one
Effective values: own over inherited
object
object
ISO 3166-1 alpha-2; empty: anywhere
Empty: any use
Set by a person; null or missing follows the license (see downloadable on its description)
object
object
The app that signed it
The signing certificate’s organization, as the file claims it; not verified
IPTC: digitalCapture, trainedAlgorithmicMedia…
The tool the actions name, often the model
Its URLs work for anyone while it may be used; otherwise with a key or session, or signed (POST /api/v1/assets/{id}/signed-url)
Whether people outside the project may download the file itself. False: they see it, at most 1600 px a side, and its original and ?download answer 403 to them (fonts still load on this app’s own pages). Its rights’ downloadable decides, else its license: a font only under an open one, a licensed file only under an open one, anything else yes
object
The original with current metadata written in
Template: replace {transform}, e.g. w_800,f_webp
object
A side snaps up to the next of these: w_801 is w_828
Snaps to a multiple of 5
An SVG is drawn at the size asked, up to the w and h caps; any other image never comes out larger than it is
Ready-made renditions
object
Example
{ "status": "draft", "state": "draft", "rights": { "modelRelease": "released" }, "provenance": { "origin": "shot", "via": "agent" }, "constraints": { "fit": [ "cover" ], "f": [ "jpeg" ] }}default
Section titled “default”An error
object
object
Examplegenerated
{ "error": { "code": "example", "message": "example", "detail": "example" }}