Phone Number
Buy a phone number
Changed onBuys a number from the carrier for this project: the one named by e164, or one Roark picks to match autoPick (trying the next match if the carrier has just sold one). Free inside the plan allowance; past it, the first month of rent is charged now and monthly after that.
post/v1/phone-number
Request
- Base URLhttps://api.roark.ai
- URLhttps://api.roark.ai/v1/phone-number
- AuthHTTP bearer
Request body
Example request
{
"e164": "+14155550123",
"autoPick": {
"country": "US",
"numberType": "LOCAL",
"areaCode": "415",
"contains": "555"
},
"country": "US",
"expectMonthlyRentMicros": 2000000
}Response
The purchased phone number
Example response
{
"data": {
"e164": "+14155550123"
}
}Changes
- info
added the new optional request property
- info
added the new optional request property
- info
the request property
became optional
- info
- info
endpoint added
- info