form_and_survey).
Identify forms by their key (for example contact or newsletter) — the same key shown in the dashboard.
getFormSchema(formKey) / getForm(formKey)
Load the form name, field schema, and settings.getFormSchema and getForm are aliases.
schema. Field id values are the keys you pass to submitForm.
submitForm(formKey, data)
Submit a response. Keys indata must match field ids from the schema.
maxSubmissions, fails validation, or
violates a unique-field constraint (HTTP 409).
getFormSubmissions(formKey, options?)
List submissions. Requires public submissions listing enabled on the form (settings.publicSubmissionsListing). Otherwise the API returns 403.
dataJson keys are field ids; values match the field types.
getFormSubmissionById(formKey, submissionId)
Fetch one submission. Also requires public submissions listing.Example — load and submit
Field types
Each form field inschema is { id, type, label, required?, validation? }. Values you pass to submitForm (and read from dataJson) match the field type:
validation may include minLength, maxLength, min, max, pattern, and options ({ value, label }[]) for select-style fields.

