Skip to main content
PUT
Assign a number to an approved campaign.

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"

Body

application/json
campaign_id
string
required

Response

The number's campaign and messaging state.

A number's campaign, and whether it may send SMS and MMS now.

phone_number
string
required

A phone number in E.164 form.

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

"+14155550100"

campaign_id
string | null
required

The campaign the number is assigned to.

sms
object
required
assigned_at
string<date-time> | null
required
activated_at
string<date-time> | null
required

When the carrier first confirmed the assignment and the number began to send.