Skip to content

Create an object read URL

POST/v1/asset-objects/{uid}/read-url

Returns 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) and is_signed is true.
  • In a public bucket the object's permanent public URL is returned, is_signed is false and expires_at is 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

uidstringRequired

The object's uid (the object_id returned by Create an upload).

Headers

X-Workspace-SlugstringRequired

Slug 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.

successbooleanRequired

true when the request succeeded.

messagestringRequired

Human-readable status message.

dataobject
Show attributes
read_urlstringRequired

URL to download the object.

expires_atstring (date-time)

When the URL stops working. Omitted for public URLs, which do not expire.

is_signedbooleanRequired

true for a presigned URL from a private bucket, false for a public URL.

Errors

StatusMeaning
401The API key is missing, invalid, expired or revoked.
403You cannot access the workspace, your role does not allow this action, or the account is suspended.
404The object (or its bucket) does not exist in this workspace.
409The object is not ready, for example its upload has not been completed.

Errors use the standard error format.