Admin API
Privileged namespace. Never reachable from a consumer client.
Endpoints
GET /api/v1/admin/users
GET /api/v1/admin/users/:id
GET /api/v1/admin/drivers
GET /api/v1/admin/vehicles
GET /api/v1/admin/journeys
GET /api/v1/admin/bookings
GET /api/v1/admin/incidents
GET /api/v1/admin/compliance-events
GET /api/v1/admin/audit-logs
GET /api/v1/admin/compliance/rules
PATCH /api/v1/admin/compliance/rules/:idRoles
| Role | Scope |
|---|---|
SUPER_ADMIN | Role assignment, policy activation, full access |
COMPLIANCE_ADMIN | Compliance rules, events, decisions |
SAFETY_ADMIN | Incidents, emergency review, suspensions arising from safety |
SUPPORT_AGENT | User lookups, support actions, account restrictions |
ANALYST | Reporting and analytics — read-only |
Least privilege applies at the endpoint level, not just the page level. An ANALYST has no route that can mutate a rule.
Operational scope
The admin surface covers live journeys, the verification queue, the matching queue, the compliance queue, incidents, monitoring, metrics and reporting.
Auditing
Every administrative operation is audited.
Account restriction or suspension, verification override, rule configuration changes, policy activation, event resolution and regulatory export all write to audit_logs with actor, action, resource, before and after values, and a hashed IP.
An administrative action with no audit record did not happen. This is what makes the audit trail admissible to an authority rather than merely internally useful.
Restricted to Strapi
Content, reference data and policy authoring belong to Strapi, not to this namespace. Policy activation is an administrative act and appears here; policy authoring is a CMS act and does not.
See Strapi Overview.
