campaigns_archive
Files the campaign away without deleting anything. Cancels it for every lead first (so nothing keeps sending from behind the shelf), unpins it, and moves it to state=40 ARCHIVED, which campaigns_list hides by default.
Everything is kept: every message sent to a lead, the campaign's stats, and its step history. This is the endpoint to reach for when campaigns_delete returns 409.
Archiving also releases the campaign's hold on its sequence and segment: once archived, deleting either of those succeeds and the campaign's reference to it is set to null. Reversible with campaigns_unarchive — but only while the sequence and segment still exist.
Method: POST /api/v1/workspaces/{workspace_sqid}/campaigns/{sqid}/archive/
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": {
"sqid": "<sqid>"
},
"name": "campaigns_archive"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sqid | Yes |