Add to Opt-Out List

Add a phone number to the Opt-Out List.

POST https://cotlet.dev/api/v1/clicksend/phones/{phone_number}/opt-outs

write Confirm

Adds the number as + New Contact on the Opt-Out List does. The number stays on your other lists until you run remove_opted_out_contacts. Removing a number from the Opt-Out List is not offered. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: add_opt_out
NameTypeDescription
phone_number string required string Phone number with the country code.

Request

cURL
curl -X POST https://cotlet.dev/api/v1/clicksend/phones/phone%20number/opt-outs \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("clicksend", "add_opt_out", {"phone_number":"phone number"})
Node.js
const result = await cotlet.call('clicksend', 'add_opt_out', {"phone_number":"phone number"});
CLI
cotlet call clicksend add_opt_out --data '{"phone_number":"phone number"}'

Example response

JSON

{
  "phone_number": "+15550100234",
  "added": true
}

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.