Skip to main content
GET
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.

Path Parameters

phoneNumber
string
required

The number in E.164 format, for example +14155550123. In raw HTTP requests, URL-encode the + as %2B (/opt-outs/%2B14155550123); the SDKs encode it for you.

Query Parameters

channel
string
default:sms

Channel to check: sms, mms or rcs. Defaults to sms.

Response

The opt-out state.

Whether a phone number is on your opt-out list for the channel you asked about.

optedOut
boolean

true when the number is blocked on the requested channel, so sends to it return 422. false when you can message it.

Example:

true