{ "GET /team": { "summary": "Get Team", "tags": [ "Team" ], "responses": { "200": { "application/json": { "_id": "tea_b4rMsi2trBhahaha", "name": "lemlist", "userIds": [ "usr_4YGm9ez7gMdyhahaha", "usr_5GdFEgSLCN4hahaha", "usr_F7iPChEQ3phahaha" ], "createdBy": "usr_4YGm9ez7gMdyhahaha", "createdAt": "2018-02-22T08:52:30.926Z", "hooks": [ { "_id": "hoo_Ib5jfViX9hn3FzNqr", "targetUrl": "https://hooks.zapier.com/hooks/standard/946357/*some-id*/", "createdAt": "2018-06-05T09:07:07.761Z", "zapId": 123456789, "type": "emailsReplied", "campaignId": "cam_TgyErJghahaha", "isFirst": true }, { "_id": "hoo_SDRr2w4JigZDL7OB2", "targetUrl": "https://hooks.zapier.com/hooks/standard/5078320/*some-other-id*/", "createdAt": "2019-06-05T14:38:56.535Z", "zapId": 987654321, "type": "emailsReplied", "campaignId": "cam_J2M3P9Z8whahaha" }, { "_id": "hoo_IYAPP4HnSyU7UTH3E", "targetUrl": "https://hooks.zapier.com/hooks/standard/5078320/*some-id*/", "createdAt": "2019-06-05T15:49:36.624Z", "zapId": 59831776, "type": "emailsReplied", "campaignId": "cam_qBNYaIFXA77eXM1Ey", "isFirst": true }, { "_id": "hoo_UAtwcPAd0tK9U6hKG", "targetUrl": "https://subdomain.pipedream.net", "createdAt": "2022-02-10T16:45:28.216Z", "campaignId": "cam_7BE8IZRaqahU44Wp6" } ], "slackWebhook": { "url": "https://hooks.slack.com/services/REDACTED*some-id*", "failCounter": 1 }, "beta": [ "outreachQueue", "crmSyncApiSalesforce", "voipWhitelist", "lemrich_postLemrichKafka", "computedFieldActiveCampaigns" ], "pictureId": "fil_vRhMy09kT1Rv4Kq4O.png", "invitedUsers": [ { "email": "support@lemlist.com", "role": "member", "invitedBy": "usr_w7XoMXW37hahaha", "invitedAt": "2023-03-04T20:06:29.585Z" }, { "email": "taylor@example.com", "role": "admin", "invitedBy": "usr_Hq4uzGvFP5q6homd", "invitedAt": "2024-09-13T12:39:55.984Z" } ], "agency": "usr_4YGm9ez7gMd2123456", "customDomain": "custom.domain.com", "users": [ { "userId": "usr_4YGm9ez7gMdyhahaha", "name": "John Doe", "email": "john@lemlist.com", "role": "admin" }, { "userId": "usr_5GdFEgSLCN4hahaha", "name": "Jane Doe", "email": "jane@lemlist.com", "role": "member" } ] } }, "400": { "text/plain": "No API key provided" }, "401": { "text/plain": "The authentication you supplied is incorrect" }, "403": { "text/plain": "User linked to this API key is blocked" }, "404": { "text/plain": "No user found for this API key" } } }, "GET /team/senders": { "summary": "Get Team Senders", "tags": [ "Team" ], "responses": { "200": { "application/json": [ { "userId": "usr_QB6kKK1wv68DujOET", "campaigns": [ { "_id": "cam_tBpHORyt3WhTQoi5A", "name": "Onboarding", "status": "paused", "sendingChannels": [ "email", "manual", "linkedinVisit" ] }, { "_id": "cam_O3BQOaXuyUuyqEHug", "name": "Community Launch", "status": "running", "sendingChannels": [ "email", "manual", "linkedinVisit" ] }, { "_id": "cam_NTJ1rituEQ61jVl6p", "name": "Email Warmup Test", "status": "ended", "sendingChannels": [ "email", "manual", "linkedinVisit" ] }, { "_id": "cam_1kESsVXFMzfrJImNc", "name": "Product Launch Campaign", "status": "draft", "sendingChannels": [ "email", "manual", "linkedinVisit" ] } ] }, { "userId": "usr_v5xz8De4nsLeNWAfv", "campaigns": [ { "_id": "cam_fDwCRnYtL1cfwcA7k", "name": "WhatsApp Outreach", "status": "draft", "sendingChannels": [ "email", "whatsappMessage" ] }, { "_id": "cam_WBCWNrsoMKkCWWLqw", "name": "WhatsApp Test Campaign", "status": "ended", "sendingChannels": [ "email", "whatsappMessage" ] } ] }, { "userId": "usr_rhhX1KT0qgOGCOrgE", "campaigns": [ { "_id": "cam_pCi08vhGoho2oK3YR", "name": "Networking", "status": "running", "sendingChannels": [ "email", "linkedinSend", "linkedinVisit", "linkedinInvite" ] }, { "_id": "cam_zhcBovstiHVaV1abf", "name": "Product Tools Campaign", "status": "paused", "sendingChannels": [ "email", "linkedinSend", "linkedinVisit", "linkedinInvite" ] } ] } ] }, "400": { "text/plain": "Bad params (invalid state parameter)" }, "401": { "text/plain": "The authentication you supplied is incorrect" } } }, "GET /team/credits": { "summary": "Get Team Credits", "tags": [ "Team" ], "responses": { "200": { "application/json": { "credits": 100, "details": { "remaining": { "total": 100, "freemium": 0, "subscription": 80, "gifted": 10, "paid": 10 } } } }, "400": { "text/plain": "No API key provided" }, "401": { "text/plain": "The authentication you supplied is incorrect" }, "403": { "text/plain": "User linked to this API key is blocked" }, "404": { "text/plain": "No user found for this API key" } } }, "GET /team/crmUsers": { "summary": "Get Team CRM Users", "tags": [ "Team" ], "responses": { "200": { "application/json": [ { "userId": "usr_FU6yAd3UdBFel0UDy", "crm": "salesforce" }, { "userId": "usr_FU6yAd3UdBFel0UDy", "crm": "hubspot" }, { "userId": "usr_FU6yAd3UdBFel0UDy", "crm": "pipedrive" } ] }, "400": { "text/plain": "Bad team" }, "401": { "text/plain": "The authentication you supplied is incorrect" } } }, "GET /users/{userId}": { "summary": "Get User", "tags": [ "Users" ], "responses": { "200": { "application/json": { "_id": "usr_eSrHPSoL9QVPUOsho", "email": "example@lemlist.co", "role": "admin", "linkedIn": { "linkedinUrl": "https://www.linkedin.com/in/john-doe", "status": true, "inviteLimit": 25, "sendLimit": 33, "visitLimit": 36 }, "mailboxes": [ { "_id": "usm_2mkqJNUjnJQiyVBht", "email": "example@gmail.com", "provider": "google", "status": "ERROR", "lemlist": { "emailLimit": 50 }, "lemwarm": { "active": false } }, { "_id": "usm_gqlN3jKWoGo1Je8El", "email": "example@outlook.com", "status": "ERROR", "lemlist": { "emailLimit": 50 }, "lemwarm": { "active": false } } ] } }, "400": { "text/plain": "Bad team" }, "401": { "text/plain": "The authentication you supplied is incorrect" } } }, "GET /campaigns": { "summary": "Get Many Campaigns", "tags": [ "Campaigns" ], "responses": { "200": { "application/json": [ { "_id": "cam_4HrZbi8xsez4QlrnL", "name": "Product Launch Campaign", "emoji": "🚀", "timezone": "Europe/Paris", "labels": [], "createdAt": "2025-02-20T14:45:54.230Z", "createdBy": "usr_zdTCrNFyXblc4mrYK", "status": "running", "hasError": true, "errors": [ "Your campaign does not have sender." ] }, { "_id": "cam_k3gu2sa4KIfhRK34M", "name": "Sales Outreach 2025", "labels": [], "createdAt": "2025-02-05T09:00:07.541Z", "createdBy": "usr_UEvrOEP0CTAYEoFR4", "status": "running", "hasError": true, "errors": [ "One of your sender has no email provider.", "Your campaign have an invalid sender mailbox" ] }, { "_id": "cam_HcFmYEhnCI39Pscan", "name": "CRM Integration Test", "labels": [ "CRM" ], "createdAt": "2023-01-27T14:58:52.482Z", "createdBy": "usr_i52PiQtbq8SucjVTM", "status": "running", "hasError": true, "errors": [ "One of your sender has no email provider.", "Your campaign have an invalid sender mailbox" ] }, { "_id": "cam_yZXeC6q3SXs3ha1FI", "name": "Customer Onboarding", "labels": [], "createdAt": "2022-06-14T13:32:57.880Z", "createdBy": "usr_i52PiQtbq8SucjVTM", "status": "running" } ] }, "400": { "text/plain": "No API key provided" }, "401": { "text/plain": "The authentication you supplied is incorrect" }, "403": { "text/plain": "User linked to this API key is blocked" }, "404": { "text/plain": "No user found for this API key" } } }, "POST /campaigns": { "summary": "Create Campaign", "tags": [ "Campaigns" ], "request": { "application/json": { "name": "My new campaign", "timezone": "America/New_York", "autoReview": true, "autoReviewConditions": [ "deliverable", "risky" ] } }, "responses": { "200": { "application/json": { "_id": "cam_kok3I33Sba7mcNIO7", "sequenceId": "seq_ScVmFnlKdP6aVmyZN", "scheduleIds": [ "skd_IrCdCoQ0ZUAEeUDwR" ], "teamId": "tea_edrkv2LgUK4Wf4ZzO", "createdBy": "usr_Sy3xIhbEi7auHFv5A", "createdAt": "2025-01-16T13:53:22.726Z", "state": "running", "scannedCount": 0, "reviewedCount": 0, "inSequenceLeadCount": 0, "variableKeys": [], "senders": [], "sendUsers": [], "displayedVariableKeys": [ "companyName" ], "emoji": "🚀", "stopOnEmailReplied": true, "crmOpportunitiesOnTask": true, "unsubscribe": "campaign", "name": "My new campaign", "crm": "hubspot", "crmUserId": "usr_0p9Q8ZyXSTNGpsHOe" } }, "400": { "text/plain": "No API key provided" }, "401": { "text/plain": "The authentication you supplied is incorrect" }, "403": { "text/plain": "User linked to this API key is blocked" }, "404": { "text/plain": "No user found for this API key" } } }, "GET /campaigns/{campaignId}": { "summary": "Get Campaign", "tags": [ "Campaigns" ], "responses": { "200": { "application/json": { "_id": "cam_bSn8EORHQxbWPjHvu", "name": "Product Launch Campaign", "createdAt": "2025-10-27T07:01:04.058Z", "status": "draft", "creator": { "userId": "usr_ahfFktBBHUIxbVG5P", "userEmail": "support@lemlist.com" }, "senders": [ { "id": "usr_rhhX1KT0qgOGCOrgE", "email": "support@lemlist.com", "sendUserMailboxId": "usm_J7BzS86A1vRMc2AuB" } ] } }, "400": { "text/plain": "Bad team" }, "404": { "text/plain": "Campaign not found" } } }, "PATCH /campaigns/{campaignId}": { "summary": "Update Campaign", "tags": [ "Campaigns" ], "request": { "application/json": { "name": "New campaign name", "stopOnEmailReplied": true, "stopOnMeetingBooked": true, "stopOnLinkClicked": false, "leadsPausedByInterest": false, "opportunityReplied": true, "opportunityClicked": false, "autoLeadInterest": true, "disableTrackOpen": false, "disableTrackClick": false, "disableTrackReply": false, "disableOutOfOffice": false, "sequenceSharing": false, "sendUserIds": [ "usr_2aBCdEfGHiJkLmNOp", "usr_7xYzAbCdEfGhIjKlM" ], "autoReview": true, "autoReviewConditions": [ "deliverable", "risky" ] } }, "responses": { "200": { "application/json": { "name": "New campaign name", "stopOnEmailReplied": true, "stopOnMeetingBooked": true, "stopOnLinkClicked": false, "leadsPausedByInterest": false, "opportunityReplied": true, "opportunityClicked": false, "autoLeadInterest": true, "disableTrackOpen": false, "disableTrackClick": false, "disableTrackReply": false, "disableOutOfOffice": false, "sequenceSharing": false, "sendUsers": [ { "id": "usr_2aBCdEfGHiJkLmNOp", "mailboxes": [ { "sendUserMailboxId": "smb_1aBcDeFgHiJkLmNoP", "email": "john@acme.com" } ], "phoneNumbers": [ "+15551234567" ], "whatsappAccountIds": [ "wha_3xYzAbCdEfGhIjKlM" ] }, { "id": "usr_7xYzAbCdEfGhIjKlM", "mailboxes": [ { "sendUserMailboxId": "smb_9zYxWvUtSrQpOnMlK", "email": "jane@acme.com" } ], "phoneNumbers": [], "whatsappAccountIds": [] } ] } }, "400": { "text/plain": { "badTeam": { "summary": "Bad team", "value": "Bad team" }, "dynamicStrategy": { "summary": "Cannot update senders for dynamic strategy campaigns", "value": "Cannot update senders on campaigns with a dynamic sender strategy (contactOwner, leadImporter, customField)" }, "noValidSenders": { "summary": "No valid sender IDs", "value": "None of the provided sender IDs are members of this team" }, "noCapableSenders": { "summary": "No senders with required capabilities", "value": "None of the provided senders have the required capabilities for this campaign" }, "missingChannels": { "summary": "Campaign channels not covered", "value": "The provided senders do not cover the following campaign channels: linkedin, sms" } } }, "404": { "text/plain": "Campaign not found" } } }, "POST /campaigns/{campaignId}/pause": { "summary": "Pause Campaign", "tags": [ "Campaigns" ], "responses": { "200": { "application/json": { "_id": "cam_A1B2C3D4E5F6G7H8I9", "state": "paused" } }, "400": { "text/plain": "Bad team" }, "404": { "text/plain": "Campaign not found" } } }, "POST /campaigns/{campaignId}/start": { "summary": "Start Campaign", "tags": [ "Campaigns" ], "responses": { "200": { "application/json": { "_id": "cam_A1B2C3D4E5F6G7H8I9", "state": "running" } }, "400": { "text/plain": "Bad team" }, "404": { "text/plain": "Campaign not found" } } }, "GET /campaigns/{campaignId}/export/start": { "summary": "Start Campaign Stats Export", "tags": [ "Campaigns" ], "responses": { "200": { "application/json": { "_id": "axp_Vv6lJOc8NlVVmDud5", "id": "axp_Vv6lJOc8NlVVmDud5", "teamId": "tea_c123fg5h8ijKL9noP", "campaignId": "cam_A1B2C3D4E5F6G7H8I9", "campaignName": "Insights Outreach 2024", "status": "pending", "startedAt": "2024-07-09T13:43:52.124Z", "progressIndex": 0, "progressTime": 1720532632124, "progressLastStepDuration": 0, "progressType": "starting", "progress": 0, "total": 0 } }, "400": { "text/plain": "Bad team" }, "404": { "text/plain": "Campaign not found" } } }, "GET /campaigns/{campaignId}/export/{exportId}/status": { "summary": "Get Campaign Export Status", "tags": [ "Campaigns" ], "responses": { "200": { "application/json": { "done": { "summary": "Export completed", "value": { "ok": true, "status": { "_id": "axp_eVuZ9rVr4yYWrnPWA", "id": "axp_eVuZ9rVr4yYWrnPWA", "teamId": "tea_8QvkOiBfPdb2ZRhHi", "campaignId": "cam_lBCWmqEWI399hJZOd", "campaignName": "lemstage", "status": "done", "startedAt": "2025-10-27T07:53:16.267Z", "progressIndex": 6, "progressTime": 1761551597286, "progressLastStepDuration": 0, "progressType": "done", "progress": 0, "total": 0, "fileSize": 23654, "endedAt": "2025-10-27T07:53:17.286Z", "url": "https://api.lemlist.com/api/files/exports/fil_axp_7guBefhehehe.csv" } } }, "pending": { "summary": "Export in progress", "value": { "ok": true, "status": { "id": "axp_Vv6lJOc8NlVVmDud5", "teamId": "tea_c123fg5h8ijKL9noP", "campaignId": "cam_A1B2C3D4E5F6G7H8I9", "campaignName": "Insights Outreach 2024", "status": "pending", "startedAt": "2020-01-01T00:00:00.000Z", "progressIndex": 3, "progressTime": 1639138959979, "progressLastStepDuration": 200, "progressType": "processing", "progress": 50, "total": 100 } } } } }, "400": { "text/plain": "Bad team" }, "404": { "application/json": { "exportNotFound": { "summary": "Export not found", "value": { "ok": false, "message": "Export with id axp_DIoSPp9YM5EwWdyP0 not found" } }, "campaignNotFound": { "summary": "Campaign not found", "value": "Campaign not found" } } } } }, "PUT /campaigns/{campaignId}/export/{exportId}/email/{email}": { "summary": "Set Email for Campaign Export Notification", "tags": [ "Campaigns" ], "responses": { "200": { "application/json": { "ok": true, "status": { "_id": "axp_Vv6lJOc8NlVVmDud5", "id": "axp_Vv6lJOc8NlVVmDud5", "teamId": "tea_c123fg5h8ijKL9noP", "campaignId": "cam_A1B2C3D4E5F6G7H8I9", "campaignName": "Insights Outreach 2024", "status": "done", "startedAt": "2024-07-11T09:49:15.278Z", "progressIndex": 6, "progressTime": 1720691355497, "progressLastStepDuration": 0, "progressType": "done", "progress": 0, "total": 0, "fileSize": 654, "endedAt": "2024-07-11T09:49:15.497Z", "url": "https://api.lemlist.com/api/files/exports/fil_axp_Vv6lJOc8NlVVmDud5_insights_outreach_2024.csv", "email": "emily.johnson@example.com" } } }, "400": { "text/plain": "Bad team" }, "404": { "text/plain": { "campaignNotFound": { "summary": "Campaign not found", "value": "Campaign not found" }, "exportNotFound": { "summary": "Export not found", "value": "Export not found" } } } } }, "GET /campaigns/{campaignId}/export/leads": { "summary": "Export Campaign Leads", "tags": [ "Campaigns" ], "responses": { "200": { "text/csv": "emailStatus,email,firstName,lastName,picture,phone,linkedinUrl,timezone,companyName,companyDomain,icebreaker,Original event page,url extension,event_link_to_send,testFieldToDelete,naissance,lastState,status,_id\n,jeremy@example.com,Jeremy,Smith,,,https://www.linkedin.com/in/jeremysmith,,example.com,,,https://www.example.com/event-registration,?name=Jeremy&email=jeremy@example.com,https://www.example.com/event-registration?name=Jeremy&email=jeremy@example.com,,,linkedinReplied,done,lea_s2cXajAHahdDKmDw8\n,frankie@example.org,Frankie,Johnson,,,https://www.linkedin.com/in/frankiejohnson,,example.org,,,https://www.example.com/event-registration,?name=Frankie&email=frankie@example.org,https://www.example.com/event-registration?name=Frankie&email=frankie@example.org,,,linkedinReplied,done,lea_E8hdds5NryDRXpGJa\n,louiza@example.io,Louiza,Brown,,,https://www.linkedin.com/in/louizabrown,,example.io,,,https://www.example.com/event-registration,?name=Louiza&email=louiza@example.io,https://www.example.com/event-registration?name=Louiza&email=louiza@example.io,,,emailsInterested,interested,lea_tLAI7Fr2gR5hVxAIc\n,benjamin@example.co,Benjamin,Williams,,,https://www.linkedin.com/in/benjaminwilliams,,example.co,,,https://www.example.com/event-registration,?name=Benjamin&email=benjamin@example.co,https://www.example.com/event-registration?name=Benjamin&email=benjamin@example.co,,,emailsUnsubscribed,unsubscribed,lea_oznzWQKKZGXrBdqXb\n,roxanne@example.net,Roxanne,Davis,,,https://www.linkedin.com/in/roxannedavis,,example.net,,,https://www.example.com/event-registration,?name=Roxanne&email=roxanne@example.net,https://www.example.com/event-registration?name=Roxanne&email=roxanne@example.net,,,emailsClicked,done,lea_M22nl3gUwvAiNl6Ks\n,thomas@example.fr,Thomas,Miller,,,https://www.linkedin.com/in/thomasmiller,,example.fr,,,https://www.example.com/event-registration,?name=Thomas&email=thomas@example.fr,https://www.example.com/event-registration?name=Thomas&email=thomas@example.fr,,,emailsSent,done,lea_z3DydraGgNBnLdV7o" }, "400": { "text/plain": "Bad team" }, "404": { "text/plain": "Campaign not found" } } }, "GET /campaigns/reports": { "summary": "Get Campaign Reports", "tags": [ "Campaigns" ], "responses": { "200": { "application/json": [ { "_id": "cam_bSn8EORHQxbWPjHvu", "name": "Product Launch Campaign", "creator": "usr_ahfFktBBHUIxbVG5P|user@example.com", "createdAt": "2025-10-27T07:01:04.058Z", "createdBy": "John Smith", "labels": "", "totalCount": 0, "reviewedCount": 0, "inSequenceLeadCount": 0, "state": "running", "status": "draft", "senderNames": "sender@example.com", "sendersUsers": "Jane Doe:sender@example.com", "reviewed": 0, "emailsSent": 0, "emailsOpened": 0, "emailsClicked": 0, "emailsReplied": 0, "emailsInterested": 0, "linkedinSent": 0, "linkedinReplied": 0, "interested": 0, "notInterested": 0 }, { "_id": "cam_lBCWmqEWI399hJZOd", "name": "Event Outreach Campaign", "creator": "usr_QHeXD2DttUIlvWT9V|admin@example.co", "createdAt": "2022-11-09T16:41:03.538Z", "createdBy": "Sarah Johnson", "labels": "", "totalCount": 0, "reviewedCount": 32, "inSequenceLeadCount": 32, "state": "paused", "status": "ended", "senderNames": "", "sendersUsers": "", "reviewed": 0, "emailsSent": 20, "emailsOpened": 18, "emailsClicked": 4, "emailsReplied": 1, "emailsUnsubscribed": 1, "emailsInterested": 1, "linkedinSent": 32, "linkedinOpened": 15, "linkedinReplied": 15, "interested": 0, "notInterested": 0 } ] }, "400": { "text/plain": "Bad team" } } }, "GET /campaigns/{campaignId}/sequences": { "summary": "Get Campaign Sequences", "tags": [ "Sequences" ], "responses": { "200": { "application/json": { "seq_rH5RD3fMkkt2gM3YC": { "_id": "seq_rH5RD3fMkkt2gM3YC", "steps": [ { "_id": "stp_sFUj6keaSz9wr049M", "delay": 0, "emailTemplateId": "etp_ahlbc2yafFyu728H8", "type": "linkedinSend", "index": 1, "sequenceId": "seq_rH5RD3fMkkt2gM3YC", "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_qsTl0LO6zkQQJQqsP", "delay": 1, "emailTemplateId": "etp_HFjUGtyDxIOxgZYcG", "index": 2, "sequenceId": "seq_rH5RD3fMkkt2gM3YC", "sequenceStep": 1, "subject": "{{firstName}}, do we count on you for the event?", "message": "
Hey {{firstName}},
Do you have any plans for Thursday, 7pm?
What about spending the evening with cool people by our office?
We're launching an event, a place where people can regularly meet, network, and build connections that help them grow further 😊
It would be really nice if we could count on you for the event- here's your invite 🔥
Can you make it?
Sarah,
Head of Marketing
", "type": "email" }, { "_id": "stp_pRcXzJDmOrBkFtNc3", "delay": 1, "emailTemplateId": "etp_3tjFTgdOMS6JL8U1g", "index": 3, "sequenceId": "seq_rH5RD3fMkkt2gM3YC", "sequenceStep": 2, "subject": "{{firstName}}, do we count on you for the event?", "message": "So, should I add you to the list of attendees?
We'll meet around 7pm, have a drink and exchange with entrepreneurs, marketers, and salespeople.
Here's the link if you want to join!
We would love to have you with us for this event!
Sarah
Head of Marketing
", "type": "email" } ], "level": 0 } } }, "400": { "text/plain": "Bad team" }, "401": { "text/plain": "The authentication you supplied is incorrect" }, "404": { "text/plain": "Campaign not found" } } }, "POST /sequences/{sequenceId}/steps": { "summary": "Add Step to Sequence", "tags": [ "Sequences" ], "request": { "application/json": { "Email Step": { "value": { "type": "email", "subject": "{{firstName}}, quick question about {{companyName}}", "message": "Hi {{firstName}},
I noticed {{companyName}} is working on improving customer engagement. Would you be interested in discussing how we can help?
Best regards,
{{senderName}}
Hi {{firstName}},
Just wanted to circle back on our previous email. Have you had a chance to review it?
Best,
{{senderName}}
\n\n\n\nHey Alex ,
I hope this email finds you well!
Have you ever heard about Jordan Doe?
🇫🇷 He was a member of the French Parliament during the French Revolution,
🏘️ He has a street named after him
📙 He authored the famous "Beurre frais épuré, et conservant longtemps ses bonnes qualités, sans devenir rance".
Unfortunately, this brilliant man died ages ago...
But wait, there's another Jordan Doe you might be interested in meeting—one who is very much alive and well! Yes, that's me. I've just joined Lemlist, and I'm looking forward to meeting everyone for a quick chat.
☑️ Book an appointment on 📅 my lemcal !
Feel free to reach out and get to know me better. I'm excited to be part of the team and eager to contribute to our collective success.
Looking forward to seeing you all soon!
Best regards, as your contemporary, Jordan Doe\n\n\n \n\n
Hey Alex ,
I hope this email finds you well!
Have you ever heard about Jordan Doe?
🇫🇷 He was a member of the French Parliament during the French Revolution,
🏘️ He has a street named after him
📙 He authored the famous \"Beurre frais épuré, et conservant longtemps ses bonnes qualités, sans devenir rance\".
Unfortunately, this brilliant man died ages ago...
But wait, there's another Jordan Doe you might be interested in meeting—one who is very much alive and well! Yes, that's me. I've just joined Lemlist, and I'm looking forward to meeting everyone for a quick chat.
☑️ Book an appointment on 📅 my lemcal !
Feel free to reach out and get to know me better. I'm excited to be part of the team and eager to contribute to our collective success.
Looking forward to seeing you all soon!
Best regards, as your contemporary, Jordan Doe
Hello,
Following up on our conversation...
", "cc": [], "replyToActivityId": "latest" } }, "responses": { "200": { "application/json": { "ok": true, "contactId": "ctc_JgrwGbHKgFoEnunBA" } }, "400": { "text/plain": "Bad team" }, "401": { "text/plain": "The authentication you supplied is incorrect" } } }, "POST /inbox/linkedin": { "summary": "Send LinkedIn Message", "tags": [ "Inbox" ], "request": { "application/json": { "sendUserId": "usr_FU6yAd3UdBFel0UDy", "leadId": "lea_wadZOcDDSFWSbFaCf", "contactId": "ctc_ei6zVayP9B2ugwUPN", "message": "Hi, I wanted to follow up..." } }, "responses": { "200": { "application/json": { "ok": true } }, "400": { "text/plain": "Bad team" }, "401": { "text/plain": "The authentication you supplied is incorrect" } } }, "POST /inbox/whatsapp": { "summary": "Send WhatsApp Message", "tags": [ "Inbox" ], "request": { "application/json": { "sendUserId": "usr_FU6yAd3UdBFel0UDy", "sendUserWhatsappAccountId": "wha_ABC123", "contactId": "ctc_ei6zVayP9B2ugwUPN", "leadId": "lea_wadZOcDDSFWSbFaCf", "message": "Hi, following up on our conversation" } }, "responses": { "400": { "text/plain": "Bad team" }, "401": { "text/plain": "The authentication you supplied is incorrect" } } }, "GET /inbox/labels": { "summary": "Get Many Labels", "tags": [ "Inbox" ], "responses": { "200": { "application/json": [ { "_id": "lbl_uPAAgsi4oi9juBHfW", "name": "Interested", "color": "#F9A2A2", "createdAt": "2025-11-26T15:49:23.470Z", "createdBy": "john.doe@example.com" } ] }, "400": { "text/plain": "Bad team" }, "401": { "text/plain": "The authentication you supplied is incorrect" } } }, "POST /inbox/labels": { "summary": "Create Label", "tags": [ "Inbox" ], "request": { "application/json": { "labelName": "Interested" } }, "responses": { "200": { "application/json": { "_id": "lbl_uPAAgsi4oi9juBHfW", "name": "Interested", "color": "#F9A2A2", "createdAt": "2025-11-26T15:49:23.470Z" } }, "400": { "text/plain": "labelName is required" }, "401": { "text/plain": "The authentication you supplied is incorrect" }, "409": { "text/plain": "Label with this name already exists" } } }, "GET /inbox/labels/{labelId}": { "summary": "Get Label", "tags": [ "Inbox" ], "responses": { "200": { "application/json": { "_id": "lbl_uPAAgsi4oi9juBHfW", "name": "Interested", "color": "#F9A2A2", "createdAt": "2025-11-26T15:49:23.470Z", "createdBy": "john.doe@example.com" } }, "400": { "text/plain": "Bad team" }, "401": { "text/plain": "The authentication you supplied is incorrect" }, "404": { "text/plain": "Label not found" } } }, "POST /inbox/conversations/labels/{contactId}": { "summary": "Attach Labels to Conversations", "tags": [ "Inbox" ], "request": { "application/json": { "labelIds": [ "lbl_uPAAgsi4oi9juBHfW", "lbl_oZCShmPCP2L43b8qf" ], "appendLabels": true } }, "responses": { "200": { "application/json": { "ok": true } }, "400": { "text/plain": "Invalid request body: labelIds must be an array and appendLabels must be a boolean" }, "401": { "text/plain": "The authentication you supplied is incorrect" }, "404": { "text/plain": "Label not found" } } }, "DELETE /inbox/conversations/labels/{contactId}": { "summary": "Remove Labels from Conversation", "tags": [ "Inbox" ], "request": { "application/json": { "labelIds": [ "lbl_uPAAgsi4oi9juBHfW" ] } }, "responses": { "200": { "application/json": { "ok": true } }, "400": { "text/plain": "Invalid request body: labelIds must be an array" }, "401": { "text/plain": "The authentication you supplied is incorrect" }, "404": { "text/plain": "Label not found" } } }, "GET /inbox/{contactId}/drafts": { "summary": "List Drafts", "tags": [ "Inbox" ], "responses": { "200": { "application/json": { "drafts": [ { "_id": "drf_abc123def456789", "channel": "email", "subject": "Follow up on our meeting", "contentPreview": "Hi John, I wanted to follow up on our conversation from last week...", "source": "api", "createdAt": "2025-01-15T10:30:00.000Z", "updatedAt": "2025-01-15T10:30:00.000Z" } ] } }, "400": { "text/plain": "User not found: neither a valid email nor a valid user id for this team" }, "401": { "text/plain": "The authentication you supplied is incorrect" } } }, "POST /inbox/{contactId}/drafts": { "summary": "Create Draft", "tags": [ "Inbox" ], "request": { "application/json": { "channel": "email", "content": "Hello John, I wanted to follow up on our conversation.
", "subject": "Follow up on our meeting", "cc": [], "attachments": [] } }, "responses": { "201": { "application/json": { "draftId": "drf_abc123def456789" } }, "400": { "text/plain": "Content must not be empty" }, "401": { "text/plain": "The authentication you supplied is incorrect" } } }, "GET /inbox/{contactId}/drafts/{draftId}": { "summary": "Get Draft", "tags": [ "Inbox" ], "responses": { "200": { "application/json": { "draft": { "_id": "drf_abc123def456789", "channel": "email", "subject": "Follow up on our meeting", "cc": [], "content": "Hello John, I wanted to follow up on our conversation.
", "attachments": [], "source": "api", "createdAt": "2025-01-15T10:30:00.000Z", "updatedAt": "2025-01-15T10:30:00.000Z" } } }, "400": { "text/plain": "User not found: neither a valid email nor a valid user id for this team" }, "401": { "text/plain": "The authentication you supplied is incorrect" }, "404": { "text/plain": "Draft not found" } } }, "PATCH /inbox/{contactId}/drafts/{draftId}": { "summary": "Update Draft", "tags": [ "Inbox" ], "request": { "application/json": { "subject": "Updated subject", "content": "Updated content for the draft.
" } }, "responses": { "200": { "application/json": { "draft": { "_id": "drf_abc123def456789", "channel": "email", "subject": "Updated subject", "cc": [], "content": "Updated content for the draft.
", "attachments": [], "source": "api", "createdAt": "2025-01-15T10:30:00.000Z", "updatedAt": "2025-01-15T11:00:00.000Z" } } }, "400": { "text/plain": "Content must not be empty" }, "401": { "text/plain": "The authentication you supplied is incorrect" }, "404": { "text/plain": "Draft not found" } } }, "DELETE /inbox/{contactId}/drafts/{draftId}": { "summary": "Delete Draft", "tags": [ "Inbox" ], "responses": { "200": { "application/json": { "success": true } }, "400": { "text/plain": "User not found: neither a valid email nor a valid user id for this team" }, "401": { "text/plain": "The authentication you supplied is incorrect" }, "404": { "text/plain": "Draft not found" } } }, "GET /contacts": { "summary": "Get Many Contacts", "tags": [ "Contacts" ], "responses": { "200": { "application/json": [ { "_id": "ctc_xW8Ou6C03Csv8vatp", "teamId": "tea_8QvkOiBfPdb2ZRhHi", "fullName": "John Doe", "email": "support@lemlist.com", "fields": { "firstName": "John", "jobTitle": "Growth Engineer", "lastName": "Doe", "industry": "Technology", "isActiveInCampaigns": false, "lastCampaign": "NEW TO DELETE", "lastLeadMarkedAsInterestedDate": "2025-10-28T02:12:31.971Z", "leadStatus": "Marked as not Interested by api" }, "campaigns": [ { "campaignId": "cam_bSn8EORHQxbWPjHvu", "campaignState": "running", "leadState": "review", "leadId": "lea_fiDpiGV585wy3Oii2" } ], "ownerId": "usr_ahfFktBBHUIxbVG5P", "createdAt": "2025-10-28T00:40:37.917Z", "createdBy": "usr_ahfFktBBHUIxbVG5P", "unsubscribed": false }, { "_id": "ctc_a9RxJNa7pmMd85H9b", "teamId": "tea_8QvkOiBfPdb2ZRhHi", "fullName": "Casey", "email": "riley@example.com", "fields": { "firstName": "Casey", "isActiveInCampaigns": false }, "campaigns": [ { "campaignId": "cam_jwm7THjgGFE3ylR85", "campaignState": "running", "leadState": "done", "leadId": "lea_XKjAytuJhBKZhxhWh" }, { "campaignId": "cam_eF4DlNERV0CW1TwRd", "campaignState": "running", "leadState": "done", "leadId": "lea_fJcS9D3UtEqZcDcAG" }, { "campaignId": "cam_UBbMt30jHq0vNJKJr", "campaignState": "running", "leadState": "done", "leadId": "lea_GlaMfjxlUYuwEDL0w" }, { "campaignId": "cam_pijDVnytN5S7frriD", "campaignState": "running", "leadState": "review", "leadId": "lea_Bs9aMGCcjdzTDvixY" } ], "ownerId": "usr_Emu1g29BMtBixhMSP", "createdAt": "2024-10-01T09:00:13.831Z", "createdBy": "usr_Emu1g29BMtBixhMSP", "unsubscribed": true } ] }, "400": { "text/plain": "Search query must be at least 2 characters" }, "401": { "text/plain": "The authentication you supplied is incorrect" } } }, "POST /contacts": { "summary": "Add and update contact", "tags": [ "Contacts" ], "request": { "application/json": { "email": "jane.smith@example.com", "firstName": "Jane", "lastName": "Smith", "linkedinUrl": "https://linkedin.com/in/janesmith", "jobTitle": "Product Manager", "companyDomain": "acme.com" } }, "responses": { "201": { "application/json": { "success": true, "data": { "_id": "ctc_xW8Ou6C03Csv8vatp", "teamId": "tea_8QvkOiBfPdb2ZRhHi", "emails": [ { "value": "jane.smith@example.com" } ], "linkedinUrl": "https://www.linkedin.com/in/janesmith", "fields": { "firstName": "Jane", "lastName": "Smith", "jobTitle": "Product Manager" }, "ownerId": "usr_ahfFktBBHUIxbVG5P", "source": "api", "createdAt": "2025-10-28T00:40:37.917Z", "createdBy": "usr_ahfFktBBHUIxbVG5P", "unsubscribed": false, "created": true, "companyLinked": true, "companyId": "cpn_gG7PsmZFpEAnpMCHO" } } }, "200": { "application/json": { "success": true, "data": { "_id": "ctc_xW8Ou6C03Csv8vatp", "teamId": "tea_8QvkOiBfPdb2ZRhHi", "emails": [ { "value": "jane.smith@example.com" } ], "fields": { "firstName": "Jane", "lastName": "Smith", "jobTitle": "Product Manager" }, "ownerId": "usr_ahfFktBBHUIxbVG5P", "source": "api", "createdAt": "2025-10-28T00:40:37.917Z", "createdBy": "usr_ahfFktBBHUIxbVG5P", "unsubscribed": false, "created": false, "updated": true, "companyLinked": false } } }, "400": { "application/json": { "success": false, "error": { "code": "MISSING_IDENTIFIER", "message": "At least one identifier is required: email, linkedinUrl or contactId" } } }, "401": { "text/plain": "The authentication you supplied is incorrect" } } }, "DELETE /contacts/{idOrEmail}": { "summary": "Delete Contact", "tags": [ "Contacts" ], "responses": { "200": { "application/json": { "success": true, "deletedContactId": "ctc_xW8Ou6C03Csv8vatp" } }, "401": { "text/plain": "The authentication you supplied is incorrect" }, "404": { "application/json": { "success": false, "error": { "code": "CONTACT_NOT_FOUND", "message": "No contact found with the provided id or email" } } }, "409": { "application/json": { "success": false, "error": { "code": "CONTACT_DELETE_BLOCKED", "message": "Contact cannot be removed if an enrichment is in progress" } } } } }, "GET /contacts/{idOrEmail}": { "summary": "Get Contact", "tags": [ "Contacts" ], "responses": { "200": { "application/json": { "_id": "ctc_xW8Ou6C03Csv8vatp", "teamId": "tea_8QvkOiBfPdb2ZRhHi", "fullName": "John Doe", "email": "support@lemlist.com", "fields": { "firstName": "John", "jobTitle": "Growth Engineer", "lastName": "Doe", "industry": "Technology", "isActiveInCampaigns": false, "lastCampaign": "NEW TO DELETE", "lastLeadMarkedAsInterestedDate": "2025-10-28T02:12:31.971Z", "leadStatus": "Marked as not Interested by api" }, "campaigns": [ { "campaignId": "cam_bSn8EORHQxbWPjHvu", "campaignState": "running", "leadState": "review", "leadId": "lea_fiDpiGV585wy3Oii2" } ], "ownerId": "usr_ahfFktBBHUIxbVG5P", "createdAt": "2025-10-28T00:40:37.917Z", "createdBy": "usr_ahfFktBBHUIxbVG5P", "unsubscribed": false } }, "400": { "text/plain": "Bad team" }, "401": { "text/plain": "The authentication you supplied is incorrect" } } }, "GET /contacts/lists": { "summary": "Get Contact Lists", "tags": [ "Contacts" ], "responses": { "200": { "application/json": [ { "_id": "clt_abc123def456ghi78", "name": "Nurturing", "dynamic": false }, { "_id": "clt_xyz789uvw012rst34", "name": "Enterprise Prospects", "dynamic": true } ] }, "400": { "text/plain": "Bad team" }, "401": { "text/plain": "The authentication you supplied is incorrect" } } }, "POST /contacts/lists": { "summary": "Create Contact List", "tags": [ "Contacts" ], "request": { "application/json": { "name": "Nurturing" } }, "responses": { "201": { "application/json": { "message": "Contact list created successfully", "list": { "id": "clt_abc123def456ghi78", "name": "Nurturing" } } }, "400": { "text/plain": "name is required and must be a non-empty string" }, "401": { "text/plain": "The authentication you supplied is incorrect" } } }, "POST /contacts/lists/{listId}/entities": { "summary": "Add or Remove Contacts in a List", "tags": [ "Contacts" ], "request": { "application/json": { "contactIds": [ "ctc_xxxxxxxxxxxxxxxxx", "ctc_yyyyyyyyyyyyyyyyy" ] } }, "responses": { "200": { "application/json": { "add": { "summary": "Add contacts (no action)", "value": { "message": "Contacts added to list successfully", "addedCount": 2, "alreadyInList": 0 } }, "remove": { "summary": "Remove contacts (action=remove)", "value": { "message": "Contacts removed from list successfully", "removedCount": 2 } } } }, "400": { "text/plain": "contactIds is required and must be a non-empty array" }, "401": { "text/plain": "The authentication you supplied is incorrect" }, "404": { "text/plain": "Contact list not found" }, "405": { "text/plain": "Method not allowed" }, "500": { "text/plain": "Failed to add contacts to list" } } }, "GET /contacts/export": { "summary": "Export Contact List", "tags": [ "Contacts" ], "responses": { "200": { "text/csv": "firstName,lastName,email,companyName,jobTitle,status\nJohn,Doe,john@example.com,Acme Inc,CEO,interested" }, "400": { "text/plain": "Bad team" } } }, "POST /lemwarm/{userMailboxId}/start": { "summary": "Start lemwarm", "tags": [ "lemwarm" ], "responses": { "200": { "application/json": { "ok": true } }, "400": { "text/plain": "Bad team" }, "401": { "text/plain": "The authentication you supplied is incorrect" } } }, "POST /lemwarm/{userMailboxId}/pause": { "summary": "Pause lemwarm", "tags": [ "lemwarm" ], "responses": { "200": { "application/json": { "ok": true } }, "400": { "text/plain": "Bad team" }, "401": { "text/plain": "The authentication you supplied is incorrect" } } }, "GET /lemwarm/{userMailboxId}/settings": { "summary": "Get lemwarm Settings", "tags": [ "lemwarm" ], "responses": { "200": { "application/json": { "warmEmailRampup": 5, "warmEmailMax": 5, "activeAt": "2025-04-10T07:38:31.530Z", "deliverability": { "score": 70, "lastAt": "2025-04-09T13:34:43.998Z" } } }, "400": { "text/plain": "Bad team" }, "401": { "text/plain": "The authentication you supplied is incorrect" } } }, "PATCH /lemwarm/{userMailboxId}/settings": { "summary": "Update lemwarm Settings", "tags": [ "lemwarm" ], "request": { "application/json": { "warmEmailMax": 30, "warmEmailRampup": 5, "warmDailyVarianceEnabled": true } }, "responses": { "200": { "application/json": { "ok": true } }, "400": { "text/plain": "Bad team" }, "401": { "text/plain": "The authentication you supplied is incorrect" } } }, "GET /companies": { "summary": "Get Many Companies", "tags": [ "Companies" ], "responses": { "200": { "application/json": { "data": [ { "_id": "cpn_gG7PsmZFpEAnpMCHO", "createdAt": "2025-10-26T11:54:27.387Z", "createdBy": "usr_iGBmhLaxZmL0s7k1G", "domain": "persana.ai", "fields": { "name": "Persana AI", "picture": "https://example.com/logos/company-1.png" }, "ownerId": "usr_iGBmhLaxZmL0s7k1G" }, { "_id": "cpn_FEWCjzMWXo5StjpDa", "createdAt": "2025-10-26T11:45:18.773Z", "createdBy": "usr_iGBmhLaxZmL0s7k1G", "domain": "duno.ai", "fields": { "industry": "IT Services and IT Consulting", "name": "Duno.ai", "picture": "https://example.com/logos/company-2.png" }, "ownerId": "usr_iGBmhLaxZmL0s7k1G" }, { "_id": "cpn_2STz8x5Bexmd0nvIz", "createdAt": "2025-10-25T21:37:45.741Z", "createdBy": "usr_iGBmhLaxZmL0s7k1G", "domain": "tally.so", "fields": { "industry": "Computer Software", "name": "lemlist family", "picture": "https://example.com/logos/lemlist.png" }, "ownerId": "usr_iGBmhLaxZmL0s7k1G" }, { "_id": "cpn_Qf4CJuUrNUNmHm6uZ", "createdAt": "2025-10-24T07:26:34.956Z", "createdBy": "usr_ahfFktBBHUIxbVG5P", "domain": "example.com", "fields": { "name": "Growth & GTM Engineering" }, "ownerId": "usr_ahfFktBBHUIxbVG5P" }, { "_id": "cpn_A1B2C3D4E5F6G7H8I", "createdAt": "2025-11-02T09:14:08.512Z", "createdBy": "usr_A1B2C3D4E5F6G7H8I", "domain": "acme.com", "fields": { "name": "Acme Inc" }, "ownerId": "usr_A1B2C3D4E5F6G7H8I", "crmSync": { "provider": "hubspot", "crmRecordId": null, "syncDisabled": false, "errors": [ { "type": "CONNECT_FAILED", "reason": "UNIQUE_INDEX_ERROR_COMPANY", "raisedAt": "2025-11-02T09:14:12.034Z", "metadata": { "alreadyExistingCompanyId": "cpn_J1K2L3M4N5O6P7Q8R" } } ] } } ], "total": 59310, "limit": 100, "offset": 0 } }, "400": { "text/plain": "Bad team" }, "401": { "text/plain": "The authentication you supplied is incorrect" } } }, "POST /companies": { "summary": "Add and update company", "tags": [ "Companies" ], "request": { "application/json": { "name": "Acme Corp", "domain": "acme.com", "linkedinUrl": "https://linkedin.com/company/acme", "industry": "Technology", "location": "San Francisco, CA" } }, "responses": { "201": { "application/json": { "success": true, "data": { "_id": "cpn_gG7PsmZFpEAnpMCHO", "teamId": "tea_8QvkOiBfPdb2ZRhHi", "domain": "acme.com", "linkedinUrl": "https://www.linkedin.com/company/acme", "fields": { "name": "Acme Corp", "industry": "Technology", "location": "San Francisco, CA" }, "ownerId": "usr_ahfFktBBHUIxbVG5P", "source": "api", "createdAt": "2025-10-28T00:40:37.917Z", "createdBy": "usr_ahfFktBBHUIxbVG5P", "created": true } } }, "200": { "application/json": { "success": true, "data": { "_id": "cpn_gG7PsmZFpEAnpMCHO", "teamId": "tea_8QvkOiBfPdb2ZRhHi", "domain": "acme.com", "fields": { "name": "Acme Corp", "industry": "Technology", "location": "San Francisco, CA" }, "ownerId": "usr_ahfFktBBHUIxbVG5P", "source": "api", "createdAt": "2025-10-28T00:40:37.917Z", "createdBy": "usr_ahfFktBBHUIxbVG5P", "created": false, "updated": true } } }, "400": { "application/json": { "success": false, "error": { "code": "MISSING_REQUIRED_FIELD", "message": "Missing required field: name" } } }, "401": { "text/plain": "The authentication you supplied is incorrect" } } }, "DELETE /companies/{companyId}": { "summary": "Delete Company", "tags": [ "Companies" ], "responses": { "200": { "application/json": { "no contacts attached": { "value": { "success": true, "deletedCompanyId": "cpn_A1B2C3D4E5F6G7H8I" } }, "force=true with attached contacts": { "value": { "success": true, "deletedCompanyId": "cpn_A1B2C3D4E5F6G7H8I", "unlinkedContacts": 3 } } } }, "400": { "application/json": { "success": false, "error": { "code": "COMPANY_HAS_CONTACTS", "message": "Company still has contacts attached. Pass ?force=true to detach them before deletion. (3 contacts attached)", "contactCount": 3 } } }, "401": { "text/plain": "The authentication you supplied is incorrect" }, "404": { "application/json": { "success": false, "error": { "code": "COMPANY_NOT_FOUND_BY_ID", "message": "Company not found by ID" } } } } }, "GET /companies/{companyId}/notes": { "summary": "Get Company Notes", "tags": [ "Companies" ], "responses": { "200": { "application/json": { "data": [ { "_id": "act_j0NrG6rYEPP9TMmWC", "teamId": "tea_8QvkOiBfPdb2ZRhHi", "companyId": "cpn_Qf4CJuUrNUNmHm6uZ", "createdAt": "2025-10-28T04:25:00.653Z", "note": "could help our GTM team be more productive", "userId": "usr_ahfFktBBHUIxbVG5P" }, { "_id": "act_BYF2j06u0wgeLncub", "teamId": "tea_8QvkOiBfPdb2ZRhHi", "companyId": "cpn_Qf4CJuUrNUNmHm6uZ", "createdAt": "2025-10-24T12:42:40.605Z", "note": "Note created from the API!", "userId": "usr_ahfFktBBHUIxbVG5P" } ], "total": 2 } }, "400": { "text/plain": "Bad team" }, "401": { "text/plain": "The authentication you supplied is incorrect" }, "404": { "text/plain": "Company not found" } } }, "POST /companies/{companyId}/notes": { "summary": "Create Company Note", "tags": [ "Companies" ], "request": { "application/json": { "note": "Note created from the API!" } }, "responses": { "200": { "application/json": { "_id": "act_j0NrG6rYEPP9TMmWC", "teamId": "tea_8QvkOiBfPdb2ZRhHi", "companyId": "cpn_Qf4CJuUrNUNmHm6uZ", "type": "annotated", "createdAt": "2025-10-28T04:25:00.653Z", "note": "could help our GTM team be more productive", "sendUserId": "usr_ahfFktBBHUIxbVG5P", "userId": "usr_ahfFktBBHUIxbVG5P" } }, "400": { "text/plain": "Bad team" }, "401": { "text/plain": "The authentication you supplied is incorrect" }, "404": { "text/plain": "Company not found" } } }, "GET /activities": { "summary": "Get Many Activities", "tags": [ "Activities" ], "responses": { "200": { "application/json": [ { "_id": "act_PbKqTGpQqSlPcoOZ5", "type": "manualDone", "userId": "usr_Emu1g29BMtBixhMSP", "userName": "Guillaume Moubeche", "bot": false, "createdAt": "2025-10-28T08:07:38.375Z", "leadFirstName": "John", "leadLastName": "Doe", "leadEmail": "support@lemlist.com", "leadCompanyName": "Acme Inc", "leadId": "lea_fiDpiGV585wy3Oii2", "contactId": "ctc_xW8Ou6C03Csv8vatp", "campaignId": "cam_bSn8EORHQxbWPjHvu", "teamId": "tea_8QvkOiBfPdb2ZRhHi", "opportunityId": "opp_LyXDV8KHzctQdLFpG", "metaData": { "teamId": "tea_8QvkOiBfPdb2ZRhHi", "campaignId": "cam_bSn8EORHQxbWPjHvu", "leadId": "lea_fiDpiGV585wy3Oii2", "type": "manualDone" }, "lead": { "_id": "lea_fiDpiGV585wy3Oii2", "isPaused": false, "state": "manualNotInterested", "personalized": false, "source": "api", "variables": { "firstName": "John", "lastName": "Doe", "companyName": "Acme Inc", "jobTitle": "Growth Engineer", "companyDomain": "example.com", "email": "support@lemlist.com", "preferredContactMethod": "email", "industry": "Technology", "Company name": "John Doe" }, "contactId": "ctc_xW8Ou6C03Csv8vatp", "enrichment": { "emailStatus": "deliverable" } }, "campaignName": "NEW TO DELETE", "sequenceTested": "B" }, { "_id": "act_j0NrG6rYEPP9TMmWC", "teamId": "tea_8QvkOiBfPdb2ZRhHi", "companyId": "cpn_Qf4CJuUrNUNmHm6uZ", "type": "annotated", "createdAt": "2025-10-28T04:25:00.653Z", "note": "could help our GTM team be more productive", "sendUserId": "usr_ahfFktBBHUIxbVG5P", "userId": "usr_ahfFktBBHUIxbVG5P" }, { "_id": "act_WeKrlIaQlBnM3LZ6G", "type": "manualNotInterested", "teamId": "tea_8QvkOiBfPdb2ZRhHi", "userName": "api", "isFirst": false, "bot": false, "createdAt": "2025-10-28T02:14:34.834Z", "name": "NEW TO DELETE", "leadFirstName": "John", "leadLastName": "Doe", "leadEmail": "support@lemlist.com", "leadCompanyName": "Acme Inc", "leadId": "lea_fiDpiGV585wy3Oii2", "contactId": "ctc_xW8Ou6C03Csv8vatp", "campaignId": "cam_bSn8EORHQxbWPjHvu", "metaData": { "teamId": "tea_8QvkOiBfPdb2ZRhHi", "campaignId": "cam_bSn8EORHQxbWPjHvu", "leadId": "lea_fiDpiGV585wy3Oii2", "type": "manualNotInterested" }, "lead": { "_id": "lea_fiDpiGV585wy3Oii2", "isPaused": false, "state": "manualNotInterested", "personalized": false, "source": "api", "variables": { "firstName": "John", "lastName": "Doe", "companyName": "Acme Inc", "jobTitle": "Growth Engineer", "companyDomain": "example.com", "email": "support@lemlist.com", "preferredContactMethod": "email", "industry": "Technology", "Company name": "John Doe" }, "contactId": "ctc_xW8Ou6C03Csv8vatp", "enrichment": { "emailStatus": "deliverable" } }, "campaignName": "NEW TO DELETE", "sequenceTested": "B" }, { "_id": "act_zktTG4HXXXSOQya5U", "type": "paused", "userName": "api", "bot": false, "createdAt": "2025-10-28T01:54:56.099Z", "name": "NEW TO DELETE", "leadFirstName": "John", "leadLastName": "Doe", "leadEmail": "support@lemlist.com", "leadCompanyName": "Acme Inc", "leadId": "lea_fiDpiGV585wy3Oii2", "contactId": "ctc_xW8Ou6C03Csv8vatp", "campaignId": "cam_bSn8EORHQxbWPjHvu", "teamId": "tea_8QvkOiBfPdb2ZRhHi", "metaData": { "teamId": "tea_8QvkOiBfPdb2ZRhHi", "campaignId": "cam_bSn8EORHQxbWPjHvu", "leadId": "lea_fiDpiGV585wy3Oii2", "type": "paused" }, "lead": { "_id": "lea_fiDpiGV585wy3Oii2", "isPaused": false, "state": "manualNotInterested", "personalized": false, "source": "api", "variables": { "firstName": "John", "lastName": "Doe", "companyName": "Acme Inc", "jobTitle": "Growth Engineer", "companyDomain": "example.com", "email": "support@lemlist.com", "preferredContactMethod": "email", "industry": "Technology", "Company name": "John Doe" }, "contactId": "ctc_xW8Ou6C03Csv8vatp", "enrichment": { "emailStatus": "deliverable" } }, "campaignName": "NEW TO DELETE", "sequenceTested": "B" }, { "_id": "act_x6esGLhoPa2SMHCZ7", "type": "emailsOpened", "isFirst": false, "stopped": false, "createdAt": "2025-10-27T20:20:59.696Z", "bot": false, "teamId": "tea_8QvkOiBfPdb2ZRhHi", "leadId": "lea_wj47uWhDbbN6Qq6oT", "campaignId": "cam_oxeGg6paG3ZVxjHkH", "sequenceId": "seq_ODjsLXkxXiySRw6dK", "sequenceStep": 1, "emailTemplateId": "etp_z3nAbjdHuewVEjIl5", "createdBy": "usr_EvXz6JqPSJJL9lHkp", "sendUserId": "usr_EvXz6JqPSJJL9lHkp", "name": "Unicorn campaign", "leadFirstName": "Sam", "leadLastName": "Taylor", "leadEmail": "sam@example.com", "leadCompanyName": "lemlist", "contactId": "ctc_FkeUdQHEfhqG2HMbK", "relatedSentAt": "2020-12-07T11:49:14.830Z", "metaData": { "teamId": "tea_8QvkOiBfPdb2ZRhHi", "campaignId": "cam_oxeGg6paG3ZVxjHkH", "leadId": "lea_wj47uWhDbbN6Qq6oT", "type": "emailsOpened", "createdBy": "usr_EvXz6JqPSJJL9lHkp", "taskId": "tsk_namMcIQnA6gxQIupP" }, "lead": { "_id": "lea_wj47uWhDbbN6Qq6oT", "isPaused": false, "state": "emailsUnsubscribed", "personalized": false, "source": "manually", "variables": { "firstName": "Sam ", "lastName": "Taylor", "email": "sam@example.com", "companyName": "lemlist", "linkedinUrl": "https://www.linkedin.com/in/sam-doe" }, "contactId": "ctc_FkeUdQHEfhqG2HMbK", "enrichment": {} }, "campaignName": "Unicorn campaign", "sequenceTested": "A", "emailTemplateName": "Blank" }, { "_id": "act_q4tnlXNdXsBeQceYW", "type": "emailsOpened", "isFirst": false, "stopped": false, "createdAt": "2025-10-27T20:17:24.119Z", "bot": false, "teamId": "tea_8QvkOiBfPdb2ZRhHi", "leadId": "lea_wj47uWhDbbN6Qq6oT", "campaignId": "cam_oxeGg6paG3ZVxjHkH", "sequenceId": "seq_ODjsLXkxXiySRw6dK", "sequenceStep": 1, "emailTemplateId": "etp_z3nAbjdHuewVEjIl5", "createdBy": "usr_EvXz6JqPSJJL9lHkp", "sendUserId": "usr_EvXz6JqPSJJL9lHkp", "name": "Unicorn campaign", "leadFirstName": "Sam", "leadLastName": "Taylor", "leadEmail": "sam@example.com", "leadCompanyName": "lemlist", "contactId": "ctc_FkeUdQHEfhqG2HMbK", "relatedSentAt": "2020-12-07T11:49:14.830Z", "metaData": { "teamId": "tea_8QvkOiBfPdb2ZRhHi", "campaignId": "cam_oxeGg6paG3ZVxjHkH", "leadId": "lea_wj47uWhDbbN6Qq6oT", "type": "emailsOpened", "createdBy": "usr_EvXz6JqPSJJL9lHkp", "taskId": "tsk_namMcIQnA6gxQIupP" }, "lead": { "_id": "lea_wj47uWhDbbN6Qq6oT", "isPaused": false, "state": "emailsUnsubscribed", "personalized": false, "source": "manually", "variables": { "firstName": "Sam ", "lastName": "Taylor", "email": "sam@example.com", "companyName": "lemlist", "linkedinUrl": "https://www.linkedin.com/in/sam-doe" }, "contactId": "ctc_FkeUdQHEfhqG2HMbK", "enrichment": {} }, "campaignName": "Unicorn campaign", "sequenceTested": "A", "emailTemplateName": "Blank" } ] }, "400": { "text/plain": "Bad team" } } }, "DELETE /activities/{activityId}/recording-transcript": { "summary": "Delete Activity Recording & Transcript", "tags": [ "Activities" ], "responses": { "404": { "text/plain": "Activity not found" } } }, "GET /v2/campaigns/{campaignId}/stats": { "summary": "Get Campaign Stats", "tags": [ "Campaigns" ], "responses": { "200": { "application/json": { "nbLeads": 32, "nbLeadsLaunched": 32, "nbLeadsReached": 32, "nbLeadsOpened": 31, "nbLeadsInteracted": 4, "nbLeadsAnswered": 16, "nbLeadsInterested": 1, "nbLeadsNotInterested": 0, "nbLeadsUnsubscribed": 1, "nbLeadsInterrupted": 1, "messagesSent": 72, "messagesNotSent": 0, "messagesBounced": 0, "delivered": 72, "opened": 47, "clicked": 4, "replied": 16, "invitationAccepted": 0, "meetingBooked": 0, "steps": [ { "index": 1, "sequenceId": "seq_rH5RD3fMkkt2gM3YC", "sequenceStep": 0, "taskType": "linkedinSend", "invited": 0, "sent": 32, "delivered": 32, "opened": 15, "clicked": 0, "replied": 15, "notDelivered": 0, "bounced": 0, "unsubscribed": 1 }, { "index": 2, "sequenceId": "seq_rH5RD3fMkkt2gM3YC", "sequenceStep": 1, "invited": 0, "sent": 20, "delivered": 20, "opened": 17, "clicked": 1, "replied": 1, "notDelivered": 0, "bounced": 0, "unsubscribed": 0 }, { "index": 3, "sequenceId": "seq_rH5RD3fMkkt2gM3YC", "sequenceStep": 2, "invited": 0, "sent": 20, "delivered": 20, "opened": 15, "clicked": 3, "replied": 0, "notDelivered": 0, "bounced": 0, "unsubscribed": 0 } ] } }, "400": { "text/plain": { "badTeam": { "summary": "Bad team", "value": "Bad team" }, "missingDates": { "summary": "Missing dates", "value": "Bad params: startDate and endDate are required" }, "invalidChannels": { "summary": "Invalid channels format", "value": "Bad params: channels must be a valid array" }, "invalidChannelValues": { "summary": "Invalid channel values", "value": "Bad params: channels must be empty or contain \"others\", \"email\" or \"linkedin\"" }, "invalidAB": { "summary": "Invalid A/B selection", "value": "Bad params: ABSelected must be A or B" }, "invalidSendUserFormat": { "summary": "Invalid send user format", "value": "Bad param format: sendUser must be formatted as follow: