Devices
List the workspace's Persistent IPs for a phone
The workspace’s active Persistent IPs, the phones using each, and
which one this phone uses (current, a proxyId, or null). Pass a
proxyId to POST …/static-ip to put this phone on that IP.
GET
/
v1
/
workspaces
/
{workspaceId}
/
devices
/
{deviceId}
/
static-ip
/
owned
List the workspace's Persistent IPs for a phone
curl --request GET \
--url https://api.lusor.ai/v1/workspaces/{workspaceId}/devices/{deviceId}/static-ip/owned \
--header 'X-Api-Key: <api-key>'const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://api.lusor.ai/v1/workspaces/{workspaceId}/devices/{deviceId}/static-ip/owned', 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}/devices/{deviceId}/static-ip/owned"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"current": 123,
"ips": [
{
"proxyId": 123,
"id": "<string>",
"ipAddress": "<string>",
"country": "<string>",
"expiresAt": "<string>",
"renews": true,
"current": true,
"phones": [
{
"id": "<string>",
"name": "<string>"
}
]
}
]
}
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}Authorizations
ApiKeyBearerAuth
Path Parameters
Was this page helpful?
⌘I
List the workspace's Persistent IPs for a phone
curl --request GET \
--url https://api.lusor.ai/v1/workspaces/{workspaceId}/devices/{deviceId}/static-ip/owned \
--header 'X-Api-Key: <api-key>'const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://api.lusor.ai/v1/workspaces/{workspaceId}/devices/{deviceId}/static-ip/owned', 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}/devices/{deviceId}/static-ip/owned"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"current": 123,
"ips": [
{
"proxyId": 123,
"id": "<string>",
"ipAddress": "<string>",
"country": "<string>",
"expiresAt": "<string>",
"renews": true,
"current": true,
"phones": [
{
"id": "<string>",
"name": "<string>"
}
]
}
]
}
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}
