Admin


GET /admin/orgs

List all organizations (super-admin)

Super-admin only. Cross-tenant org list with member/project counts. Excludes soft-deleted orgs.

Auth: Bearer token required

Responses

StatusDescriptionSchema
200All organizationsAdminOrgList

GET /admin/orgs/{id}

Get organization detail (super-admin)

Super-admin only. Org fields plus member and project lists.

Auth: Bearer token required

Path parameters

NameTypeDescription
idstring

Responses

StatusDescriptionSchema
200Organization detailAdminOrgDetail
404Organization not foundError

POST /admin/orgs/{id}/suspend

Suspend an organization (super-admin)

Super-admin only. Sets suspended_at = now(). Idempotent. Audited in the same transaction.

Auth: Bearer token required

Path parameters

NameTypeDescription
idstring

Responses

StatusDescriptionSchema
200SuspendedAdminOrgSuspendResult
404Organization not foundError

POST /admin/orgs/{id}/unsuspend

Unsuspend an organization (super-admin)

Super-admin only. Clears suspended_at. Audited in the same transaction.

Auth: Bearer token required

Path parameters

NameTypeDescription
idstring

Responses

StatusDescriptionSchema
200UnsuspendedAdminOrgSuspendResult
404Organization not foundError

GET /admin/audit

List control-plane admin audit events

Super-admin only. Paginated, filterable list of control-plane (super-admin) audit events.

Auth: Bearer token required

Responses

StatusDescriptionSchema
200Admin audit eventsAdminAuditList

GET /admin/metrics/overview

Control-plane metrics overview

Super-admin only. User/session/signup counts for the control-plane dashboard.

Auth: Bearer token required

Responses

StatusDescriptionSchema
200Metrics overviewAdminMetricsOverview

DELETE /admin/projects/{projectId}/nuke

Wipe a project's data (super-admin)

Super-admin only. Wipes all project-scoped runtime + catalog rows for the target project while preserving the project, members, repo links, tokens, and environments. Idempotent.

Auth: Bearer token required

Path parameters

NameTypeDescription
projectIdstring

Responses

StatusDescriptionSchema
200Deleted row counts by tableNukeResult

GET /admin/integrations/github-installations

List all GitHub installations (super-admin)

Super-admin only. Cross-tenant list of every GitHub App installation. No pagination.

Auth: Bearer token required

Responses

StatusDescriptionSchema
200All installationsAdminGithubInstallationList

Schemas

AdminAuditList

FieldTypeDescription
dataobject[](required)
totalinteger(required)
limitinteger(required)
offsetinteger(required)

AdminGithubInstallationList

FieldTypeDescription
dataobject[](required)

AdminMetricsOverview

FieldTypeDescription
totalUsersinteger(required)
signups24hinteger(required)
signups7dinteger(required)
signups30dinteger(required)
activeSessionsinteger(required)
mauApproxinteger(required)

AdminOrgDetail

FieldTypeDescription
idstring(required)
namestring(required)
slugstring(required)
membersobject[](required)
projectsobject[](required)

AdminOrgList

FieldTypeDescription
dataobject[](required)

AdminOrgSuspendResult

FieldTypeDescription
idstring(required)
suspendedAtstring | string | null(required)

Error

FieldTypeDescription
errorstring(required)
codestring

NukeResult

FieldTypeDescription
projectIdstring(required)
rowCountsDeletedobject(required)