POST
/
sessions
curl --request POST \
  --url https://api.pingnetwork.io/customer/v2/sessions \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "client_id": "<string>",
  "connection_type": "vless",
  "zone": "<string>",
  "reusable": true
}'
{
  "id": "<string>",
  "connection_type": "vless",
  "zone": "<string>",
  "configuration": {},
  "configuration_link": "<string>",
  "reusable": true,
  "created_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Body

application/json
Session creation request
client_id
string
required

Client identifier

connection_type
enum<string>
required
Available options:
vless
zone
string
required

Zone code (matching the 'code' field from the /zones endpoint)

reusable
boolean

Whether the session can be reused for multiple connections

Response

201
application/json
Session created successfully
id
string

Unique session identifier

connection_type
enum<string>
Available options:
vless
zone
string
configuration
object

Connection configuration details

VLESS configuration link

reusable
boolean

Whether the session can be reused for multiple connections

created_at
string