List the documents in the corpus
GET/v2/corpora/:corpus_key/documents
The List Documents API enables you to retrieve a list of documents stored in a specific corpus. This endpoint provides an overview of document metadata, including document IDs, tables (if table extraction is enabled), and pagination details.
Use this API for viewing documents indexed so far and helping you decide to remove documents that are no longer needed. It helps you manage the document lifecycle in your environment.
This information enables you to catalog and inventory large amounts of data while also retrieving lists of documents for further analysis. For example, developers can utilize the metadata to to build custom search and filtering capabilities into their applications. If you enabled tabled extraction, this endpoint also returns the tables that this document contains.
Currently Document Admin APIs do not allow you to access the text of your documents.
Request
Responses
- 200
- 403
- 404
The response contains an array of document objects with the matching document IDs, metadata, tables, parts, storage usage, and metadata about the pagination.
Permissions do not allow listing documents in the corpus.
Corpus not found.