Enroll a person
Changed onAdds one person to an active sequence by contact_id, or by email (an unknown address is added as a lead). Returns 201 with the new enrollment, or 200 with the existing one if they were ever enrolled: nobody enters a sequence twice. A contact waiting to confirm a double opt-in signup is held as pending_confirmation until they confirm. Suppressed addresses are rejected with recipient_suppressed, and a sequence that isn't active with 409 sequence_not_active.
Request
- Base URLhttps://api.crevio.co/v1
- AuthAPI key in header Authorization
Path parameters
The sequence's prefixed id (e.g. seq_abc123).
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
The contact (con_...) to enroll.
Or an email address; an unknown one is added as a lead.
Response
The person's existing enrollment
What enrolled them: api, or the event name (lead.created, contact.tag_added, contact.field_changed, order.paid, custom.<name>).
When the next step goes out, after send days are applied. Null once the enrollment stops or while it waits for double opt-in.
Steps sent to this person, oldest first.
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
5 more changes in this revision
- warning