Reference
API reference
Every endpoint, on one page. Each row links to the guide that covers it in detail. A machine-readable version is at /openapi.json .
# Conventions
Base URL https://devilpdf.comAuthentication Authorization: Bearer dp_live_... on every request. See authentication .Requests JSON bodies with Content-Type: application/json. Query strings for GET. Responses JSON, except a render or PDF tool with "output": "file", which returns the file itself. Errors A non-2xx status and { "error": { "type", "message" } }. See errors . Timestamps ISO 8601 strings in UTC, such as 2026-03-14T14:02:10.588Z. Versioning The version is in the path: /v1. Additions (new fields, new endpoints) happen within v1. Ignore fields you do not recognise.
Copy curl https://devilpdf.com/v1/render \
-H "Authorization: Bearer $DEVILPDF_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "template": "invoice", "data": { "number": "INV-1001" } }'
# Objects and ids
Every object has an object field naming its type, and an id with a prefix that tells you what it is.
Prefix Object doc_Document tpl_Template. The starters use plain ids: invoice, quote, certificate. batch_Batch whk_Webhook endpoint evt_Webhook event acct_Account
# Lists
Endpoints that return several objects wrap them in a list.
Copy {
"object" : "list" ,
"data" : [],
"has_more" : false
}
Only GET /v1/documents is paginated. It includes has_more and takes a before cursor. See pagination . The other lists return everything.
# Render
Endpoint Description POST /v1/renderCreate a PDF or image from a template, HTML or a URL. See render a document . POST /v1/render/batchQueue many documents in one request. See batches . GET /v1/batches/:idProgress of a batch: total, succeeded, failed. See check a batch .
# Documents
Endpoint Description GET /v1/documentsList documents, newest first. Filters: limit, before, status, template, batch, q. See list documents . GET /v1/documents/:idGet one document, with a freshly signed url. See get a document . DELETE /v1/documents/:idDelete the stored file now. The log entry stays. See delete a document's file .
# Templates
Endpoint Description GET /v1/templatesList your templates and the starters. ?starters=false leaves the starters out. See templates . POST /v1/templatesCreate a template from html, or copy one with from. See create a template . GET /v1/templates/:idGet one template with html, css and sample_data. PATCH /v1/templates/:idUpdate the fields you send. See update a template . DELETE /v1/templates/:idDelete a template. POST /v1/templates/:id/duplicateCopy a template. Optional name. POST /v1/templates/validateCheck html and settings without saving. See validate . POST /v1/templates/previewMerge unsaved html, css, settings and data and return the composed page as { "html" }. No file is created and nothing is counted. POST /v1/templates/generateDesign a template from a plain-English prompt. See AI templates . POST /v1/templates/:id/reviseChange a template with a plain-English prompt. See revise a template . POST /v1/templates/uploadUpload a .docx or .xlsx file as a template. See Word and Excel .
Endpoint Description POST /v1/pdf/mergeJoin 2 to 50 PDFs. See merge . POST /v1/pdf/splitCut a PDF by ranges or every N pages. See split . POST /v1/pdf/protectAdd a password and permissions. See protect . POST /v1/pdf/fillFill form fields, optionally flattening them. See fill any PDF form . POST /v1/pdf/fieldsList a PDF's form fields. Not counted. See find a PDF's field names .
# Webhooks
Endpoint Description GET /v1/webhooksList your endpoints. The response also has event_types, the events you can subscribe to. POST /v1/webhooksAdd an endpoint: url and optional events. Returns your signing_secret. See webhooks . DELETE /v1/webhooks/:idRemove an endpoint.
# Embed
Endpoint Description POST /v1/embed-tokensCreate a short-lived token that opens one template in the embeddable editor . Growth and up.
# Account
Endpoint Description GET /v1/usageThis month's usage and what is left. GET /v1/accountYour account: plan, storage region, whether a bucket is connected. GET /v1/plansThe plans and their limits. See limits .
# Usage
Copy curl https://devilpdf.com/v1/usage \
-H "Authorization: Bearer $DEVILPDF_API_KEY"
Response
Copy {
"object" : "usage" ,
"plan" : "starter" ,
"period" : "2026-03" ,
"resets_at" : "2026-04-01T00:00:00.000Z" ,
"documents" : { "used" : 412 , "limit" : 1000 , "remaining" : 588 },
"ai_generations" : { "used" : 3 , "limit" : 30 , "remaining" : 27 },
"templates" : { "limit" : null },
"daily" : [
{ "day" : "2026-03-13" , "documents" : 61 },
{ "day" : "2026-03-14" , "documents" : 18 }
]
}
daily covers the last 30 days and only includes days with at least one document. templates.limit is null when your plan has no template limit.
# Account
Copy {
"object" : "account" ,
"id" : "acct_Zr4nQ0c2V8mTq1LxB7yK" ,
"email" : "dana@northwind.studio" ,
"plan" : "starter" ,
"subscription_status" : "active" ,
"storage_region" : "auto" ,
"s3_configured" : false ,
"created_at" : "2026-02-02T10:15:00.000Z"
}
storage_region is auto or eu. See storage .
# Dashboard only
Some things cannot be done with an API key, on purpose: a leaked key should not be able to mint more keys or redirect your files. Do these in the dashboard.
Creating and revoking API keys. Connecting your own bucket and switching on EU storage. Billing and plan changes.
The endpoints behind these pages return 403 with the type forbidden when called with an API key.
# Other endpoints
Endpoint Description POST /mcpThe MCP server for AI agents. Same API keys. GET /f/:id/:filenameSigned download links. No API key needed; the signature in the query string is the credential. See storage . GET /openapi.jsonThe OpenAPI 3.1 description of this API. GET /llms.txtA short plain-text summary of the API for language models.