Back to API Overview

Admin

Admin-only endpoints for platform management

Endpoints (6)

GET/api/admin/users
Admin Only

List All Users

Get all users with their statistics (admin only)

POST/api/admin/users
Admin Only

Create User

Create a user with a default project (admin only). Validation failures answer 400 with { success: false, error: 'Validation failed', details } rather than the standard error object.

DELETE/api/admin/users
Admin Only

Delete User

Delete a user by id (admin only). Admin users cannot be deleted through the API.

GET/api/admin/logs
Admin Only

Application Logs

Stored AppLog rows, newest first (admin only) — the first-party log store that outlives Fly's ~100-line buffer, so 'what happened at 03:00' is answerable a day later. Cursor-paginated: pass the previous page's nextCursor.

GET/api/admin/metrics/summary
Admin Only

Get Metrics Summary

Get aggregated platform metrics (admin only). Note: Response does not use standard wrapper format.

GET/api/admin/metrics/prometheus
Admin Only

Prometheus Query

Proxy Prometheus queries (admin only)