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
orphone
is accepted for SMS subscription groups.
Request Parameters
Parameter | Required | Data Type | Description |
---|---|---|---|
subscription_group_id | Yes | String | The id of your subscription group, |
subscription_state | Yes | String | Available values are “unsubscribed” (not in subscription group) or “subscribed” (in subscription group) |
external_id | Yes* | String | The external_id of the user |
email | Yes* | String | The email address of the user |
phone | Optional | String in E.164 format | Tags 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
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Authorization | string |