Documentation

Status and download

Status

GET /v1/tasks/{task_id} — with the same key that started the operation.

curl https://api.smartpdf.ru/v1/tasks/$TASK_ID -H "X-API-Key: $SMARTPDF_API_KEY"
{
  "task_id": "3f2c5b0e-8a41-4d7e-9c1f-5d0b8f2e7a64",
  "status": "done",
  "progress": 100,
  "estimated_seconds": null,
  "input_file_size": 792305,
  "output_file_size": 42841,
  "error": null,
  "stage": null
}
FieldMeaning
statuspending, processing, done or failed — see task statuses.
progress0–100. For PDF to Word, it’s updated page by page during processing.
stageThe stage of a long operation, for example “Reading pages: 12 of 40”; for other operations, null.
input_file_size, output_file_sizeSize of the source file and the result in bytes — for example, to show how much the file was compressed.
errorThe reason for failed, in plain language: a wrong password, a damaged PDF, too many large images in the document; for technical failures, “Processing failed. Try another file.” For other statuses, null.

Poll every 1–2 seconds: status polling allows up to 120 requests per minute from one IP. Instead of polling, you can receive webhooks.

Download

GET /v1/tasks/{task_id}/download returns a link to the result:

{
  "download_url": "https://api.smartpdf.ru/v1/tasks/3f2c5b0e-…/file?token=…",
  "expires_at": "2026-10-05T12:00:00Z",
  "filename": "document_smartpdf.pdf"
}

Download download_url with a plain GET — no key is needed, the token in the link grants access. The link is valid for an hour (expires_at).

  • Free plan — the link can be obtained only once: a repeated /download request returns 410. Download the file right away.
  • Pro and Business — you can request a new link while the result is stored: 7 and 30 days, respectively.

/download returns 400 before the operation finishes and 410 after the storage period ends.

This page for agents: Markdown · llms.txt