leads_bulk_archive
Sets the selected leads to ARCHIVED — the "stop contacting this person, but keep the record" state.
Any lead still live in a campaign has that campaign cancelled for it first: pending messages are cancelled and the CampaignLog rows are retired. Sends that already went out keep their status so campaign reporting is unaffected.
Validation is per-lead: ineligible leads are returned in skipped with a stable reason code instead of failing the request. unsubscribed leads are never archived — that is a legal opt-out, and ARCHIVED can be reset back to NEW, which would launder the opt-out away.
Archiving is reversible via leads_bulk_reset_to_new, which accepts ARCHIVED leads and returns them to NEW.
Method: POST /api/v1/workspaces/{workspace_sqid}/leads/bulk-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": {
"lead_sqids": "<lead_sqids>"
},
"name": "leads_bulk_archive"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lead_sqids | Yes | Lead sqids to archive. Any campaign still running at a lead is cancelled for that lead first. |