Skip to main content
The TrueParser API is a REST-based service that handles document ingestion, status tracking, and result retrieval. All protected endpoints require a Bearer JWT issued by the TrueParser Dashboard.

Base URL

The TrueParser API uses a single production endpoint for all traffic.

Authentication

Authentication is handled via the Authorization: Bearer <JWT> header.

Public Endpoints

The following endpoints do not require a security token:
  • GET /health/live
  • GET /health/ready
  • GET /health/node-state
  • GET /openapi/v1.json

Document Parsing

Ingest Document

POST /api/v1/documents/upload Submit a document for asynchronous parsing. This endpoint accepts the file as the raw HTTP request body.

Request Parameters

Response (202 Accepted)

Create Presigned Upload Request

POST /api/v1/documents/upload-request Creates a tenant-scoped upload session for larger files.

Complete Presigned Upload

POST /api/v1/documents/upload-complete Finalizes a previously created upload session and enqueues parsing.

Lifecycle & Results

Check Status

GET /api/v1/documents/{documentId}/status Returns the current processing state of the job.

Status Values

statusInt is the numeric job-state code. status is the human-readable string returned by the API.

Response (200 OK)


Retrieve Result

GET /api/v1/documents/{documentId}/result Streams the final, materialized JSON artifact directly.

Response Behaviors

  • 200 OK: Returns the parsed JSON file as application/json.
  • 202 Accepted: Document is still processing. Poll the status endpoint again.
  • 422 Unprocessable Entity: The extraction failed. The body contains the specific error reason.
  • 404 Not Found: The document ID is invalid or the artifact has expired (3-hour default retention).

Check Status (Batch)

POST /api/v1/documents/status/batch Polls status for multiple documents in one call. Request body:

Health & Monitoring

Readiness Probe

GET /health/ready Checks if the node is ready to accept traffic.
  • Status Checks: Currently verifies Redis connectivity and registry initialization.

Node State

GET /health/node-state Returns high-granularity telemetry for the specific node, including CPU, memory, and active request counts. Used primarily for load balancer routing decisions.

Common Error Codes

Last modified on April 28, 2026