Unique submission IDs, API endpoint for PDF, bugfixes
Two small, but useful (at least to those who requested these) improvements were added today.
Unique submission IDs
Each submission now has a public (to admins), unique ID. These IDs start at 1 for each form. Within the form settings, you can optionally set a prefix and/or a suffix. So you could create something like Student-NUMBER-2025
, or whatever you need. The IDs is auto-incrementing.
For customers using webhooks, the updated response looks like this, including a number
(integer) and number_formatted
(string, with prefix or suffix) key:
{ "id": "e5b579ae-daf8-4b36-b300-d622df17a0de", "number": 123, "number_formatted": "Prefix-123-Suffix", "form_id": "cc141639-0ff1-4a92-b35d-6b0373db4521", "form_name": "Webhook Test", "referrer": null, "data": [ [ { "label": "Full name", "response": "John Doe", "uuid": "fb39181c-b13f-4e54-8283-0b0eed7f6cca", "custom_key": "full_name" }, { "label": "Email address", "response": "john@example.com", "uuid": "a95f6f9e-da14-4049-86b1-78eb9a558dbc", "custom_key": "email_address" }, { "label": "CV", "response": [ "https://userdata.deftform.com/full-path-to-file/filename-abc.pdf" ], "uuid": "f3c94dde-85e2-4a56-b814-266988de0000", "custom_key": null } ] ]}
Create PDF endpoint for API
We have added a new API GET
endpoint: /response/{UUID}/pdf
This endpoint allows you to generate a PDF of a submission on the fly. The API response looks like this:
{ "success": true, "data": { "pdf_url": "ABSOLUTE-URL-TO-PDF-FILE" }}
The UUID
can be obtained via the /responses/{formId}
endpoint. You can read more about our API here: https://help.deftform.com/api/endpoints