List form submissions
const url = 'https://api.quantcdn.io/v1/form-submissions?form_fields=*&page=1&page_size=10&sort_form_field=last_name&sort_direction=asc';const options = { method: 'GET', headers: { 'Quant-Customer': 'example', 'Quant-Project': 'example', 'Quant-Url': '/contact-us', 'Quant-Token': '<Quant-Token>' }};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.quantcdn.io/v1/form-submissions?form_fields=*&page=1&page_size=10&sort_form_field=last_name&sort_direction=asc' \ --header 'Quant-Customer: example' \ --header 'Quant-Project: example' \ --header 'Quant-Token: <Quant-Token>' \ --header 'Quant-Url: /contact-us'Returns the submissions captured for a form, newest last. The form is identified by the Quant-Url header — the path of the page it is attached to.
Pass form_fields=* to return every submitted field on every result, which is what you want when exporting. Without it the response contains only submission identifiers and dates.
Results are paginated. Read total_forms from the first response and request further pages until you have them all. There is no date filter — date_submitted is a Unix timestamp, so filter on it client-side.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”The customer account name
The project machine name
The path of the page the form is attached to
Example
/contact-usQuery Parameters
Section titled “Query Parameters”Which submitted fields to include in each result. Use * for every field, or a comma-separated list such as email,organisation. Omit this and each result contains only form_uuid, date_submitted and file_count — no submitted data.
Example
*Page of results to return. Defaults to 1.
Results per page. Defaults to 10, and values above 500 are clamped to 500.
Return one specific submission with its full data. Pagination fields are omitted from the response when this is set.
Used with form_uuid. Confirms the submission exists without returning its submitted data.
Return only submissions containing this text in any submitted field. The search is case-insensitive and unindexed, so it is slow over large forms.
Return only submissions that have (true) or do not have (false) file attachments.
Sort by a submitted field instead of the submission date.
Example
last_nameSort direction. Defaults to asc.
Responses
Section titled “Responses”Okay
object
The submissions on this page
object
Unique identifier for the submission
Submission time as a Unix timestamp (seconds, UTC)
Number of files attached to the submission
The submitted fields, keyed by field name. Only present when form_fields or form_uuid is supplied. Attachments appear here as a files array.
object
Submitting IP address and country code
Whether spam protection flagged the submission
Score assigned by spam protection
Total submissions for this form
Total pages at the requested page_size
The page returned
Results per page for this response
Example
{ "forms": [ { "date_submitted": 1742528890, "ip_location": "203.0.113.10 (AU)" } ]}The submission data could not be retrieved. Most often the Quant-Customer or Quant-Project value is wrong, or no form exists at the Quant-Url path.
The Quant-Token did not match the supplied customer/project
