NexPDF Cloud API
The NexPDF engine as an HTTP API. Convert, OCR, redact, protect and archive documents from any language, with nothing to install.
NexPDF Cloud runs the same engine as the NexPDF SDKs on our servers. You send files over HTTPS and get the finished document back in the same response. Nothing is stored once the request ends.
Use it when you cannot ship a native library (serverless functions, a PHP host, a no-code tool), when jobs come now and then, or to try a workflow before you embed the SDK.
Get started
Client libraries
Choose a workflow
Build API reference
/v1/build.What it does
| Area | What you can do | Guide |
|---|---|---|
| Generate | Word, Excel, PowerPoint, images, EPUB and HTML to PDF | Convert to PDF, HTML to PDF |
| Assemble | Merge files, pick page ranges, rotate and delete pages | Merge and pages |
| Scan | OCR scanned pages into searchable text | OCR |
| Extract | Markdown, HTML or structured JSON from any document | Extraction |
| Protect | Redact text, regex and patterns (e-mail, IBAN, card numbers…), watermark, encrypt | Redaction, Watermark, Encrypt |
| Comply | PDF/A for archiving, PDF/UA tagging for accessibility | PDF/A, Accessibility |
| Edit | Fill and flatten forms, optimise and linearise, edit Excel cells and Word text | Forms, Optimize, Office editing |
| Export | PDF to Word, Excel or a PNG of any page | Office export |
One call, many steps
Most work is one request to /v1/build: name your files, list the parts to join, the actions to
apply in order and the output you want. This contract and annex become one redacted,
watermarked, password-protected PDF in a single call:
curl https://api.nexpdf.dev/v1/build \
-H "Authorization: Bearer $NEXPDF_API_KEY" \
-F contract=@contract.pdf \
-F annex=@annex.docx \
-F 'instructions={
"parts": [
{
"file": "contract"
},
{
"file": "annex"
}
],
"actions": [
{
"type": "redact",
"query": "email",
"mode": "pattern"
},
{
"type": "watermark",
"text": "CONFIDENTIAL"
},
{
"type": "encrypt",
"owner_password": "owner-secret",
"user_password": "reader"
}
],
"output": {
"type": "pdf",
"linearize": true
}
}' \
-o packet.pdfHow it works
- You create an API key in the dashboard. Test keys are free on every account; live keys draw on your plan.
- Your server sends the files as
multipart/form-datawith the key as a bearer token. - The request runs in its own isolated worker, with limits on time and memory and no network access.
- The response is the finished file. It carries
x-nexpdf-units(what it cost) andx-request-id(quote it when you write to us). Files are gone when the request ends.
Also from NexPDF
- The SDKs run the same engine inside your own app, on-device or on your servers, with no per-request cost.
- The MCP server gives AI assistants and agents these tools, and the docs MCP server lets them read this documentation.