You can configure webhook in your CRM, Forms to send data to Docupilot to create your document.
Webhook Endpoint
Http Method : POST
Content-Type : application/json
https://api.docupilot.app/documents/create/{org_unique}/{document_unique}
Sample Endpoint
https://api.docupilot.app/documents/create/46ac75c3/5e7d03ec
You can find this URL in Create section in template's details page.
Please note that the tokens(merge fields) defined in the template should match the keys in the webhook data.
API Integration
If you want to download the created document along with triggering deliveries you need to append download=true parameter in the URL. A secure file url with 24 hour expiry is provided to download the document.
If you want to download the created document directly along with triggering deliveries you need to append download=file parameter in the URL. The created document is returned in the API response.