Developer API
API reference

Conversions

Two endpoints cover the whole conversion: one starts it and the other reads the result. You upload a PDF, receive a job_id, and poll that job until an ESX download link appears.

How do I start a conversion?

POST /v1/conversions

Send the PDF as multipart/form-data. The response comes back immediately as a 202 with a job_id, and the conversion itself runs in the background.

Body fields

FieldRequiredTypeNotes
fileYesfileThe estimate PDF, sent with an application/pdf content type or a .pdf filename.
price_listYesstringThe Xactimate price-list code, for example FLTA8X_02MAY26, taken from your Xactimate profile.
output_formatsNostring[]A repeatable form field that defaults to ["esx"]. Add "json" to get a structured JSON artifact alongside the ESX, as described on the JSON output page.
callback_urlNostringA webhook URL that overrides the registered one for this request.

Headers

HeaderRequiredNotes
X-API-KeyYesSee Authentication.
Idempotency-KeyNoThe same key from the same partner within the retention window returns the existing job instead of creating a duplicate, which makes retries after a timeout safe.

Limits

  • Max upload size: 50 MB.
  • Only PDF files are accepted, and any other file type returns invalid_file_type.

Example

curl
curl -s -X POST https://est.anterotrail.com/v1/conversions \
  -H "X-API-Key: at_test_xxxxxxxxxxxxxxxxxxxxxxxx" \
  -H "Idempotency-Key: my-job-2026-07-09-001" \
  -F "file=@estimate.pdf;type=application/pdf" \
  -F "price_list=FLTA8X_02MAY26"
202 Accepted
{ "job_id": "b3f1...", "status": "queued" }

How do I read the result of a conversion?

GET /v1/conversions/{job_id}

This endpoint returns only jobs that belong to your partner account. A job ID that belongs to someone else, or that does not exist, returns 404 not_found in both cases, so no one can probe for other partners' jobs.

Response while the job is running

200 · processing
{
  "job_id": "b3f1...",
  "status": "processing",
  "created_at": "2026-07-09T12:00:00Z"
}

Response when the job succeeds

200 · succeeded
{
  "job_id": "b3f1...",
  "status": "succeeded",
  "created_at": "2026-07-09T12:00:00Z",
  "summary": { "room_count": 14, "line_item_count": 132, "total_rcv": 48213.44, "warnings": [] },
  "esx_url": "https://.../job.esx?sig=...",
  "esx_expired": false,
  "artifacts": [
    { "type": "esx", "url": "https://.../job.esx?sig=...", "expired": false }
  ]
}
  • esx_url is a time-limited signed URL that is generated fresh on every GET and stays valid for 7 days from generation, not from job completion, so poll again to get a new one.
  • artifacts lists every output the job produced, each with its own signed URL, with one entry for each requested output_format. A job that requested only ESX carries the single esx entry shown above, and esx_url stays alongside it either way.
  • Once the artifact passes the 30-day retention window, esx_url is null and esx_expired is true, while summary stays available indefinitely.

Response when the job fails

200 · failed
{
  "job_id": "b3f1...",
  "status": "failed",
  "created_at": "2026-07-09T12:00:00Z",
  "error": { "code": "unsupported_estimate", "message": "No line items could be read..." }
}
Polling

Poll every few seconds. Most conversions finish in under a minute, and a job that stays in processing for more than 20 minutes is marked as failed with error.code: "timeout". If you would rather not poll at all, use a webhook.