Skip to main content
GET
Retrieve a document

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
integer
required

The ID of the document to retrieve.

Query Parameters

include_content
boolean

Include the content of the document in the response.

Response

200 - application/json

Response serializer for file retrieve results.

id
integer
required

Unique identifier for the file

object
string
required
read-only

Object type, always 'file'

created_at
integer
required
read-only

Unix timestamp of when the file was created

filename
string
required
read-only

Original filename of the file

purpose
string
required
read-only

Purpose of the file, always 'documents'

status
string
required
read-only

Processing status of the file

signature
string | null
required
read-only

TLSH hash for duplicate detection.

content
string

Content of the file (included only when include_content=true)