FormSubmissions

Create form submission

Changed on

Submits a response to a lead magnet form; creates the contact if needed and triggers delivery.

post/form_submissions

Request

  • Base URL
    https://api.crevio.co/v1
  • Auth
    API key in header Authorization

Headers

Idempotency-Key, string

Makes this write safe to retry: a repeat with the same key replays the first response instead of creating a second resource. Scoped to the account, remembered for 24 hours; reusing a key with a different payload is an error.

Request body

FormSubmissionRequest required
form_id, string required

Form ID being submitted

email, string required

Respondent email address. Used to upsert a Contact and, as a convenience, auto-fills the form's email field if no answer is provided for it.

name, string nullable

Respondent name (defaults to email local-part if omitted). Auto-fills the form's first text field when present and not otherwise supplied via answers.

answers, object required

Map of form_field id → answer value. Optional for simple email-only forms — pass {} and rely on the email auto-fill. A consent field takes true when the person ticked it.

ip_address, string nullable

The submitter's IP address, kept with the submission as a record of the signup.

Response

Form submission created

FormSubmission required
id, string required
object, string required
answers, object[] required
respondent_type, string required
confirmation_requested_at, string date-time nullable required
confirmed_at, string date-time nullable required
delivered_at, string date-time nullable required
created_at, string date-time required
respondent_id, string required
form_id, string required

Changes

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    4 more changes in this revision