DocumentsRe-run document processingpost

Re-run document processing

Queues the document processing pipeline again and returns the current document metadata with 202 Accepted.

curl -X POST "https://api.textmine.com/v3/documents/123/reprocess" \
  -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"
}
POST
/v3/documents/{documentId}/reprocess
POST
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