curl --request GET \
--url https://api.lemlist.com/api/campaigns/{campaignId}/sequences \
--header 'Authorization: Basic <encoded-value>'{
"seq_JiYPY37b43uJg2hfA": {
"_id": "seq_JiYPY37b43uJg2hfA",
"steps": [
{
"_id": "stp_twj5hF8qD2TP3xx7v",
"delay": 0,
"emailTemplateId": "etp_SbuYw3hvrPHaCzkny",
"type": "linkedinSend",
"index": 1,
"sequenceId": "seq_JiYPY37b43uJg2hfA",
"sequenceStep": 0,
"message": "Hey {{firstName}}, \n\nwe're launching an event, a place where people can regularly meet, network, and learn from each other. We would love it if you could join us for a drink & chat next week. What do you say? 😊"
},
{
"_id": "stp_L6fcwoMWJcRMzi7Rp",
"delay": 1,
"emailTemplateId": "etp_46ExBhhrk8SzrvpZv",
"index": 2,
"sequenceId": "seq_JiYPY37b43uJg2hfA",
"sequenceStep": 1,
"subject": "{{firstName}}, do we count on you for the event?",
"message": "<p style=\"margin: 0px; box-sizing: border-box;\">Hey {{firstName}},<br style=\"box-sizing: border-box;\"><br style=\"box-sizing: border-box;\"></p>\n<p style=\"margin: 0px; box-sizing: border-box;\">Do you have any plans for Thursday, 7pm?<br style=\"box-sizing: border-box;\"><br style=\"box-sizing: border-box;\"></p>\n<p style=\"margin: 0px; box-sizing: border-box;\">What about spending the evening with cool people by our office?<br style=\"box-sizing: border-box;\"><br style=\"box-sizing: border-box;\"></p>\n<p style=\"margin: 0px; box-sizing: border-box;\">We're launching an event, a place where people can regularly meet, network, and build connections that help them grow further 😊<br style=\"box-sizing: border-box;\"><br style=\"box-sizing: border-box;\"></p>\n<p style=\"margin: 0px; box-sizing: border-box;\">It would be really nice if we could count on you for the event- <a target=\"_blank\" style=\"color: rgb(0, 123, 255); text-decoration: none; background-color: transparent; user-select: auto; box-sizing: border-box;\" rel=\"noopener noreferrer\" href=\"{{event_link_to_send}}\">here's your invite</a> 🔥</p><p style=\"margin: 0px; box-sizing: border-box;\"><br style=\"box-sizing: border-box;\"></p>\n<p style=\"margin: 0px; box-sizing: border-box;\">Can you make it?<br style=\"box-sizing: border-box;\"><br style=\"box-sizing: border-box;\"></p>\n<p style=\"margin: 0px; box-sizing: border-box;\">Sarah,</p><p style=\"margin: 0px; box-sizing: border-box;\">Head of Marketing</p>",
"type": "email"
},
{
"_id": "stp_2JyMQiTSvPrahoncJ",
"delay": 1,
"emailTemplateId": "etp_NZNcbz74ymBvJDM95",
"index": 3,
"sequenceId": "seq_JiYPY37b43uJg2hfA",
"sequenceStep": 2,
"subject": "{{firstName}}, do we count on you for the event?",
"message": "<p style=\"margin: 0px; box-sizing: border-box;\">So, should I add you to the list of attendees?<br style=\"box-sizing: border-box;\"><br style=\"box-sizing: border-box;\"></p>\n<p style=\"margin: 0px; box-sizing: border-box;\">We'll meet around 7pm, have a drink and exchange with entrepreneurs, marketers, and salespeople.<br style=\"box-sizing: border-box;\"><br style=\"box-sizing: border-box;\"></p>\n<p style=\"margin: 0px; box-sizing: border-box;\"><a target=\"_blank\" style=\"color: rgb(0, 123, 255); text-decoration: none; background-color: transparent; user-select: auto; box-sizing: border-box;\" rel=\"noopener noreferrer\" href=\"{{event_link_to_send}}\">Here's the link</a> if you want to join!<br style=\"box-sizing: border-box;\"><br style=\"box-sizing: border-box;\"></p>\n<p style=\"margin: 0px; box-sizing: border-box;\">We would love to have you with us for this event!<br style=\"box-sizing: border-box;\"><br style=\"box-sizing: border-box;\">Sarah</p><p style=\"margin: 0px; box-sizing: border-box;\">Head of Marketing</p>",
"type": "email"
}
],
"level": 0
}
}Retrieves all sequences and their steps for a specific campaign.
curl --request GET \
--url https://api.lemlist.com/api/campaigns/{campaignId}/sequences \
--header 'Authorization: Basic <encoded-value>'{
"seq_JiYPY37b43uJg2hfA": {
"_id": "seq_JiYPY37b43uJg2hfA",
"steps": [
{
"_id": "stp_twj5hF8qD2TP3xx7v",
"delay": 0,
"emailTemplateId": "etp_SbuYw3hvrPHaCzkny",
"type": "linkedinSend",
"index": 1,
"sequenceId": "seq_JiYPY37b43uJg2hfA",
"sequenceStep": 0,
"message": "Hey {{firstName}}, \n\nwe're launching an event, a place where people can regularly meet, network, and learn from each other. We would love it if you could join us for a drink & chat next week. What do you say? 😊"
},
{
"_id": "stp_L6fcwoMWJcRMzi7Rp",
"delay": 1,
"emailTemplateId": "etp_46ExBhhrk8SzrvpZv",
"index": 2,
"sequenceId": "seq_JiYPY37b43uJg2hfA",
"sequenceStep": 1,
"subject": "{{firstName}}, do we count on you for the event?",
"message": "<p style=\"margin: 0px; box-sizing: border-box;\">Hey {{firstName}},<br style=\"box-sizing: border-box;\"><br style=\"box-sizing: border-box;\"></p>\n<p style=\"margin: 0px; box-sizing: border-box;\">Do you have any plans for Thursday, 7pm?<br style=\"box-sizing: border-box;\"><br style=\"box-sizing: border-box;\"></p>\n<p style=\"margin: 0px; box-sizing: border-box;\">What about spending the evening with cool people by our office?<br style=\"box-sizing: border-box;\"><br style=\"box-sizing: border-box;\"></p>\n<p style=\"margin: 0px; box-sizing: border-box;\">We're launching an event, a place where people can regularly meet, network, and build connections that help them grow further 😊<br style=\"box-sizing: border-box;\"><br style=\"box-sizing: border-box;\"></p>\n<p style=\"margin: 0px; box-sizing: border-box;\">It would be really nice if we could count on you for the event- <a target=\"_blank\" style=\"color: rgb(0, 123, 255); text-decoration: none; background-color: transparent; user-select: auto; box-sizing: border-box;\" rel=\"noopener noreferrer\" href=\"{{event_link_to_send}}\">here's your invite</a> 🔥</p><p style=\"margin: 0px; box-sizing: border-box;\"><br style=\"box-sizing: border-box;\"></p>\n<p style=\"margin: 0px; box-sizing: border-box;\">Can you make it?<br style=\"box-sizing: border-box;\"><br style=\"box-sizing: border-box;\"></p>\n<p style=\"margin: 0px; box-sizing: border-box;\">Sarah,</p><p style=\"margin: 0px; box-sizing: border-box;\">Head of Marketing</p>",
"type": "email"
},
{
"_id": "stp_2JyMQiTSvPrahoncJ",
"delay": 1,
"emailTemplateId": "etp_NZNcbz74ymBvJDM95",
"index": 3,
"sequenceId": "seq_JiYPY37b43uJg2hfA",
"sequenceStep": 2,
"subject": "{{firstName}}, do we count on you for the event?",
"message": "<p style=\"margin: 0px; box-sizing: border-box;\">So, should I add you to the list of attendees?<br style=\"box-sizing: border-box;\"><br style=\"box-sizing: border-box;\"></p>\n<p style=\"margin: 0px; box-sizing: border-box;\">We'll meet around 7pm, have a drink and exchange with entrepreneurs, marketers, and salespeople.<br style=\"box-sizing: border-box;\"><br style=\"box-sizing: border-box;\"></p>\n<p style=\"margin: 0px; box-sizing: border-box;\"><a target=\"_blank\" style=\"color: rgb(0, 123, 255); text-decoration: none; background-color: transparent; user-select: auto; box-sizing: border-box;\" rel=\"noopener noreferrer\" href=\"{{event_link_to_send}}\">Here's the link</a> if you want to join!<br style=\"box-sizing: border-box;\"><br style=\"box-sizing: border-box;\"></p>\n<p style=\"margin: 0px; box-sizing: border-box;\">We would love to have you with us for this event!<br style=\"box-sizing: border-box;\"><br style=\"box-sizing: border-box;\">Sarah</p><p style=\"margin: 0px; box-sizing: border-box;\">Head of Marketing</p>",
"type": "email"
}
],
"level": 0
}
}Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
The unique identifier of the campaign
Success
Object where each key is a sequence ID and each value is a sequence object
Show child attributes
Was this page helpful?