SearchSearch documents with query parametersget

Search documents with query parameters

Searches documents by text query, team IDs, Vault IDs, document type IDs, status, and publication date range.

curl -X GET "https://api.textmine.com/v3/documents/search?q=example_string&team_ids=%5B123%5D&vault_ids=%5B123%5D&document_type_ids=%5B123%5D&status=example_string&date_from=2024-12-25T10%3A00%3A00Z&date_to=2024-12-25T10%3A00%3A00Z&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/search
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
qstring

Full-text query.

query
document_type_idsarray

Document type IDs.

query
statusstring

Document status.

query
date_fromstring

Inclusive start of publication date range.

Format: date-time
query
date_tostring

Inclusive end of publication date range.

Format: date-time
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

qstring

Full-text query.

team_idsarray

Team IDs.

vault_idsarray

Vault IDs.

document_type_idsarray

Document type IDs.

statusstring

Document status.

date_fromstring

Inclusive start of publication date range.

date_tostring

Inclusive end of publication date range.

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.