Devices
List the countries a Lusor Phone's Internet can exit from
rotating: the countries a phone can be bought in or moved to on the
residential route. persistent: the countries a static IP is sold in.
ISO 3166-1 alpha-2 codes, lowercase. Any other country answers 400
unsupported_country at purchase and on a location change.
GET
/
v1
/
workspaces
/
{workspaceId}
/
internet
/
locations
List the countries a Lusor Phone's Internet can exit from
curl --request GET \
--url https://api.lusor.ai/v1/workspaces/{workspaceId}/internet/locations \
--header 'X-Api-Key: <api-key>'const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://api.lusor.ai/v1/workspaces/{workspaceId}/internet/locations', 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}/internet/locations"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"persistent": [
"<string>"
],
"rotating": [
"<string>"
]
}
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}Was this page helpful?
⌘I
List the countries a Lusor Phone's Internet can exit from
curl --request GET \
--url https://api.lusor.ai/v1/workspaces/{workspaceId}/internet/locations \
--header 'X-Api-Key: <api-key>'const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://api.lusor.ai/v1/workspaces/{workspaceId}/internet/locations', 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}/internet/locations"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"persistent": [
"<string>"
],
"rotating": [
"<string>"
]
}
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}
