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.

Query Parameters

from
string
required

Required. The sender you plan to use: one of your numbers in E.164 format, or the senderName of your RCS sender when channel is rcs. It determines the route the message is priced on.

to
string
required

Required. One recipient number in E.164 format, for example +14155550123. Its destination country determines the price.

channel
enum<string>
default:sms

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

Available options:
sms,
mms,
rcs
text
string

The message body to segment and price, URL-encoded. Pass the exact text you plan to send: the segment count depends on its length and on whether it fits the GSM-7 character set. Defaults to an empty string.

Response

Segment count and cost.

An estimate of what a message costs before you send it: how many segments the text splits into, and the price per segment and in total.

channel
string

Channel the estimate is for: sms, mms or rcs, matching the channel you requested.

Example:

"sms"

segmentCount
integer

Number of segments the text splits into. A GSM-7 SMS fits 160 characters in one segment and 153 per segment when split; text with other characters uses UCS-2 (70 and 67).

Example:

2

unitCost
number

Price of one segment, in currency.

Example:

0.01

totalCost
number

Estimated price of the message to one recipient, in currency: unitCost multiplied by segmentCount.

Example:

0.02

currency
string

ISO 4217 code of the currency the prices are in, for example USD.

Example:

"USD"

country
string

ISO 3166-1 alpha-2 code of the destination country, for example US. Omitted when the destination country is not resolved.

Example:

"US"