Skip to content

Finish an upload

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

Step 3: tells Deeper Research the bytes are uploaded. The text is then read in the background; poll GET /v1/files/{id} until status is ready.

id
required
string format: uuid

The file, now processing

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"
}
}

The key lacks the scope this needs (forbidden)

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"
}
}