leads_campaign_log_change_status
Manually transition the status of a specific CampaignLog. Allowed transitions: SENT <-> FAILED <-> REPLIED (bidirectional), APPROVED -> CREATED. Blocked when a later sequence step already exists for the same lead+campaign. Moving to REPLIED (40) records a reply: it stamps replied_at, cancels the rest of the sequence, and marks a lead that was NEW / IN_PROGRESS / COMPLETED as REPLIED. Moving away from REPLIED clears replied_at.
Method: POST /api/v1/workspaces/{workspace_sqid}/leads/{sqid}/campaign-logs/{campaign_log_sqid}/change-status/
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"campaign_log_sqid": "<campaign_log_sqid>",
"sqid": "<sqid>",
"lead_name": "<lead_name>"
},
"name": "leads_campaign_log_change_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sqid | Yes | ||
| notes | No | ||
| status | No | Lead lifecycle stage: NEW → IN_PROGRESS → REPLIED / INTERESTED / NOT_INTERESTED (a person replied; REPLIED = needs a human to read it) or COMPLETED (campaign finished without a reply); also UNSUBSCRIBED, FAILED, ARCHIVED. Set automatically from replies; override to record your own judgement of a reply (e.g. REPLIED → INTERESTED). UNSUBSCRIBED is permanent: an opt-out can't be changed back. * `NEW` - New * `IN_PROGRESS` - In Progress * `REPLIED` - Replied * `INTERESTED` - Interested * `NOT_INTERESTED` - Not Interested * `COMPLETED` - Completed * `FAILED` - Failed * `UNSUBSCRIBED` - Unsubscribed * `ARCHIVED` - Archived | |
| contact | No | Primary contact value — an email address when contact_type='email', a phone number or LinkedIn URL otherwise. | |
| context | No | Free-form JSON object for workspace-defined custom fields (see context_fields). Keys referenced as ${field_key} in sequence step templates. PATCH this via the 'context' action to merge rather than replace. | |
| lead_name | Yes | Display name (usually 'First Last' or company name for company-only leads). | |
| contact_type | No | Channel: 'email', 'phone', or 'linkedin'. Email is the only channel that can drive campaigns. * `EMAIL` - Email * `PHONE` - Phone * `LINKEDIN` - LinkedIn * `OTHER` - Other | |
| last_sale_at | No | Date of the last sale to this recipient. | |
| prior_customer | No | The recipient bought from you before (existing-customer rules). | |
| role_relevance | No | One sentence on why the offer fits this person's job. Required by some countries' rules for named addresses. | |
| declared_country | No | Country you state for this recipient: ISO 2-letter code or English name. It can make the result stricter, never looser, when other sources disagree. Changing it re-resolves recipient_country. | |
| campaign_log_sqid | Yes | ||
| discovery_person_guid | No | GUID of the discovery Person this lead was sourced from (if any). Must reference a GUID the workspace has access to. Set to null to unlink. | |
| discovery_company_guid | No | GUID of the discovery Company this lead was sourced from (if any). Used by enrichments to look up company metadata. Must reference a GUID the workspace has access to. |