mailmoo_campaign_get_context
Get everything about one campaign
The campaign's settings, its sequence, and how it is performing, in one call. Use this to answer questions about a campaign rather than fetching the pieces separately. The sequence is one flat list of steps by default: each with its id, the step it follows (afterStepId), its condition path (branch), its copy and settings, and each condition's settings (condition), plus whether the campaign is running, its sending schedule, and its readiness. sequenceDetail full returns the editor's whole sequence object instead, which is many times larger: ask for it only when the step list lacks something. Also returns mergeFields: the personalization variables this campaign's messages may use, which campaign_update_message validates against; and columns: the lead table's columns, whether AI fills each, and whether it can be edited by hand, for leads_bulk_update set_field, columnEquals filters and filter_leads rules.
Effect: Read. See Effects.
Permissions: Read analytics, Read campaigns.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
campaignId | string | Yes | ID of the campaign. |
include | array of sequence, metrics | No | Which extras to fetch. Defaults to both. |
sequenceDetail | steps, full | No | steps (the default): the compact step list. full: the editor's whole sequence object, with sender records and the step tree twice. |

