Detach numbers from campaign
msg_remove_numbersDetach telephone numbers from a 10DLC campaign so they can no longer send SMS until re-attached. Returns per-number removed/failed lists.
Instructions
Detach telephone numbers from one of your 10DLC campaigns — those numbers can no longer send SMS until re-attached to an approved campaign. Returns per-TN removed/failed lists (failure reasons: not_found, not_owned, lookup_error, write_error); the response is NOT wrapped in the standard envelope. Errors: INVALID_PAYLOAD (400), NOT_FOUND (404, campaign not owned), TNIQ_ERROR (502).
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": {
"id": "<id>",
"phone_numbers": "<phone_numbers>"
},
"name": "msg_remove_numbers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Campaign ID (messaging-backend UUID, as returned by msg_list_campaigns / msg_create_campaign) | |
| phone_numbers | Yes | Telephone numbers to detach, NANP format, e.g. ["13039813633"] |