A signed URL to an asset
POST
/api/v1/assets/{id}/signed-url
const url = 'http://localhost:3000/api/v1/assets/example/signed-url';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"expiresIn":604800}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:3000/api/v1/assets/example/signed-url \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "expiresIn": 604800 }'Asset bytes are private: /a/{id} serves people who can see the asset. A signed URL lets anyone who holds it in until it expires, originals, renditions and downloads alike, while the asset may be used. Takes share on it; only an approved, unexpired asset out of embargo. To serve it to anyone for good, PATCH it public: true instead.
Scope: write.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Asset id
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
expiresIn
Seconds it works for: a minute to a year, a week when left out
integer
Responses
Section titled “Responses”The URL
Media typeapplication/json
object
data
required
object
url
required
The original, its name at the end; add a rendition after the id, /a/{id}/w_800,f_webp/summer-hero.webp?s=…, or ?download
string format: uri
expiresAt
required
string format: date-time
Examplegenerated
{ "data": { "url": "https://example.com", "expiresAt": "2026-04-15T12:00:00Z" }}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" }}