Attach numbers to campaign
msg_assign_numbersAttach your owned phone numbers to a 10DLC campaign, completing the required setup before sending messages from those numbers.
Instructions
Attach telephone numbers you own to one of your 10DLC campaigns. This is STEP 3 of the 10DLC flow (msg_create_brand → msg_create_campaign → assign numbers) and is required before msg_send will accept a number as from. Returns per-TN assigned/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_assign_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 attach, NANP format, e.g. ["13039813633"] |