Library
Get document
Gets one Discovery document's metadata, and optionally its extracted text.
GET/api/v1/documents/{document_id}
Authorization
AuthorizationstringheaderrequiredBearer authentication header of the form
Bearer <token>, where <token> is your Sentinel API key. See Authentication.Path parameters
document_idstringpathrequired≤ 64 charactersThe document's ID, as a list or search returned it.
Query parameters
includestringquerytext adds the document's extracted text, up to 500,000 characters.One of
textResponse
200 · The document.
idstringrequiredmatter_idstringrequiredfile_namestringrequireddocument_typestring | nullrequiredFor example
email, attachment or file.mime_typestring | nullrequiredfile_sizeinteger | nullrequiredBytes.
page_countinteger | nullrequiredcustodianstring | nullrequiredparent_document_idstring | nullrequiredFor an attachment, the email it belongs to.
bates_numberstring | nullrequiredemailobject | nullrequiredEmail envelope, when the document is an email.
Fields
subjectstring | nullsenderstring | nullrecipientsstring[] | nullsent_atstring (date-time) | nulldocument_datestring (date-time) | nullrequireduploaded_atstring (date-time) | nullrequiredtextstring | nullExtracted text. Only with
include=text. Null when the document has no text yet.text_truncatedbooleanOnly with
include=text. true when the text was cut at 500,000 characters.Errors
| Status | Type | When |
|---|---|---|
400 | invalid_request | Invalid parameters. |
401 | authentication_required | Missing, invalid, revoked or expired API key. |
403 | permission_denied | The key's role can't use the API. |
404 | not_found | No such document, or the caller can't see it. |
429 | rate_limited | More than 120 requests in a minute from one key. Retry after the Retry-After header's seconds. |
See Errors and Rate limits.