The current version
GET
/c/{id}
const url = 'http://localhost:3000/c/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/c/example302 to /a/{current id}, with whatever follows the id (a transform, a name) and ?download carried over: the stack’s current version, or the asset a person replaced it with. For embedding: a new version reaches the page without editing it. Cached for a minute. Public when the asset is, else for whoever can see it in the library; /a/ then answers as it always does. Not there for this caller: 404.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Asset id, any version of it
Responses
Section titled “Responses”To /a/{current id}
Not there for this caller
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
detail
Examplegenerated
{ "error": { "code": "example", "message": "example", "detail": "example" }}