Skip to main content
POST
/
cabinet
/
subscription
/
traffic
Purchase Traffic
curl --request POST \
  --url https://api.example.com/cabinet/subscription/traffic \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "gb": 50000
}'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>",
      "input": "<unknown>",
      "ctx": {}
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Request to purchase additional traffic.

gb
integer
required

GB to purchase (0 = unlimited)

Required range: 0 <= x <= 100000

Response

Successful Response