Create form
Changed onCreates a new Form, optionally with fields nested via form_fields_attributes. Set delivery_type (with delivery_file_id, delivery_url or experience_id) to email a file, link or experience to everyone who submits, and tag_ids to tag them. With confirmation_required (double opt-in), tags and delivery wait until the person confirms. Submissions come in through POST /forms/{form_id}/submissions.
Request
- Base URLhttps://api.crevio.co/v1
- AuthAPI key in header Authorization
Headers
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
Full https:// URL people land on after they click the confirmation link, with confirmation_required on.
What everyone who submits gets by email, on every submission. none turns delivery off; file needs delivery_file_id, link needs delivery_url, experience needs experience_id.
Full https:// URL to send: a page, video or download elsewhere.
Experience ID to grant access to; the email carries a sign-in link.
Subject of the delivery email. Defaults to "Your freebie from <business> is here!".
Plain-text body of the delivery email; the download button is added below it.
Tag IDs added to everyone who submits (never replacing their other tags). With confirmation_required, once they confirm.
Nested-attributes payload for creating, updating, or destroying fields in one round-trip. Pass id to update an existing field; pass _destroy: true to remove one.
Double opt-in: tags and the lead magnet wait until the person clicks the confirmation link.
File ID (file_..., from the Files API) to send as a download.
Response
Form created
Changes
- warning
added the new
idempotency_errorenum value to theerror/typeresponse property for the response status - warning
added the new
idempotency_errorenum value to theerror/typeresponse property for the response status - warning
added the new
idempotency_errorenum value to theerror/typeresponse property for the response status
3 more changes in this revision
- warning