Skip to Content
NexPDF

Endpoints

Every NexPDF Cloud endpoint, its fields and what it returns.

English

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.

EndpointFieldsReturns
POST /v1/buildinstructions (JSON, see Build API) and the files it namesAs output says
POST /v1/convert/pdfdocument: Word, Excel, PowerPoint, image, EPUB or PDFPDF
POST /v1/ocrdocument; languages (optional, such as eng+por)Searchable PDF
POST /v1/mergefile1, file2, … in the order to join themPDF
POST /v1/extract/markdowndocumentMarkdown
POST /v1/xlsx/editdocument (.xlsx); edits (JSON). Live keys only..xlsx
POST /v1/docx/editdocument (.docx); ops (JSON). Live keys only..docx
POST /v1/splitdocument; every (a number of pages) or ranges (JSON list of { "start", "end" })ZIP of PDFs
POST /v1/verifydocument (PDF)JSON: one object per signature (keys)
POST /v1/sign/preparedocument; certificate (PEM or DER); options (JSON), expires_in (optional)201 and the bytes to sign (two-step signing). Free.
POST /v1/sign/completeid; signature (base64)The signed PDF
DELETE /v1/sign/{id}None204
POST /v1/estimateAs /v1/buildJSON: units, pages, operations (estimates). Free.
POST /v1/jobsAs /v1/build202 and the job (background jobs)
POST /v1/batchinstructions; document1, document2, …202 and the job
GET /v1/jobs/{id}NoneJSON: the job
GET /v1/jobs/{id}/resultNoneThe job's output
DELETE /v1/jobs/{id}None204
POST /v1/viewerdocument; expires_in, download (optional)201 and the link (hosted viewer)
DELETE /v1/viewer/{id}None204
POST /v1/ai/extractdocument; schema (JSON Schema); prompt (optional)JSON: { "data": … } (AI)
POST /v1/ai/classifydocument; labels (JSON list); prompt (optional)JSON: { "label", "reason" }
GET /v1/healthNone, and no key{"ok":true,"version":"1.1.0"}
GET /v1/openapi.jsonNone, and no keyThe OpenAPI document

Response headers

HeaderMeaning
x-nexpdf-unitsThe units the request cost.
x-request-idThe request's id. Quote it when you write to us.
retry-afterOn 429 and 503: seconds to wait before trying again.
cache-controlno-store, except viewer page images.

On this page