Skip to main content
GET
/
customer
/
limits
/
session
Retrieve default session limits
curl --request GET \
  --url https://api.pingnetwork.io/customer/v2/customer/limits/session \
  --header 'Authorization: <api-key>'
import requests

url = "https://api.pingnetwork.io/customer/v2/customer/limits/session"

headers = {"Authorization": "<api-key>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {Authorization: '<api-key>'}};

fetch('https://api.pingnetwork.io/customer/v2/customer/limits/session', 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.pingnetwork.io/customer/v2/customer/limits/session",
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: <api-key>"
],
]);

$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.pingnetwork.io/customer/v2/customer/limits/session"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("Authorization", "<api-key>")

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.pingnetwork.io/customer/v2/customer/limits/session")
.header("Authorization", "<api-key>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.pingnetwork.io/customer/v2/customer/limits/session")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'

response = http.request(request)
puts response.read_body
{
  "id": "sl_123456789",
  "created_at": "2025-02-28T14:30:00.000Z",
  "updated_at": "2025-02-28T14:30:00.000Z",
  "downloaded_bytes": 10737418240,
  "uploaded_bytes": 5368709120,
  "download_speed": 31457280,
  "upload_speed": 20971520
}
{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}
{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}
{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}
{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}
{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}

Authorizations

Authorization
string
header
required

Response

Session limits retrieved successfully

id
string
required

Unique identifier for the session limits

Example:

"sl_123456789"

created_at
string<date-time>
required

Creation timestamp

Example:

"2025-02-28T14:30:00.000Z"

updated_at
string<date-time>
required

Last update timestamp

Example:

"2025-02-28T14:30:00.000Z"

downloaded_bytes
integer<int64>

Download limit in bytes

Example:

10737418240

uploaded_bytes
integer<int64>

Upload limit in bytes

Example:

5368709120

download_speed
integer<int64>

Download speed limit in bytes/s

Example:

31457280

upload_speed
integer<int64>

Upload speed limit in bytes/s

Example:

20971520