The DoCreate API lets you generate professional PDFs from templates with dynamic data. This post walks you through the basics so you can send your first request quickly.
Create an account and get your API key
Sign up at DoCreate, create a project, and generate an API key in the dashboard. Keep this key secret and use it in the Authorization header of every request.
Create a template
Use the visual editor to design your document: add placeholders for dynamic fields (e.g. {{customer_name}}, {{total}}). Save and publish the template to get a template ID.
Your first API call
Send a POST request to the generate endpoint with your template ID and the variables you want to inject:
curl -X POST https://api.docreate.example/v1/generate \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"templateId": "tmpl_xxx", "data": {"customer_name": "Acme Inc", "total": "99.00"}}'
The response includes a URL to download the generated PDF or the file as base64, depending on your plan.
Next steps
Explore the documentation for webhooks, batch generation, and advanced template options. For common use cases like invoices or certificates, check the ready-made examples in the docs.
