GET
/
api
/
corpora
/
{corpus_id}
/
sources
/
{source_id}
/
documents
/
{document_id}

Authorizations

X-API-Key
string
header
required

API key

Path Parameters

corpus_id
string
required
document_id
string
required
source_id
string
required

Response

200 - application/json

A single complete source of information included in a corpus. In the most straight-forward case, this could be an uploaded PDF or a single webpage. However, documents can also be created from other documents during processing, for example turning an HTML page into a markdown document.

corpusId
string

The id of the corpus in which this document is included.

created
string

When this document was created.

documentId
string

The unique ID of this document.

metadata
object

Metadata about the document.

mimeType
string

The MIME type of the document. https://developer.mozilla.org/en-US/docs/Web/HTTP/MIME_types

sizeBytes
string

The size of the document contents, in bytes.

sourceId
string

The id of the source that provides this document.