API reference / admin
admin
/api/cron/account-deletionsPurge accounts whose 14-day deletion window has elapsed. Bearer CRON_SECRET, not a user session. Refuses to run when the secret is unset.
- Auth:
- none
- Response:
- { data }
/api/cron/demo-freshnessRoll the demo league's stale non-final games forward by whole weeks so the demo door never opens onto a season with nothing coming. Bearer CRON_SECRET, not a user session. Scoped to the authored demo org; idempotent daily.
- Auth:
- none
- Response:
- { data }
/api/v1/admin/statusOrganization dashboard: counts, pending changesets, recent activity
- Auth:
- required (min role: director)
- Response:
- { data }
/api/v1/admin/healthSystem health check: DB, auth, storage status
- Auth:
- required (min role: director)
- Response:
- { data }
/api/v1/admin/auditPaginated audit log with filters
- Auth:
- required (min role: director)
- Query:
- limit, offset, actorId, action, entityType, since, until
- Response:
- { data, pagination }
/api/v1/admin/schemaEntity relationship metadata
- Auth:
- required (min role: director)
- Response:
- { data }