Easymailing
Email sequences

Archive an email sequence

PUT /email_sequences/{uuid}/actions/archive

PUT/email_sequences/{uuid}/actions/archive

Archives a sequence: it stops taking new enrollments and disappears from the default list. The people already enrolled KEEP receiving their emails.

When to use: To retire a sequence you no longer want people to enter, without cutting the ones in progress.

When not to use: Archiving does NOT stop emails. To stop them use pause_email_sequence (all) or exclude_email_sequence_enrollment (one person). To remove the sequence for good use delete_email_sequence. To bring it back, restore_email_sequence.

Side effects: Entries close and the sequence leaves the default list (list_email_sequences shows it with status=archived). Live enrollments are not touched and go on sending. An archived entry is added to the activity.

Permissions: Requires the automations.manage and contacts.read capabilities. The account must also have the CRM Pro plan. The token must reach account administration (an API key, or OAuth with the account or admin scope).

Authorization

X-Auth-Token<token>

Value for the X-Auth-Token header parameter.

In: header

Path Parameters

uuid*string

UUID of the email sequence. Get it from list_email_sequences.

Formatuuid

Response Body

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X PUT "https://api.easymailing.com/email_sequences/b3f1c8a2-5d47-4e90-9a16-7c2e0d4f8b35/actions/archive" \  -H "X-Auth-Token: YOUR_API_KEY"
{  "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",  "title": "string",  "untitled": true,  "status": "draft",  "published_revision": 0,  "unpublished_changes": true,  "email_count": 0,  "wait_count": 0,  "active_enrollment_count": 0,  "total_days": 0,  "last_activity_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z",  "updated_by": "deea00dc-b6b6-4412-a483-26ac61e1f6fe",  "published_sender": {    "mailbox": "ba8efdb9-b4c4-43cf-965e-5da7040913a7",    "address": "string",    "signature": "88fef6f3-fdb6-486d-87e1-c7ae0750df94",    "signature_name": "string"  },  "can_enroll": true,  "draft_version": 1,  "threading": true,  "schedule": {    "time_zone": "string",    "weekdays": [      "string"    ],    "start": "string",    "end": "string"  },  "exit_on_meeting": true,  "exit_on_reply": true,  "meeting_exit_undetectable": true,  "sender": {    "mailbox": "ba8efdb9-b4c4-43cf-965e-5da7040913a7",    "address": "string",    "signature": "88fef6f3-fdb6-486d-87e1-c7ae0750df94",    "signature_name": "string"  },  "sender_problem": "missing",  "stats": {    "enrolled": 0,    "sent": 0,    "replied": 0,    "meetings": 0,    "bounced": 0,    "unsubscribed": 0,    "excluded": 0,    "completed": 0  },  "step_stats": [    {      "step_uuid": "36cbcda5-79a6-4bf3-8e09-f04e24f64b58",      "sent": 0    }  ],  "steps": [    {      "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",      "kind": "email",      "subject": "string",      "html": "string",      "unsubscribe": {        "language": "string",        "template_id": "irrelevant",        "prefix": "string",        "link_label": "string"      },      "variables": [        {          "tag": "string",          "fallback": "string",          "required": true        }      ],      "attachments": [        {          "asset_uuid": "76807d23-a41c-4ee1-a173-773f47fc22c8",          "filename": "string",          "size_bytes": 0,          "mime_type": "string"        }      ],      "days": 1    }  ],  "versions": [    {      "revision": 1,      "published_at": "2019-08-24T14:15:22Z",      "published_by": "9ac9eee7-2153-423d-b22d-04e12679154a",      "email_count": 0,      "wait_count": 0    }  ]}