Developers Get an API key
Library

Get document

Gets one Discovery document's metadata, and optionally its extracted text.

GET/api/v1/documents/{document_id}

Authorization

Authorizationstringheaderrequired
Bearer authentication header of the form Bearer <token>, where <token> is your Sentinel API key. See Authentication.

Path parameters

document_idstringpathrequired≤ 64 characters
The document's ID, as a list or search returned it.

Query parameters

includestringquery
text adds the document's extracted text, up to 500,000 characters.
One of text

Response

200 · The document.

idstringrequired
matter_idstringrequired
file_namestringrequired
document_typestring | nullrequired
For example email, attachment or file.
mime_typestring | nullrequired
file_sizeinteger | nullrequired
Bytes.
page_countinteger | nullrequired
custodianstring | nullrequired
parent_document_idstring | nullrequired
For an attachment, the email it belongs to.
bates_numberstring | nullrequired
emailobject | nullrequired
Email envelope, when the document is an email.
Fields
subjectstring | null
senderstring | null
recipientsstring[] | null
sent_atstring (date-time) | null
document_datestring (date-time) | nullrequired
uploaded_atstring (date-time) | nullrequired
textstring | null
Extracted text. Only with include=text. Null when the document has no text yet.
text_truncatedboolean
Only with include=text. true when the text was cut at 500,000 characters.

Errors

StatusTypeWhen
400invalid_requestInvalid parameters.
401authentication_requiredMissing, invalid, revoked or expired API key.
403permission_deniedThe key's role can't use the API.
404not_foundNo such document, or the caller can't see it.
429rate_limitedMore than 120 requests in a minute from one key. Retry after the Retry-After header's seconds.

See Errors and Rate limits.