Session Panel API

REST · JSON · Bearer auth
v1
Base URL http://185.14.92.231/api/v1

Authentication #

Every request needs an API key. Keys are created in the panel under API keys — the full key is shown once at creation. Send it as a bearer token:

Authorization: Bearer sess_<your key>

A missing or unknown key returns 401. A revoked key returns 403. Keys belong to one panel account and share its quotas, history and billing.

Quotas & pricing #

ActionPriceFree quota / 24h
claim, bulk$0.10 per sessiondaily plan limit applies
recover$0.10 after quota20 — only for accounts delivered in the last 24h
replacement$0.10 after quota20
refreshes/buy$0.10 per refreshprepaid credits, never expire
unlimited planper-customer daily priceall refreshes free, no 24h rule

Usage is invoiced: charges accumulate as amount owed and never block a request. Responses include the running total in billing.owed_cents (USD cents).

Refresh payment order: unlimited plan (if enabled for the account, billed once per rolling 24h) → daily free quota → prepaid credits (quotas.refreshes_extra in /usage) → invoiced $0.10. Refresh responses report which was used in source: plan, daily, credit or billed.

Session holds expire 24h after the holder's last claim or refresh — untouched sessions return to the stock pool and may be claimed by someone else (recover then returns 409). Accounts on an unlimited-refresh plan hold their sessions indefinitely.

Refresh responses carry quota headers: X-RateLimit-Limit, X-RateLimit-Used. Usage beyond the free quota is billed, not blocked.

Endpoints #

POST /session/claim

Claims one fresh session. Billed $0.10. Counts toward the daily plan limit.

Request
POST /api/v1/session/claim
Authorization: Bearer sess_...
200 Response
{
  "session": {
    "account_id": 680,
    "username": "Kingflipz",
    "uuid": "f06aaefa-2e14-499b-a341-bf773adcfbca",
    "session_token": "eyJraWQi...",
    "expires_at": 1794000000
  },
  "billing": { "charged_cents": 10, "owed_cents": 320 }
}
POST /session/bulk

Claims up to 100 sessions in one call. Partial delivery is normal — the daily plan limit and stock bound the result. Every delivered session is billed.

Request
POST /api/v1/session/bulk
Authorization: Bearer sess_...
Content-Type: application/json

{ "amount": 5 }
200 Response
{
  "delivered": 5,
  "requested": 5,
  "sessions": [ { "account_id": 1129, "username": "Zawliet", "uuid": "...", "session_token": "eyJ...", "expires_at": 1794000000 } ],
  "billing": { "charged_cents": 50, "owed_cents": 370 }
}
POST /session/recover

Refreshes the session for a username linked to the key owner. Free within the 24h quota, then $0.10. The token is re-issued through Microsoft OAuth before it is returned.

Request
POST /api/v1/session/recover
Authorization: Bearer sess_...
Content-Type: application/json

{ "username": "Kingflipz" }

Free if the account was delivered to this account within the last 24h; otherwise billed. The response also sets fresh_delivery and free. Unknown username 404, username never linked to the key owner 404 not_your_account, session held by another customer 409.

POST /session/replacement

Returns a new session, ignoring the daily plan limit. Free within the 20/24h quota, then $0.10. Same response shape as claim plus free.

POST /session/replace

Replaces one specific account: the old account is banned and permanently removed from the stock rotation, and a fresh session is delivered in its place. Billed like a replacement (free within the 20/24h quota, then $0.10).

Request
POST /api/v1/session/replace
Authorization: Bearer sess_...
Content-Type: application/json

{ "account_id": 260 }
200 Response
{
  "replaced": { "account_id": 260, "username": "Julli2506" },
  "session": { "account_id": 1129, "username": "Zawliet", "uuid": "...", "session_token": "eyJ...", "expires_at": 1794000000 },
  "free": true,
  "billing": { "charged_cents": 0, "owed_cents": 100 }
}

Unknown or not-yours account 404, already replaced 409 already_replaced, no substitute in stock 503.

POST /refreshes/buy

Prepays extra refreshes at $0.10 each. Credits never expire and are consumed after the daily free quota runs out — before any per-refresh billing.

Request
POST /api/v1/refreshes/buy
Authorization: Bearer sess_...
Content-Type: application/json

{ "amount": 10 }
200 Response
{
  "added": 10,
  "credits": 10,
  "billing": { "charged_cents": 100, "owed_cents": 420 }
}

The remaining balance is also reported in GET /usage as quotas.refreshes_extra.

GET /usage

Key, license, quotas, billing and stock state in one call.

200 Response
{
  "user_id": "1262025288846413845",
  "license": { "daily_limit": 5, "limit_bypass": false, "expires_at": 1794000000 },
  "usage": { "claims_today": 2, "claims_total": 31 },
  "quotas": {
    "price_per_session_cents": 10,
    "refreshes_used_24h": 3, "refreshes_free_24h": 20, "refreshes_free_left": 17, "refreshes_extra": 10,
    "replacements_used_24h": 0, "replacements_free_24h": 20, "replacements_free_left": 20
  },
  "billing": { "owed_cents": 310, "paid_cents": 200 },
  "stock": { "available": 14, "claimed": 17, "total_active": 31 }
}
GET /stock

Available, claimed and total active session counts.

{ "available": 98, "claimed": 80, "total_active": 178, "total_refreshable": 178 }

Errors #

All errors share one shape:

{ "error": { "code": "no_stock", "message": "All sessions are currently claimed..." } }
StatusCodeMeaning
400invalid_amount / invalid_user_idMalformed input
401missing_key / invalid_keyNo, or unknown, API key
403key_revoked / no_license / license_expiredKey or plan inactive
404account_not_found / not_your_account / key_not_foundUnknown username, account or key
409session_unavailableSession currently held by another customer
429daily_limit_reachedDaily plan limit exhausted
503no_stock / refresh_failed / maintenanceEmpty stock, refresh failure, or the service is down for maintenance

Session Panel API v1 · Panel sign in