Skip to content

Get a file

GET
/v1/files/{id}
curl --request GET \
--url https://deeperesearch.com/v1/files/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \
--header 'Authorization: Bearer <token>'

The file and its status. Only ready files can be attached to research.

id
required
string format: uuid

The file

Media typeapplication/json
object
id
required
string format: uuid
object
required
string
Allowed value: file
filename
required
string
mime_type
required
string
size_bytes
required
integer
>= -9007199254740991 <= 9007199254740991
status
required
string
Allowed values: awaiting_upload processing ready failed
text_chars
required

Characters of text read from the file

Any of:
integer
>= -9007199254740991 <= 9007199254740991
note
required
string | null
created_at
required

ISO 8601 timestamp, UTC

string

Example

{
"object": "file",
"status": "awaiting_upload"
}

Missing or invalid API key (unauthorized)

Media typeapplication/json
object
error
required
object
code
required

Stable, machine-readable error code. See Errors in the docs.

string
message
required

What went wrong, written for people

string

Example generated

{
"error": {
"code": "example",
"message": "example"
}
}

Not found in this organization (not_found)

Media typeapplication/json
object
error
required
object
code
required

Stable, machine-readable error code. See Errors in the docs.

string
message
required

What went wrong, written for people

string

Example generated

{
"error": {
"code": "example",
"message": "example"
}
}

Rate limit, spending limit or quota reached (rate_limited, limit_reached, quota_exceeded). See Retry-After.

Media typeapplication/json
object
error
required
object
code
required

Stable, machine-readable error code. See Errors in the docs.

string
message
required

What went wrong, written for people

string

Example generated

{
"error": {
"code": "example",
"message": "example"
}
}