The calling org's plan limits and current usage
What the org's plan allows and how much of it is in use, so a client can tell someone they're at a limit before an action fails rather than after.
Each feature carries the same key that a 402 names in its feature field. A
limit of -1 means unlimited. used is counted the same way the limit is
enforced, so used >= limit means the next create will be refused.
Read-only; any member token with read:apis can call it.
Requires scope read:apis.
Authorization
BearerAuth AuthorizationBearer <token>
Bearer token. Either a Personal Access Token (pat_...) or a Service Account
Token (sat_...). Issued via the Spec0 dashboard or /me/personal-access-tokens.
In: header
Response Body
application/json
application/json
application/json
curl -X GET "https://app.spec0.io/api/v1/public/orgs/entitlements"{
"plan": "FREE",
"features": [
{
"key": "max_internal_apis",
"limit": 5,
"used": 2,
"enabled": true
}
]
}{
"error": "string",
"message": "string"
}{
"status": 0,
"title": "string",
"detail": "string",
"type": "string",
"instance": "string"
}Was this helpful?