Update opt out settings
Replaces the team’s keyword opt-out settings. When enabled, a direct text reply whose whole body matches an opt-out keyword, from a number that received a campaign message from the team in the last 30 days, adds that number to the opt-out list with source stop-keyword and emits contact.opted_out. Matching ignores letter case and surrounding punctuation and whitespace. An opt-in keyword removes only an opt-out created this way and emits contact.opted_in; opt-outs added manually, by file or through the API are never removed by a reply. Each list holds at most 50 keywords of 1 to 32 characters, the opt-out list needs at least one keyword, and the two lists must not share a keyword. Keywords are stored in upper case. Changes apply to replies within 30 seconds.
Requires a team API key with campaigns:manage. Project tokens are not accepted.
Authorizations
Send your team API key or project token as Authorization: Bearer <token>. The credential must have the required permissions. Project tokens can access only their own project.
Body
Whether this feature is enabled.
Opt out keywords associated with this management update opt out settings input.
Value constraints
1 - 50 elements1 - 32Opt in keywords associated with this management update opt out settings input.
Value constraints
501 - 32Response
Success
Structured data carried by this object.