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?
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
| Field | Required | Type | Notes |
|---|---|---|---|
file | Yes | file | The estimate PDF, sent with an application/pdf content type or a .pdf filename. |
price_list | Yes | string | The Xactimate price-list code, for example FLTA8X_02MAY26, taken from your Xactimate profile. |
output_formats | No | string[] | 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_url | No | string | A webhook URL that overrides the registered one for this request. |
Headers
| Header | Required | Notes |
|---|---|---|
X-API-Key | Yes | See Authentication. |
Idempotency-Key | No | The 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 -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" { "job_id": "b3f1...", "status": "queued" } How do I read the result of a conversion?
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
{
"job_id": "b3f1...",
"status": "processing",
"created_at": "2026-07-09T12:00:00Z"
} Response when the job succeeds
{
"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_urlis a time-limited signed URL that is generated fresh on everyGETand stays valid for 7 days from generation, not from job completion, so poll again to get a new one. -
artifactslists every output the job produced, each with its own signed URL, with one entry for each requestedoutput_format. A job that requested only ESX carries the singleesxentry shown above, andesx_urlstays alongside it either way. -
Once the artifact passes the 30-day retention
window,
esx_urlisnullandesx_expiredistrue, whilesummarystays available indefinitely.
Response when the job fails
{
"job_id": "b3f1...",
"status": "failed",
"created_at": "2026-07-09T12:00:00Z",
"error": { "code": "unsupported_estimate", "message": "No line items could be read..." }
}
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.