Devices
Quote buying a Persistent IP
Quotes one more Persistent IP in country (GET /internet/locations
persistent) on the workspace’s Lusor Phone plan. One IP per paid
Lusor Phone is included (free: true, nothing billed); any other is
billed monthly from today, prorated (dueToday, totalAtRenewal,
USD cents). Nothing is charged. The quote expires at expiresAt
(Unix seconds); confirm it with POST /internet/persistent-ips.
The workspace is the API key’s own (or ?workspaceId=). A signed-in
user needs the admin role.
Retries: safe: a preview only quotes, it changes nothing.
POST
/
v1
/
internet
/
persistent-ips
/
preview
Quote buying a Persistent IP
curl --request POST \
--url https://api.lusor.ai/v1/internet/persistent-ips/preview \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"country": "<string>"
}
'const options = {
method: 'POST',
headers: {'X-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({country: '<string>'})
};
fetch('https://api.lusor.ai/v1/internet/persistent-ips/preview', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.lusor.ai/v1/internet/persistent-ips/preview"
payload = { "country": "<string>" }
headers = {
"X-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"data": {
"previewId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"quantity": 123,
"currency": "usd",
"free": true,
"dueToday": 123,
"totalAtRenewal": 123,
"expiresAt": 123,
"subtotal": 123,
"tax": 123,
"creditToday": 123,
"discountToday": 123,
"discountAtRenewal": 123,
"subtotalAtRenewal": 123,
"taxAtRenewal": 123
}
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}Authorizations
ApiKeyBearerAuth
Query Parameters
Was this page helpful?
⌘I
Quote buying a Persistent IP
curl --request POST \
--url https://api.lusor.ai/v1/internet/persistent-ips/preview \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"country": "<string>"
}
'const options = {
method: 'POST',
headers: {'X-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({country: '<string>'})
};
fetch('https://api.lusor.ai/v1/internet/persistent-ips/preview', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.lusor.ai/v1/internet/persistent-ips/preview"
payload = { "country": "<string>" }
headers = {
"X-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"data": {
"previewId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"quantity": 123,
"currency": "usd",
"free": true,
"dueToday": 123,
"totalAtRenewal": 123,
"expiresAt": 123,
"subtotal": 123,
"tax": 123,
"creditToday": 123,
"discountToday": 123,
"discountAtRenewal": 123,
"subtotalAtRenewal": 123,
"taxAtRenewal": 123
}
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}
