DocumentsList documents in a vaultget

List documents in a vault

Lists documents for a Vault, optionally filtered by document type and processing status. Returns only documents with an active imported-contract record.

curl -X GET "https://api.textmine.com/v3/documents?vault_id=123&document_type_id=123&status=example_string&cursor=example_string&limit=50" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN (`tm_<key>`)"
{
  "items": [
    {
      "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"
    }
  ],
  "nextCursor": "example_string",
  "total": 42
}
GET
/v3/documents
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.
query
vault_idinteger
Required

Vault to list documents from.

Format: int64
query
document_type_idinteger

Optional document type filter.

Format: int64
query
statusstring

Optional public status filter, for example processed.

query
cursorstring

Opaque cursor from the previous page. V3 currently uses numeric offsets as cursors.

query
limitinteger

Maximum number of items to return. Values above the service limit are clamped.

Min: 1 • Max: 200
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.

Query Parameters

vault_idinteger
Required

Vault to list documents from.

document_type_idinteger

Optional document type filter.

statusstring

Optional public status filter, for example processed.

cursorstring

Opaque cursor from the previous page. V3 currently uses numeric offsets as cursors.

limitinteger

Maximum number of items to return. Values above the service limit are clamped.

Responses

itemsarray
nextCursorstring

Cursor to pass to the next request. Null means there are no more results.

totalinteger

Total rows when the endpoint can compute it cheaply.