PhoneNumbers
List the phone numbers that can be ordered
The countries a phone number can be ordered in, monthly. Quote one
with POST …/number-orders/quote. An API key may order for its own
workspace; a signed-in user needs the admin role.
GET
/
v1
/
workspaces
/
{workspaceId}
/
number-orders
/
catalog
List the phone numbers that can be ordered
curl --request GET \
--url https://api.lusor.ai/v1/workspaces/{workspaceId}/number-orders/catalog \
--header 'X-Api-Key: <api-key>'const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://api.lusor.ai/v1/workspaces/{workspaceId}/number-orders/catalog', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.lusor.ai/v1/workspaces/{workspaceId}/number-orders/catalog"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"countries": [
{
"country": "US",
"label": "<string>",
"term": "monthly"
}
]
}
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}Was this page helpful?
⌘I
List the phone numbers that can be ordered
curl --request GET \
--url https://api.lusor.ai/v1/workspaces/{workspaceId}/number-orders/catalog \
--header 'X-Api-Key: <api-key>'const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://api.lusor.ai/v1/workspaces/{workspaceId}/number-orders/catalog', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.lusor.ai/v1/workspaces/{workspaceId}/number-orders/catalog"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"countries": [
{
"country": "US",
"label": "<string>",
"term": "monthly"
}
]
}
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}
