Skip to content

Organizations, Usage & License

These endpoints provide access to organizational resources, usage metrics, and license information.

GET /v1/organizations

Returns the organizations accessible to the authenticated identity.

  • API key: Returns the single organization the key belongs to.
  • JWT: Returns all organizations the user is a member of.

Scope required (API key): org:read

{
"data": [
{
"id": "org-uuid",
"name": "Ananke Research",
"slug": "ananke-research",
"avatarUrl": "https://...",
"role": "owner",
"createdAt": "2025-01-10T08:00:00.000Z"
}
]
}
FieldTypeDescription
iduuidOrganization ID
namestringDisplay name
slugstringURL-friendly identifier
avatarUrlstring | nullAvatar image URL
rolestringCaller’s role: "owner", "member", or "api_key"
createdAtstringISO 8601 timestamp
GET /v1/organizations/{id}

Returns details for a single organization, including member count.

Scope required (API key): org:read

ParameterTypeDescription
iduuidOrganization ID
{
"id": "org-uuid",
"name": "Ananke Research",
"slug": "ananke-research",
"avatarUrl": "https://...",
"memberCount": 5,
"createdAt": "2025-01-10T08:00:00.000Z"
}
StatusCodeWhen
403FORBIDDENCaller is not a member of this organization
404NOT_FOUNDOrganization does not exist
GET /v1/organizations/{orgId}/usage/summary

Returns usage metrics for the current billing period.

Scope required (API key): usage:read

ParameterTypeDescription
orgIduuidOrganization ID
{
"simulationRuns": 142,
"apiCalls": 1830,
"tickCount": 284000,
"limits": {
"maxSimulationRuns": 1000,
"maxTicksPerRun": 10000
},
"periodStart": "2025-06-01T00:00:00.000Z",
"periodEnd": "2025-07-01T00:00:00.000Z"
}
FieldTypeDescription
simulationRunsnumberSimulations created this period
apiCallsnumberTotal API calls this period
tickCountnumberTotal ticks computed this period
limitsobjectCurrent plan limits
periodStartstringBilling period start (ISO 8601)
periodEndstringBilling period end (ISO 8601)
GET /v1/organizations/{orgId}/usage/history

Returns usage metrics across recent billing periods.

Scope required (API key): usage:read

ParameterTypeDescription
orgIduuidOrganization ID
ParameterTypeDefaultDescription
periodsinteger6Number of billing periods to return (1–12)
{
"data": [
{
"periodStart": "2025-06-01T00:00:00.000Z",
"periodEnd": "2025-07-01T00:00:00.000Z",
"simulationRuns": 142,
"apiCalls": 1830,
"tickCount": 284000
},
{
"periodStart": "2025-05-01T00:00:00.000Z",
"periodEnd": "2025-06-01T00:00:00.000Z",
"simulationRuns": 98,
"apiCalls": 1204,
"tickCount": 196000
}
]
}
GET /v1/organizations/{orgId}/license

Returns the current license and subscription details for an organization.

Scope required (API key): org:read

ParameterTypeDescription
orgIduuidOrganization ID
{
"id": "lic-uuid",
"tier": "professional",
"status": "active",
"limits": {
"maxSimulationRuns": 1000,
"maxTicksPerRun": 10000,
"maxConcurrentSSE": 5
},
"currentPeriodStart": "2025-06-01T00:00:00.000Z",
"currentPeriodEnd": "2025-07-01T00:00:00.000Z",
"hasStripeSubscription": true
}
FieldTypeDescription
iduuidLicense ID
tierstring"community", "professional", "enterprise", or "strategic"
statusstringLicense status
limitsobjectTier-specific limits
currentPeriodStartstring | nullCurrent billing period start
currentPeriodEndstring | nullCurrent billing period end
hasStripeSubscriptionbooleanWhether a Stripe subscription is attached
StatusCodeWhen
403FORBIDDENCaller does not have access to this organization
404NOT_FOUNDNo license found for this organization