Delete an SMS suppression
DELETE
/v1/sms/suppressions/{suppression_id}
// Only a `manual` suppression can be ended: a subscriber's own stop keyword and
// a carrier's opt-out are refused.
await bird.smsSuppressions.remove("sup_abc123");# Only a `manual` suppression can be ended: a subscriber's own stop keyword and
# a carrier's opt-out are refused.
client.sms_suppressions.remove("sup_abc123")// Only a `manual` suppression can be ended: a subscriber's own stop keyword
// and a carrier's opt-out are refused.
if err := client.SmsSuppressions.Remove(context.Background(), "sup_01j9x2k3m4n5p6q7r8s9t0v1w2"); err != nil {
log.Fatal(err)
}// Only a `manual` suppression can be ended: a subscriber's own stop keyword and
// a carrier's opt-out are refused.
$bird->smsSuppressions->remove('sup_abc123');bird sms suppressions remove <suppression-id> --yescurl -X DELETE "https://us1.platform.bird.com/v1/sms/suppressions/{suppression_id}" \
-H "Authorization: Bearer $TOKEN"Ends a suppression, so the sender reaches the subscriber again. The record stays with the ending noted on it. This history helps answer later complaints or carrier audits.
Only the manual reason can be ended here. A keyword_stop is the subscriber's own statement. It ends only when they text a start keyword to that sender. A carrier_opted_out mirrors what the carrier reported, so it ends when the carrier says so. Attempts to end either reason return 422.
Ending a suppression resumes messaging to someone your own records say did not want it, so do it only when you know why the manual record exists. An ID that does not exist in the workspace returns 404, and one that has already ended returns 204.
Parameters
suppression_id
string
ID of the suppression, as returned when it was created or listed.
Gerelateerde bronnen
Ga verder met de documentatie, gidsen en voorbeelden voor dit onderwerp. De bronnen zijn in het Engels.
Bekijk de gidsSending your first SMSBegrijp het conceptWhat does SMS mean?Ontdek de mogelijkheidSMSVolg het leerpadBuild your first integration
Probeer de oefening en ontvang een implementatieoverzicht