Skip to main content
POST
cURL

Authorizations

X-Auth-ID
string
header
required

Your Vobiz account Auth ID (MA_XXXXXXXX).

X-Auth-Token
string
header
required

Your Vobiz account Auth Token.

Body

application/json

The number and channel to add to your opt-out list, with an optional reason.

phoneNumber
string
required

Required. The phone number to block, in E.164 format, for example +14155550123.

Example:

"+14155550123"

channel
string
default:sms

Channel to block: sms, mms or rcs. Defaults to sms. An sms opt-out also blocks mms.

Example:

"sms"

reason
string
default:manual

Free-text note stored on the record, for example customer request. Defaults to manual. Repeating the request for the same number and channel replaces it.

Example:

"manual"

Response

The opt-out is recorded.

Confirmation returned by actions that have no resource to return, such as marking a conversation read or creating or deleting an opt-out.

status
string

Always ok when the action succeeded.

Example:

"ok"