Record that a person does not want messages
post/phone/opt-out
Record that a person does not want messages. They stay off the list until they opt back in.
Before you call
- Credential
Authorization: Bearer $KEY- Scope
voice:write- Mcp
rivier_phone_opt_out- Graphql
Mutation.voicePhoneContactOptOut- Sdk
voice.phoneContact.optOut- Cli
voice phone contact opt out
Request bodyapplication/json, required
- peerstringrequiredPattern: ^+\d{6,15}$.
- channelstringOne of: sms, mms, whatsapp. Default: sms.
Responses
- 200application/jsonSuccess
- idstringrequired
- channelstringrequiredOne of: sms, mms, whatsapp.
- peerstringrequired
- optedInbooleanrequired
- optInSourcestringrequired
- optInAtstring or nullrequired
- optedOutAtstring or nullrequired
- lastInboundAtstring or nullrequired
- 400application/jsonThe request was malformed
- errorstringrequired
- messagestring
- 401application/jsonNo valid credential
- errorstringrequired
- messagestring
- 403application/jsonThe credential lacks the scope, origin or address
- errorstringrequired
- messagestring
- 429application/jsonOver the key's rate limit; see Retry-After
- errorstringrequired
- messagestring