Invoxaco API
Generate invoices, contracts and 130+ business documents programmatically. Available on the Gold plan.
Authentication
Create an API key in Settings → API Access, then send it as a Bearer token on every request:
Authorization: Bearer invx_live_xxxxxxxxxxxxxxxx
Keys are shown once at creation and stored only as a hash. Keep them secret; revoke a leaked key immediately.
Base URL
https://invoxaco.com/api/v1
Endpoints
| Method | Path | Description |
|---|---|---|
| GET | /me | Your account, plan and remaining document quota. |
| GET | /templates | List all available generators (slugs). |
| GET | /templates/{slug} | Get a generator's field schema. |
| POST | /documents | Create a document from a template and data. |
| GET | /documents/{id} | Retrieve a document you created. |
| GET | /documents/{id}/pdf | Download the document as a PDF. |
Example: create an invoice
curl -X POST https://invoxaco.com/api/v1/documents \
-H "Authorization: Bearer invx_live_xxxxxxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{
"template": "invoice-generator",
"title": "Invoice INV-1001",
"status": "final",
"data": {
"invoice_number": "INV-1001",
"invoice_date": "2026-07-08",
"currency": "USD",
"from_name": { "full_name": "Acme Ltd" },
"to_name": { "full_name": "Client Co" },
"items": [
{ "description": "Consulting", "qty": 10, "price": 120 }
],
"tax_rate": 8.5
}
}'
Response:
{ "id": 42, "template": "invoice-generator", "status": "created",
"pdf_url": "https://invoxaco.com/api/v1/documents/42/pdf" }
Then download the PDF:
curl -H "Authorization: Bearer invx_live_xxxx" \
https://invoxaco.com/api/v1/documents/42/pdf -o invoice.pdf
Errors & limits
401— missing / invalid / revoked key.403— your plan does not include API access.422— unknown template or invalid request body.429— monthly document limit reached.
Use GET /api/v1/templates/{slug} to discover the exact field names for each generator before creating a document.