Skip to content

Get the caller's organization quota

GET
/v1/me/org-quota
curl --request GET \
--url https://api.overwatch.weareheavy.dev/v1/me/org-quota \
--header 'Authorization: Bearer <token>'

How many organizations the caller belongs to versus their cap, so a dashboard can show a “limit reached” state before an attempted create. Session-only.

The caller’s organization quota.

Media typeapplication/json
object
count
required
integer
max
required
integer
canCreate
required

Whether creating another organization would be allowed.

boolean
latestRequest
required
One of:

A compact view of the latest limit-increase request.

object
id
required
string format: uuid
requestedLimit
required
integer
status
required
string
Allowed values: pending approved rejected
decisionNote
required

The operator’s note on the decision, if any.

string | null
createdAt
required

Epoch ms.

integer
Example
{
"latestRequest": {
"status": "pending"
}
}

Missing or invalid credentials.

Media typeapplication/json
object
error
required

A human-readable error message.

string
Example
{
"error": "invalid api key"
}

A dashboard session is required (API-key callers are rejected), or the session’s role does not allow this action.

Media typeapplication/json
object
error
required

A human-readable error message.

string
Example
{
"error": "a dashboard session is required"
}