REST API
One endpoint. Everything you need.
REST API with predictable endpoints, JSON everywhere, and responses under 100ms. If your code can make an HTTP POST, it works.
Authentication
All requests must include your API key in the Authorization header as a Bearer token. Generate keys from your account dashboard.
- Keep your API key secret — never expose it in client-side code or public repos
- Use environment variables on your server
- If compromised, rotate immediately from your dashboard
Errors
ExportToPDF uses standard HTTP status codes. All errors return JSON with a code and message field.
- 400 — Bad request (invalid parameters)
- 401 — Unauthorized (missing or invalid API key)
- 404 — Template or document not found
- 429 — Rate limit exceeded
- 500 — Server error (we are notified automatically)
Generate a document
POST/v1/documents/generateThe core endpoint. POST your template ID and data payload. Get a download URL or raw bytes back — typically under 100ms.
- Returns a download_url valid for 24 hours by default
- Pass output: "bytes" to receive raw PDF bytes in the response
- Pass version: "staging" to test a non-live template version
Rate limits
Rate limits are applied per API key. Headers in every response show your current usage.
- Free plan: 60 requests/minute
- Pro plan: 300 requests/minute
- Business: custom limits available on request
Webhooks
POSTYour configured URLConfigure webhook URLs in template settings. When a PDF is generated, ExportToPDF will POST to your URL with the document metadata.
Test founder quote