Sequences

Remove a person from a sequence

Changed on

Cancels the person's enrollment (status canceled) so no further steps go out. The enrollment is kept as the record of what they received, and they cannot be enrolled in this sequence again.

delete/sequences/{sequence_id}/enrollments/{id}

Request

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

Path parameters

sequence_id, string required

The sequence's prefixed id (e.g. seq_abc123).

id, string required

The enrollment's prefixed id (e.g. seqen_abc123).

Response

The stopped enrollment

EmailSequenceEnrollment required
object, 'sequence_enrollment' required
id, string required
sequence, string required
contact, string required
email, string required
status, 'pending_confirmation' | 'active' | 'completed' | 'unsubscribed' | 'suppressed' | 'purchased' | 'excluded' | 'replied' | 'canceled' | 'contact_deleted' | 'sequence_deleted' | 'failed' required
source, string required

What enrolled them: api, or the event name (lead.created, contact.tag_added, contact.field_changed, order.paid, custom.<name>).

next_step, string nullable required
next_send_at, string date-time nullable required

When the next step goes out, after send days are applied. Null once the enrollment stops or while it waits for double opt-in.

started_at, string date-time nullable required
last_sent_at, string date-time nullable required
ended_at, string date-time nullable required
deliveries, EmailSequenceDelivery[] required

Steps sent to this person, oldest first.

created_at, string date-time required
updated_at, string date-time 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

    2 more changes in this revision