Skip to main content
GET
/
api
/
v2
/
sessions
/
quota
Get quota
curl --request GET \
  --url https://agp.eu.hcompany.ai/api/v2/sessions/quota \
  --header 'Authorization: Bearer <token>'
{
  "scope": "<string>",
  "limit": 123,
  "active": 123,
  "available": 123
}
Returns the quota status for the authenticated user’s concurrent-session limit.

Response

scope
string
required
Quota scope. Indicates the level the limits apply at (e.g. user).
limit
integer
required
Maximum number of concurrent sessions allowed.
active
integer
required
Number of sessions currently active (not in a terminal state).
available
integer
required
Remaining concurrent slots (limit - active).

Examples

curl https://agp.eu.hcompany.ai/api/v2/sessions/quota \
  -H "Authorization: Bearer $H_API_KEY"
Response
{
  "scope": "user",
  "limit": 10000,
  "active": 0,
  "available": 10000
}