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.
Field types
validation may include minLength, maxLength, min, max, pattern, and options ({ value, label }[]) for select-style fields.
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 above.

