Skip to main content
GET
Download file
Returns a signed URL for a file stored in a workspace. The endpoint returns the URL, not the bytes. Fetch the URL to get the file.

Query parameters

string
required
File ID, as returned by the list or upload endpoints. Omitting it returns 400.

Response

string
Signed download URL, valid for one hour from the moment of the request. It carries the file’s original name as an attachment filename. A browser saves it under that name rather than under the internal storage key.

Example

Response

The URL is pre-signed. It works in a browser or any HTTP client with no authorization header of its own, and it expires one hour after it is issued. Request a new one rather than storing it.

Errors

Every error carries the shape {"error": "<message>"}.

Compatibility parameter

Prefer id. The older fileId spelling is also accepted as an alias. If both are present with different values the request returns 400. At least one is required.

Authorizations

Authorization
string
header
required

API key authentication. Get your key at orgo.ai/workspaces

Query Parameters

id
string

File ID. Supply id or its compatibility alias fileId. If both are supplied they must match.

fileId
string

Compatibility alias for id. Prefer id.

Response

Download URL

url
string

Signed download URL (expires in 1 hour)