Devices
Buy the quoted Persistent IP
Confirms a quote from POST /internet/persistent-ips/preview: the
quoted amount is charged to the card on file and the IP is bought.
Answers 202 at once; the purchase takes seconds to minutes. Poll
GET /internet/persistent-ips/operations/{operationId} (the
previewId) for its outcome. A failed purchase is never charged, or
its charge is reversed (reversed).
Retries: safe without an Idempotency-Key: the same previewId is the same single purchase and is never charged twice.
POST
/
v1
/
internet
/
persistent-ips
Buy the quoted Persistent IP
curl --request POST \
--url https://api.lusor.ai/v1/internet/persistent-ips \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"previewId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"country": "<string>"
}
'const options = {
method: 'POST',
headers: {'X-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({previewId: '3c90c3cc-0d44-4b50-8888-8dd25736052a', country: '<string>'})
};
fetch('https://api.lusor.ai/v1/internet/persistent-ips', 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"
payload = {
"previewId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"country": "<string>"
}
headers = {
"X-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"data": {
"operationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "started"
}
}{
"error": "<string>",
"message": "<string>"
}{
"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
Body
application/json
Was this page helpful?
⌘I
Buy the quoted Persistent IP
curl --request POST \
--url https://api.lusor.ai/v1/internet/persistent-ips \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"previewId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"country": "<string>"
}
'const options = {
method: 'POST',
headers: {'X-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({previewId: '3c90c3cc-0d44-4b50-8888-8dd25736052a', country: '<string>'})
};
fetch('https://api.lusor.ai/v1/internet/persistent-ips', 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"
payload = {
"previewId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"country": "<string>"
}
headers = {
"X-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"data": {
"operationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "started"
}
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}
