Devices
Get a phone's Persistent IP replacement price
Without operation: the price of a replacement (price.usd,
charged to the card on file), how many of the 3 replacements per 24
hours are left, the last 24 hours’ replacements, and the other phones
on the same IP (sharedWith; a replacement moves them all). Nothing
is charged. The replacement itself is made in the Lusor dashboard by a
workspace admin; an API key cannot replace an IP.
With the operation id of a replacement started in the dashboard:
200 once it settled, 202 while in progress (poll again).
An API key may use phones in its own workspace; a signed-in user needs the admin role.
GET
/
v1
/
workspaces
/
{workspaceId}
/
devices
/
{deviceId}
/
static-ip
/
replace
Get a phone's Persistent IP replacement price
curl --request GET \
--url https://api.lusor.ai/v1/workspaces/{workspaceId}/devices/{deviceId}/static-ip/replace \
--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/replace', 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/replace"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"price": {
"usd": 123,
"credits": 123
},
"used": 123,
"limit": 123,
"remaining": 123,
"replacements": [
{
"at": 123,
"charged": true,
"reason": "<string>"
}
],
"sharedWith": [
{
"id": "<string>",
"name": "<string>"
}
]
}
}{
"data": {
"state": "active",
"replaced": true,
"charged": true,
"reason": "<string>",
"static": {
"state": "active",
"country": "<string>",
"publicIp": "<string>",
"expiresAt": "2023-11-07T05:31:56Z"
},
"operationId": "<string>"
}
}{
"error": "validation_error",
"details": {}
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "device_busy",
"currentSessionId": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}Authorizations
ApiKeyBearerAuth
Path Parameters
Was this page helpful?
⌘I
Get a phone's Persistent IP replacement price
curl --request GET \
--url https://api.lusor.ai/v1/workspaces/{workspaceId}/devices/{deviceId}/static-ip/replace \
--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/replace', 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/replace"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"price": {
"usd": 123,
"credits": 123
},
"used": 123,
"limit": 123,
"remaining": 123,
"replacements": [
{
"at": 123,
"charged": true,
"reason": "<string>"
}
],
"sharedWith": [
{
"id": "<string>",
"name": "<string>"
}
]
}
}{
"data": {
"state": "active",
"replaced": true,
"charged": true,
"reason": "<string>",
"static": {
"state": "active",
"country": "<string>",
"publicIp": "<string>",
"expiresAt": "2023-11-07T05:31:56Z"
},
"operationId": "<string>"
}
}{
"error": "validation_error",
"details": {}
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "device_busy",
"currentSessionId": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}
