Buy a number
Trillet OEM API: Buys a number for the tenant, billed to your partner account at the standard Trillet number price.
Buys a number for the tenant, billed to your partner account at the standard Trillet number
price. The first month is charged when you buy, then the number renews monthly.
Find numbers first with GET /v1/api/twilio/available-numbers and the tenant ID in
x-workspace-id. Needs numbers:write. Idempotency-Key is required.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The tenant ID.
^[a-fA-F0-9]{24}$Header Parameters
1 to 255 printable ASCII characters, no spaces. A retry with the same key and request returns the stored response for 24 hours instead of running again.
>= 1, <= 255Body
phoneNumberstringrequiredE.164 format.
^\+[1-9]\d{6,14}$countrystringrequiredTwo-letter country code.
>= 2, <= 2type"local" | "mobile""local" | "mobile""local"addressSidstringRegulatory address, for countries that need one.
<= 64bundleSidstringRegulatory bundle, for countries that need one.
<= 64Response
The number.
objectstringrequiredidstringrequiredUse it as phoneNumberId when binding the number to an agent.
^[a-fA-F0-9]{24}$tenantIdstringrequired^[a-fA-F0-9]{24}$phoneNumberstringrequiredE.164 format.
providerstring | nulltypestring | nullexternalbooleanrequiredtrue for numbers you registered yourself.
statusstring | nullagentIdstring | nullcallFlowIdstring | nullbillinganyPresent for numbers bought through Trillet OEM, null for your own numbers.
createdAtstring | null<date-time>Last updated on