DocumentsFetch a documentget

Fetch a document

Fetches the public metadata for a document.

curl -X GET "https://api.textmine.com/v3/documents/123" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN (`tm_<key>`)"
{
  "id": 67890,
  "name": "Acme supplier agreement.pdf",
  "status": "processed",
  "team_id": 321,
  "vault_id": 12345,
  "document_type_id": 777,
  "mime_type": "application/pdf",
  "size_bytes": 245760,
  "page_count": 12,
  "uploaded_at": "2024-12-25T10:00:00Z",
  "processed_at": "2024-12-25T10:00:00Z"
}
GET
/v3/documents/{documentId}
GET
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token (`tm_<key>`)
Bearer Tokenstring
Required

Use Authorization: Bearer tm_<key> for API-key access to /v3/** endpoints. V3 also accepts Auth0 JWT and HTTP Basic for user-session contexts.

Use Authorization: Bearer tm_<key> for API-key access to /v3/** endpoints. V3 also accepts Auth0 JWT and HTTP Basic for user-session contexts.
path
documentIdinteger
Required

Document ID.

Format: int64
Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token (tm_<key>). Use Authorization: Bearer tm_<key> for API-key access to /v3/** endpoints. V3 also accepts Auth0 JWT and HTTP Basic for user-session contexts.

Path Parameters

Responses

idinteger
namestring
statusstring

Public document status derived from the internal processing state.

team_idinteger
vault_idinteger
document_type_idinteger
mime_typestring
size_bytesinteger
page_countinteger
uploaded_atstring
processed_atstring