List Documents
Changed onGet list of documents in a given Datastore, including document id, name, and ingestion job status.
Performs cursor-based pagination if the number of documents exceeds the requested limit. The returned cursor can be passed to the next GET /datastores/{datastore_id}/documents call to retrieve the next set of documents.
Request
- Base URLhttps://api.contextual.ai/v1
- URLhttps://api.contextual.ai/v1/datastores/{datastore_id}/documents
- AuthHTTP bearer
Path parameters
Datastore ID of the datastore to retrieve documents for
Query parameters
Maximum number of documents to return
Cursor from the previous call to list documents, used to retrieve the next set of results
Filters documents whose ingestion job status matches (one of) the provided status(es).
Filters documents uploaded at or after specified timestamp.
Filters documents uploaded at or before specified timestamp.
Filters documents with the given prefix.
Filters documents whose name contains the search term (case-insensitive substring match).
Response
Successful Response
Changes
- breaking
the
//response's property type changed fromobjectto no type for status - info
added the new optional
queryrequest parameterdocument_name_search
- breaking
- breaking
response property
documents/items/custom_metadata/additionalProperties/list-of-types was widened by adding typesarrayto media typeapplication/jsonof response200
- breaking