POST
/
api
/
v1
/
documents
/
{id}
/
download_uri
{
  "download_uri": "<string>",
  "expires_in_hours": 123
}

Retrieves a Document stored at One Codex. First POST to the download_uri endpoint for the individual document. Then download the provided pre-signed download_uri link within the provided link expiration timeframe.

Note that this route is a POST because it may incur retrieval charges for large amounts of data and so should not be repeatedly retried. Care should also be taken in porting code using the download_uri route from a notebook environment on the One Codex platform to an external environment (where downloads may be unavailable depending on your platform account level).

Path Parameters

id
string
required

Response

200 - application/json
Successful operation
download_uri
string

The presigned download URL.

expires_in_hours
integer

The number of hours the download URL will be valid.