Skip to main content
GET
Read one of the account's numbers.

Authorizations

Authorization
string
header
required

A person's session: Authorization: Bearer <ID token>, the ID token the Sendblue sign-in issues. The person acts in their company's root account with the role of their seat.

Path Parameters

phone_number
string
required

E.164, with the plus sign percent-encoded (%2B14155550100). A phone number in E.164 form.

Pattern: ^\+[1-9][0-9]{6,14}$
Example:

"+14155550100"

Response

The number.

id
string | null
required

The number's ID. null for a registered number, which has none.

phone_number
string
required

A phone number in E.164 form.

Pattern: ^\+[1-9][0-9]{6,14}$
Example:

"+14155550100"

friendly_name
string
required

The number as it is usually written. Setting a name of your own is planned.

source
enum<string>
required

How the account came to have the number. requested: an enrolled retained line fulfilled against an iMessage number request. purchased: bought through this API (or the Twilio-compatible one). registered: a number the company already held, registered for the account by Sendblue. A registered number sends and receives like any other and is read-only here: it has no ID, creation time or configuration, and is not changed or released through this API.

Available options:
purchased,
requested,
registered
channels
enum<string>[]
required

What the number's kind can be used for: sms, mms and voice for a purchased carrier number; for a registered carrier number sms and mms when it is a message sender and voice when it is enabled for calls; imessage for an iMessage line. It is not a per-number measurement; capabilities says what the number can do now.

Available options:
sms,
mms,
voice,
imessage
capabilities
object
required

What the number can do now.

voice_url
string<uri> | null
required

Where the TwiML for an incoming call is fetched.

voice_method
enum<string> | null
required
Available options:
GET,
POST
voice_fallback_url
string<uri> | null
required
voice_fallback_method
enum<string> | null
required
Available options:
GET,
POST
status_callback
string<uri> | null
required

Receives the status of incoming calls.

status_callback_method
enum<string> | null
required
Available options:
GET,
POST
campaign_id
string | null
required

The assigned campaign's ID. Null for unassigned, registered, and requested numbers.

sms
object
required
price
object | null
required

The settled acquisition price, or null for a number with no retail purchase.

Example:
monthly_price
object | null
required

The account's current monthly rate for a settled retail purchase. Null for requested and registered numbers, an acquisition without a retail purchase record, or an account without a monthly rate.

Example:
created_at
string<date-time> | null
required

When the number was bought or the iMessage request was fulfilled. null for a registered number.