Skip to main content
GET
/
datastores
/
{datastore_id}
/
contents
Get Document Contents
curl --request GET \
  --url https://api.contextual.ai/v1/datastores/{datastore_id}/contents \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "content_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "content_type": "unstructured",
      "page_number": 123
    }
  ],
  "has_more": true
}

Authorizations

Authorization
string
header
required

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

Path Parameters

datastore_id
string<uuid>
required

Datastore ID of the datastore from which to retrieve the document

Query Parameters

document_id
string<uuid>

Document ID of the document to retrieve details for

The query to search keywords for

offset
integer
default:0

The offset to start retrieving content ids

limit
integer
default:50

The number of content ids to be returned

Response

Successful Response

data
Data · array
required

List of content entries

  • DocumentContentEntry
  • StructuredContentEntry
has_more
boolean
required

Whether there are more content entries to retrieve