Retrieve a resource’s content

Stored files, such as agent files and images, redirect to a fresh signed URL, or return { id, url, expiresAt } with redirect=false. Documents and tables are rendered and returned directly as text (such as text/markdown or text/csv), ignoring redirect.

Path Params
string
required

The res_ ID of the resource.

Query Params
string
enum

How a signed download should be presented.

Allowed:
string

Requested media type. Only the default format is served for now.

string

Set to false to get the signed URL as JSON instead of a redirect. Any other value redirects.

Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

400

The resource ID is malformed, or format or disposition is invalid.

401

The API key or token is missing or invalid.

403

The credentials lack the scope needed to read resources.

404

The resource does not exist or is not visible to you.

406

The requested format is not available. The message lists the available formats.

410

The resource was deleted. Some sources report a deleted resource as 404.

422

The resource is too large to deliver.

502

The resource could not be read.

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
text/markdown
text/csv
text/plain
*/*