List opted-out numbers

Numbers on the Opt-Out List.

GET https://cotlet.dev/api/v1/clicksend/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

Parameters: list_opt_outs
NameTypeDescription
query string string Part of a phone number.
cursor string string Next page cursor from the previous call.

Request

cURL
curl https://cotlet.dev/api/v1/clicksend/opt-outs \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("clicksend", "list_opt_outs")
Node.js
const result = await cotlet.call('clicksend', 'list_opt_outs');
CLI
cotlet call clicksend list_opt_outs

Example response

JSON

{
  "opt_outs": [
    {
      "phone_number": "+447700900142"
    },
    {
      "phone_number": "+15550100234"
    }
  ],
  "next_cursor": null
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.