Skip to main content
POST
Create account
Required scope: PARTNER
Creates an Allo account for one of your customers and provisions a phone number for it. The response returns a scoped API key for the new account (shown only once) alongside the provisioned number(s) and status.
  • interval is required: MONTHLY or YEARLY. It sets the billing interval of the account’s subscription.
  • number_preference.country is required (ISO country code, e.g. FR); number_preference.prefix is optional (e.g. +337).
  • number_preference.esim is optional, false by default. Set it to true to get a French mobile number that can carry an eSIM, which you then order with Order eSIM. eSIM numbers are only available in France: with any country other than FR, the request fails with ESIM_NOT_AVAILABLE_IN_COUNTRY. prefix still applies, for example 7 or +337.
  • A phone number is secured before the account is created. If none can be assigned or purchased, the request fails with NO_NUMBER_AVAILABLE and nothing is created.
  • The account gets its own Business plan subscription, billed to you with your partner discount applied. The full period is charged when the account is created. No charge is made to your customer. Call Get account price first to see the amount.
  • Allo draws on your prepaid credit first, then charges your card on file for the rest.
  • If your prepaid credit does not cover the first period and you have no card on file, the request fails with 402 PARTNER_CREDIT_INSUFFICIENT and nothing is created.
  • If your card is declined, the request fails with 402 PARTNER_BILLING_FAILED and nothing is created.
  • If the email or personal mobile already belongs to an Allo account, the request fails with PARTNER_ACCOUNT_ALREADY_EXISTS.
  • If your account is not an enabled partner, the request fails with PARTNER_ACCESS_REQUIRED. If your partner contract cannot create accounts, it fails with PARTNER_CONTRACT_CANNOT_PROVISION. Only Discounted licence (reseller) partners can create accounts.
The partner portal creates accounts the same way, without code. To add more numbers or teammates to the account later, see Add number and Add member.

The account’s API key

The api_key in the response acts on the new account, not on yours. Store it right away: Allo returns it only once, and GET /v2/api/partner/accounts/{id} does not return it again. The key has these 10 scopes: The key cannot send SMS: it has no SMS_SEND scope. A call flow you publish with the key can still contain SEND_SMS nodes, which text the caller during the call. Keys issued before these scopes were added receive them automatically. The secret does not change, so you have nothing to update. See API key scopes for the endpoints each scope covers.

Authorizations

Authorization
string
header
required

Body

application/json
email
string
required

Becomes the account's login.

name
string
required
Example:

"Jane Doe"

interval
enum<string>
required

Billing interval of the account's own subscription, billed to you.

Available options:
MONTHLY,
YEARLY
Example:

"MONTHLY"

number_preference
object
required
personal_mobile
string | null

Optional. An existing mobile the new number can attach to.

Example:

"+33612345678"

partner_client_ref
string

Your own reference for this customer. Echoed back and on the activation webhook.

Example:

"crm-12345"

Response

Account created

data
object