Get a file
GET
/v1/files/{id}
const url = 'https://deeperesearch.com/v1/files/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string format: uuid
Responses
Section titled “Responses”The file
Media typeapplication/json
object
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" }}