API Surface Summary
510+ endpoints across:
- OpenAI-compatible (60+), incl.
POST /v1/messages/count_tokens(token counting — see Section 38.1) - Provider/Model (40+)
- Gateway Routes (30+)
- User/Team/Org (50+)
- Tenants (25+)
- Billing (15+)
- Compliance/DLP (20+)
- Audit/Analytics (20+)
- Knowledge Extractor (50+)
- MCP Proxy (10+)
- Agent Fleet + Egress Tunnel (25+)
- Auth: OAuth2/OIDC (10+), SAML (4), LDAP (9), SCIM v2 (11), Auth Wizard / SSO admin (15+)
- Webhooks (5+)
- Event Pipeline (8+)
- Schema/WAF/Plugins (25+)
- Backup (5)
- Health/Metrics (5)
- Diagnostics (superadmin):
GET /admin/diagnostics/memory(process RSS / heap / uptime — cheap, pollable),POST /admin/diagnostics/heap-snapshot(writes a V8 heap snapshot under$DATA_DIRfor retrieval viadocker cp). Useful for distinguishing native-memory pressure from JS-heap growth — see Section 40.4.