API Reference Overview
OpenChat exposes server routes underapps/web/src/routes/api.
Endpoint Families
- Model catalog:
/api/models - Credential management:
/api/provider-credentials,/api/openrouter-key - Presence:
/api/typing - Workflow actions:
/api/workflow/*
Shared Behavior
- Most write endpoints enforce same-origin checks.
- Authenticated requests are tied to Convex user identity.
- Rate limiting is applied to sensitive operations.
- Workflow endpoints can run inline locally and queued in production.