Create your first customer account and generate your first PDF in minutes.
Before generating PDFs you need a customer account. Create one via the admin API:
curl -X POST https://your-api.docustream.com/api/admin/customers \
-H "x-admin-key: YOUR_ADMIN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Acme Corp",
"email": "admin@acme.com",
"plan": "starter"
}'The response includes an apiKey — save it. This is the customer's credential for all API calls.
curl -X POST https://your-api.docustream.com/api/templates \
-H "x-api-key: ak_live_xxxxxxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{
"name": "Welcome Letter",
"content": "<html><body><h1>Welcome, {{name}}!</h1><p>Account created: {{date}}</p></body></html>"
}'curl -X POST https://your-api.docustream.com/api/pdfs/generate \
-H "x-api-key: ak_live_xxxxxxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{
"templateId": "tmpl_xyz789",
"variables": {
"name": "Jane Smith",
"date": "April 5, 2026"
}
}'The response includes a signed downloadUrl — open it in a browser to download your PDF.