Doctor Notes Staging API
REST and GraphQL API — auth, users and roles, media, audit, settings.
- Version 0.1.0-SNAPSHOT
- Languages English · မြန်မာ (Accept-Language: my)
Start here
Every endpoint is in the API docs; these are the first calls a client makes.
-
POST
Registeremail, name, password → tokens
/api/v1/auth/register -
POST
Sign in→ access + refresh token
/api/v1/auth/login -
GET
Current userroles, permissions, is_admin
/api/v1/auth/metoken -
GET
Public settingsbranding and feature flags
/api/v1/settings -
POST
Upload mediamultipart file + collection
/api/v1/media/uploadtoken -
POST
GraphQLthe same services as REST
/graphql
AI assistant
Default model: openrouter · openrouter/free (no platform key — users can bring their own). docs/ai in the repository.
-
POST
Start a conversationthen post messages to it
/api/v1/ai/conversationstoken -
POST
Stream a replySSE: start, delta…, done
/api/v1/ai/conversations/{id}/messages/streamtoken -
GET
Modelsplatform + bring-your-own-key
/api/v1/ai/modelstoken -
GET
Usagetokens per model
/api/v1/ai/usage/summarytoken