Endpoints
Every NexPDF Cloud endpoint, its fields and what it returns.
Base address: https://api.nexpdf.dev. Every endpoint takes a bearer key except health and the
specification. Requests that send files use multipart/form-data, and any file field may be sent
as a link instead (document_url). The whole API is also described in
OpenAPI.
| Endpoint | Fields | Returns |
|---|---|---|
POST /v1/build | instructions (JSON, see Build API) and the files it names | As output says |
POST /v1/convert/pdf | document: Word, Excel, PowerPoint, image, EPUB or PDF | |
POST /v1/ocr | document; languages (optional, such as eng+por) | Searchable PDF |
POST /v1/merge | file1, file2, … in the order to join them | |
POST /v1/extract/markdown | document | Markdown |
POST /v1/xlsx/edit | document (.xlsx); edits (JSON). Live keys only. | .xlsx |
POST /v1/docx/edit | document (.docx); ops (JSON). Live keys only. | .docx |
POST /v1/split | document; every (a number of pages) or ranges (JSON list of { "start", "end" }) | ZIP of PDFs |
POST /v1/verify | document (PDF) | JSON: one object per signature (keys) |
POST /v1/sign/prepare | document; certificate (PEM or DER); options (JSON), expires_in (optional) | 201 and the bytes to sign (two-step signing). Free. |
POST /v1/sign/complete | id; signature (base64) | The signed PDF |
DELETE /v1/sign/{id} | None | 204 |
POST /v1/estimate | As /v1/build | JSON: units, pages, operations (estimates). Free. |
POST /v1/jobs | As /v1/build | 202 and the job (background jobs) |
POST /v1/batch | instructions; document1, document2, … | 202 and the job |
GET /v1/jobs/{id} | None | JSON: the job |
GET /v1/jobs/{id}/result | None | The job's output |
DELETE /v1/jobs/{id} | None | 204 |
POST /v1/viewer | document; expires_in, download (optional) | 201 and the link (hosted viewer) |
DELETE /v1/viewer/{id} | None | 204 |
POST /v1/ai/extract | document; schema (JSON Schema); prompt (optional) | JSON: { "data": … } (AI) |
POST /v1/ai/classify | document; labels (JSON list); prompt (optional) | JSON: { "label", "reason" } |
GET /v1/health | None, and no key | {"ok":true,"version":"1.1.0"} |
GET /v1/openapi.json | None, and no key | The OpenAPI document |
Response headers
| Header | Meaning |
|---|---|
x-nexpdf-units | The units the request cost. |
x-request-id | The request's id. Quote it when you write to us. |
retry-after | On 429 and 503: seconds to wait before trying again. |
cache-control | no-store, except viewer page images. |