Get the caller's organization quota
GET
/v1/me/org-quota
const url = 'https://api.overwatch.weareheavy.dev/v1/me/org-quota';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “ Authorizations ”Responses
Section titled “ Responses ”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
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"}