Get a story image
GET
/stories/{story_id}/assets/{asset_id}
const url = 'https://example.com/api/stories/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/assets/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';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 https://example.com/api/stories/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/assets/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0Serve one of the story’s images, as WebP unless variant says otherwise.
Its owner and admins get any of them. Anyone else who can read the story gets the cover and the images its published document uses. 404 otherwise.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ” story_id
required
Story Id
string format: uuid
asset_id
required
Asset Id
string format: uuid
Query Parameters
Section titled “ Query Parameters ”Responses
Section titled “ Responses ”The image
string format: binary
string format: binary
Your copy, named by If-None-Match, is current.
Bad request — invalid payload
Media type application/problem+json
Unauthorized — missing or invalid credentials
Media type application/problem+json
Forbidden — caller lacks write access
Media type application/problem+json
Not found
Media type application/problem+json
Conflict — resource state prevents the operation
Media type application/problem+json
Validation error
Media type application/problem+json
Too many requests — retry after the advertised interval
Media type application/problem+json
Headers
Section titled “ Headers ” Retry-After
integer
Seconds until the request may be retried
Internal server error
Media type application/problem+json
Service unavailable — the database could not serve the request
Media type application/problem+json