A rendition, generated once and cached
GET
/a/{id}/{transform}
const url = 'http://localhost:3000/a/example/example';const options = {method: 'GET'};
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/a/example/exampleA name may follow, for people reading the link (/a/{id}/w_800,f_webp/summer-hero.webp), never read. ?download attaches it, saved as the asset’s name in its format.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Asset id
transform
required
string
E.g. w_800,f_webp. Keys: w, h (1-8000, each up to the next of a fixed ladder of sizes), fit (with both w and h), q (1-100, to a multiple of 5), f (jpeg, png, webp, avif)
Responses
Section titled “Responses”Image bytes
Busy making renditions: try again
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
detail
Examplegenerated
{ "error": { "code": "example", "message": "example", "detail": "example" }}default
Section titled “default”An error
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
detail
Examplegenerated
{ "error": { "code": "example", "message": "example", "detail": "example" }}