List Opt-Outs
Gets the list of all Opt-Outs that are registered for your Phone Numbers and/or TCR Campaigns. This method supports pagination.
Basic Authorization header using the BASIC scheme. Use a pair companySid:token to access the API.
In: header
Query Parameters
End-user number that opted out
Created date
date-timeTollFree phone number (must start with country code e.g. +1...) or TCR Campaign Sid to which end-user is opted out
length <= 128int321 <= value <= 10000Possible values:
-
Ascending
-
Descending
Value in
- "Ascending"
- "Descending"
Response Body
curl -X GET "https://example.com/v1/OptOuts"{ "items": [ { "number": "+12145678900", "scope": "string", "scopeType": "SenderPhoneNumber", "createdOn": "2023-09-09T15:00:00.000Z" } ], "searchId": "string"}{ "errors": { "Name": [ "The Name field is required." ] }, "type": "https://tools.ietf.org/html/rfc7231#section-6.5.1", "title": "One or more validation errors occurred.", "status": 400, "detail": "Some detailed message", "traceId": "|4ef17786-b103-420e-89c0-cc425ac14809.edfcbee9_"}De-Associate Phone Numbers PATCH
De-associates the supplied Phone Numbers from the Messaging Config. If the Messaging Config has a TCR Campaign associated with it, the supplied Phone Numbers will be de-associated from that TCR Campaign. Note that it may take some time for the Phone Numbers to change TCR Campaign association.
Import Opt-Outs POST
Allows to import the Opt-Outs manually, for example, during the migration from other provider.