List stateful sessions
curl --request GET \
--url https://api.platform.soax.com/v1/proxy/packages/{package_id}/stateful-sessions \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.platform.soax.com/v1/proxy/packages/{package_id}/stateful-sessions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.platform.soax.com/v1/proxy/packages/{package_id}/stateful-sessions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.platform.soax.com/v1/proxy/packages/{package_id}/stateful-sessions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.platform.soax.com/v1/proxy/packages/{package_id}/stateful-sessions"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.platform.soax.com/v1/proxy/packages/{package_id}/stateful-sessions")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.platform.soax.com/v1/proxy/packages/{package_id}/stateful-sessions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "7c1e9a52-3b4d-4f6a-9e8b-2d5c0a1f6b3e",
"proxy_id": "b2f0c3d4-e5a6-4b7c-8d9e-0f1a2b3c4d5e",
"name": "checkout1",
"status": "enabled",
"ruleset": {
"network_type": "wifi",
"country": "us",
"region": "california",
"city": null,
"isp": null,
"asn": null,
"zip": null,
"lookalike": false,
"rotation_trigger": "timed:300",
"error_handling": "replace"
},
"exit_ip": "203.0.113.42",
"network_type": "wifi",
"country": "us",
"region": "california",
"city": "los_angeles",
"isp": "charter_communications",
"asn": "20001",
"zip": null,
"bound_since": "2026-10-27T10:15:04Z",
"port": 1337,
"created_at": "2026-10-27T10:15:03Z",
"updated_at": "2026-10-27T10:15:04Z",
"connection_string": {
"uri": "stateful-checkout1:aB3dE5fG7h@proxy.soax.com:1337",
"username": "stateful-checkout1",
"password": "aB3dE5fG7h",
"host": "proxy.soax.com",
"port": 1337
}
}
],
"has_more": false,
"next_cursor": null
}{
"detail": "Invalid API key"
}{
"detail": "Missing required scope: proxy:packages:read"
}{
"detail": "Package not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"error": "Rate limit exceeded: 5 per 1 second"
}Stateful Sessions
List stateful sessions
List the sessions on a package, newest first, with cursor pagination. Each page returns has_more and next_cursor; pass next_cursor as cursor to get the next page. Deleted sessions are never listed.
Requires the proxy:packages:read scope.
GET
/
v1
/
proxy
/
packages
/
{package_id}
/
stateful-sessions
List stateful sessions
curl --request GET \
--url https://api.platform.soax.com/v1/proxy/packages/{package_id}/stateful-sessions \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.platform.soax.com/v1/proxy/packages/{package_id}/stateful-sessions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.platform.soax.com/v1/proxy/packages/{package_id}/stateful-sessions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.platform.soax.com/v1/proxy/packages/{package_id}/stateful-sessions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.platform.soax.com/v1/proxy/packages/{package_id}/stateful-sessions"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.platform.soax.com/v1/proxy/packages/{package_id}/stateful-sessions")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.platform.soax.com/v1/proxy/packages/{package_id}/stateful-sessions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "7c1e9a52-3b4d-4f6a-9e8b-2d5c0a1f6b3e",
"proxy_id": "b2f0c3d4-e5a6-4b7c-8d9e-0f1a2b3c4d5e",
"name": "checkout1",
"status": "enabled",
"ruleset": {
"network_type": "wifi",
"country": "us",
"region": "california",
"city": null,
"isp": null,
"asn": null,
"zip": null,
"lookalike": false,
"rotation_trigger": "timed:300",
"error_handling": "replace"
},
"exit_ip": "203.0.113.42",
"network_type": "wifi",
"country": "us",
"region": "california",
"city": "los_angeles",
"isp": "charter_communications",
"asn": "20001",
"zip": null,
"bound_since": "2026-10-27T10:15:04Z",
"port": 1337,
"created_at": "2026-10-27T10:15:03Z",
"updated_at": "2026-10-27T10:15:04Z",
"connection_string": {
"uri": "stateful-checkout1:aB3dE5fG7h@proxy.soax.com:1337",
"username": "stateful-checkout1",
"password": "aB3dE5fG7h",
"host": "proxy.soax.com",
"port": 1337
}
}
],
"has_more": false,
"next_cursor": null
}{
"detail": "Invalid API key"
}{
"detail": "Missing required scope: proxy:packages:read"
}{
"detail": "Package not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"error": "Rate limit exceeded: 5 per 1 second"
}Authorizations
API key secret (starts with s_live_). Create keys in the dashboard under Settings → API keys, or via POST /v1/api-keys/. Send it as Authorization: Bearer <secret>.
Path Parameters
The ID of the proxy package (UUID format)
Pattern:
^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$Query Parameters
Required range:
1 <= x <= 100Available options:
enabled, disabled Case-insensitive search. Digits only match a session whose port starts with them (200 finds ports 2000-2009, not 3200) or whose name contains them; any other text matches a session whose ID or name contains it.
Was this page helpful?