POST
/v1/asset-objects/{uid}/read-urlReturns a URL to download a ready object. Send no request body.
- In a private bucket the URL is presigned. It works without authentication until
expires_at(10 minutes by default, never more than 7 days) andis_signedistrue. - In a public bucket the object's permanent public URL is returned,
is_signedisfalseandexpires_atis omitted.
Requires read access to the workspace (any role).
Authentication
Send your API key as Authorization: Bearer <token>. The request is scoped to the workspace in X-Workspace-Slug.
Path parameters
uidstringRequiredThe object's uid (the object_id returned by Create an upload).
Headers
X-Workspace-SlugstringRequiredSlug of the workspace the request acts on. You can also pass it as the workspace_slug query parameter.
Response
200
A URL to read the object.
successbooleanRequiredtrue when the request succeeded.
messagestringRequiredHuman-readable status message.
dataobjectShow attributesHide attributes
read_urlstringRequiredURL to download the object.
expires_atstring (date-time)When the URL stops working. Omitted for public URLs, which do not expire.
is_signedbooleanRequiredtrue for a presigned URL from a private bucket, false for a public URL.
Errors
| Status | Meaning |
|---|---|
401 | The API key is missing, invalid, expired or revoked. |
403 | You cannot access the workspace, your role does not allow this action, or the account is suspended. |
404 | The object (or its bucket) does not exist in this workspace. |
409 | The object is not ready, for example its upload has not been completed. |
Errors use the standard error format.