Buy a phone number
Buys a phone number for your company and makes it the number your SMS is sent from. This is a purchase and it bills your company.
Authorization
AuthorizationstringrequiredBody
application/json
phoneNumberstringrequiredThe number to buy, as listed by the available numbers endpoint. Must be a valid phone number.
Response
200 · Your company, with the new number on it.
idstringYour company.
namestringThe company's name.
emailstringThe company's contact address.
phoneNumberstringThe company's phone number, formatted for reading. This is the number just bought.
languagestringThe company's default language as an ISO 639-1 code.
timeZoneInfostringThe company's timezone, for example America/Boise. Every timestamp in this API is expressed in it.
addressobjectThe company's address.
subUrlstringThe company's slug in its MagicDoor URLs.
customDomainstringThe company's own domain, when it has set one up.
publicUrlstringThe company's public site.
onboardedbooleanWhether the company has finished onboarding.
onboardingStatusstringHow far through onboarding it is.
businessModeenum<string>Whether the company manages rentals or an association.
featuresenum<string>[]The optional features switched on for the company.
trialAccountUntilstring · date-timeWhen the trial ends. Absent on a paid account.
closedSincestring · date-timeWhen the company was closed. Absent while it is open.
createdstring · date-timeWhen the company was created.
401 · The access token is missing, expired, or not valid.
422 · The number could not be bought — it was taken, the carrier refused it, or the company is not able to buy one.
The number is purchased from the carrier as soon as the call succeeds, and it replaces whatever number your company was sending from. There is no confirmation step and no undo through this API.
Buying a number is not enough to start texting on its own. The number also has to clear carrier registration before SMS goes out — check the texting status endpoint until canSend is true.