Get Campaign Stats
lemlist.get_campaign_stats
ActionCRM & salesconnection required
Calls the lemlist API with the connection's credentials.
Read a campaign's counters over a date range, per step and channel.
Connection
- Required
- Yes — the node will not save without one
- Auth type
- API key
- Providers
- lemlist
- Secret shape
- the API key, or {"api_key": "…"}
- Config it needs
- campaign_id
- Resolved by
- config.connection_id, else node.connection_id
Configuration
6 fields, 2 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.
| Field | Type | Required | Default | Constraints | Example |
|---|---|---|---|---|---|
campaign_id The campaign to act on. Falls back to the connection's default campaign when blank. | string | No | — | — | cam_4HrZbi8xsez4QlrnL |
start_date Start of the reporting window, in ISO 8601. | string | Yes | — | iso8601 format | — |
end_date End of the reporting window, in ISO 8601. | string | Yes | — | iso8601 format | — |
send_user Limit the counters to one sender, written as 'usr_id|sender@example.com'. | string | No | — | — | — |
ab_selected Limit the counters to one A/B variant. | string | No | — | one of "A", "B" | — |
channels Channels to include: email, linkedin or others. All of them when blank. | array | No | — | array of string | — |
Example configuration
Every value below is the contract’s own example or default — nothing invented.
{
"campaign_id": "cam_4HrZbi8xsez4QlrnL"
}Output
One shape.
result
| Field | Type | Example |
|---|---|---|
nbLeads Total number of leads in the campaign. | number | — |
nbLeadsLaunched Number of leads launched in the campaign. | number | — |
nbLeadsReached Number of leads that were successfully reached. | number | — |
nbLeadsOpened Number of leads that opened a message. | number | — |
nbLeadsInteracted Number of leads that clicked or replied. | number | — |
nbLeadsAnswered Number of leads that answered. | number | — |
nbLeadsInterested Number of leads marked as interested. | number | — |
nbLeadsNotInterested Number of leads marked as not interested. | number | — |
nbLeadsUnsubscribed Number of leads that unsubscribed. | number | — |
nbLeadsInterrupted Number of leads whose sequence was interrupted. | number | — |
messagesSent Number of messages sent. | number | — |
messagesNotSent Number of messages that were not sent. | number | — |
messagesBounced Number of messages that bounced. | number | — |
delivered Number of messages delivered. | number | — |
opened Number of messages opened. | number | — |
clicked Number of link clicks recorded. | number | — |
replied Number of replies received. | number | — |
invitationAccepted Number of LinkedIn invitations accepted. | number | — |
meetingBooked Number of meetings booked. | number | — |
steps Per-step breakdown of the same counters. | array | — |
{
"clicked": 0,
"delivered": 0,
"invitationAccepted": 0,
"meetingBooked": 0,
"messagesBounced": 0,
"messagesNotSent": 0,
"messagesSent": 0,
"nbLeads": 0,
"nbLeadsAnswered": 0,
"nbLeadsInteracted": 0,
"nbLeadsInterested": 0,
"nbLeadsInterrupted": 0,
"nbLeadsLaunched": 0,
"nbLeadsNotInterested": 0,
"nbLeadsOpened": 0,
"nbLeadsReached": 0,
"nbLeadsUnsubscribed": 0,
"opened": 0,
"replied": 0,
"steps": []
}See Get Campaign Stats run in a workflow.
In a technical demo we add the lemlist connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.