Update User's Subscription Group Status - SMS

POST https://{{instance_url}}/subscription/status/set

Use the endpoint below to update the subscription state of a user on the Braze dashboard. You can access a subscription groups subscription_group_id by navigating to it on the Subscription Group page.

Only external_id or phone is accepted for SMS subscription groups.

Request Parameters

ParameterRequiredData TypeDescription
subscription_group_idYesStringThe id of your subscription group,
subscription_stateYesStringAvailable values are “unsubscribed” (not in subscription group) or “subscribed” (in subscription group)
external_idYes*StringThe external_id of the user
emailYes*StringThe email address of the user
phoneOptionalString in E.164 formatTags must already exist.

Example Successful Response

Response: (status 201)

{
    "message": "success"
}

Request Body

{"subscription_group_id"=>"subscription_group_identifier", "subscription_state"=>"unsubscribed", "external_id"=>"external_identifier", "phone"=>["+12223334444", "+11112223333"]}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Authorizationstring