Forms

Create form submission

Changed on

Submits an answer set to a specific Form. Contact is upserted by email; lead-magnet purpose forms also trigger delivery.

post/forms/{form_id}/submissions

Request

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

Path parameters

form_id, string required

The form's ID.

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

object required
email, string required
name, string nullable
answers, object required

Map of form_field id → answer value. A consent field takes true when the person agreed.

ip_address, string nullable

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

Response

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