List opted-out numbers
Numbers on the Opt-Out List.
MCP tool clicksend_read → list_opt_outs
read
Returns the numbers on your Opt-Out List, 50 to a page; pass next_cursor back as cursor for the next page. Recipients land on this list when they reply STOP to an SMS campaign or click its unsubscribe link, and you can add numbers yourself. Being on this list does not remove a number from your other contact lists.
Parameters
| Name | Type | Description |
|---|---|---|
| query string | string | Part of a phone number. |
| cursor string | string | Next page cursor from the previous call. |
tools/call
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "clicksend_read",
"arguments": {
"operation": "list_opt_outs",
"arguments": {}
}
}
} Example response
{
"content": [
{
"type": "text",
"text": "{ ... same JSON as structuredContent ... }"
}
],
"structuredContent": {
"opt_outs": [
{
"phone_number": "+447700900142"
},
{
"phone_number": "+15550100234"
}
],
"next_cursor": null
},
"isError": false
}