Skip to main content
POST
Request iMessage numbers, which Sendblue fulfills.

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.

Headers

Idempotency-Key
string
required

A value unique to this intended write, 1 to 128 visible ASCII characters. A repeat with the same key returns the original result.

Required string length: 1 - 128
Pattern: ^[\x21-\x7E]+$

Body

application/json
channel
string
required
Allowed value: "imessage"
quantity
integer
required
Required range: 1 <= x <= 100
area_code
string | null
Pattern: ^[2-9][0-9]{2}$
note
string | null
Maximum string length: 500

Response

The recorded request with its total quoted price.

id
string
required
channel
string
required
Allowed value: "imessage"
quantity
integer
required
Required range: x >= 1
area_code
string | null
required
note
string | null
required
price
string
required

Total USD quote for the requested quantity at creation.

Pattern: ^[0-9]+\.[0-9]{2,6}$
status
enum<string>
required
Available options:
pending,
fulfilled,
cancelled,
declined
reason
string | null
required

Customer-visible explanation when the operator declines.

phone_numbers
string[]
required

The numbers assigned once the order is fulfilled.

A phone number in E.164 form.

Pattern: ^\+[1-9][0-9]{6,14}$
created_at
string<date-time>
required

RFC 3339, UTC.

updated_at
string<date-time>
required

RFC 3339, UTC.