Skip to main content
GET
/
extract
/
documents
List Documents
curl --request GET \
  --url https://api.contextual.ai/v1/extract/documents \
  --header 'Authorization: Bearer <token>'
{
  "documents": [
    {
      "document_id": "<string>",
      "file_name": "<string>",
      "file_size": 123,
      "page_count": 123,
      "uploaded_at": "<string>",
      "status": "<string>"
    }
  ],
  "total_count": 123,
  "next_cursor": "<string>",
  "prev_cursor": "<string>"
}

Authorizations

Authorization
string
header
required

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

Query Parameters

limit
integer
default:20
cursor
string | null

Response

Successful Response

Response model for document listing.

documents
DocumentInfoResponse · object[]
required

List of documents

total_count
integer
required

Total number of documents

next_cursor
string | null

Next cursor to continue pagination. Omitted if there are no more documents to retrieve.

prev_cursor
string | null

Previous cursor to go back in pagination. Omitted if this is the first page.