Documentation Index
Fetch the complete documentation index at: https://docs.medera.info/llms.txt
Use this file to discover all available pages before exploring further.
Option 1 — Clerk JWT (end-user)
End-user sign-in is handled by Clerk on the frontend. After sign-in, the Clerk JWT is automatically attached to every request the frontend makes.Option 2 — Developer API Key (server-to-server)
For backend integrations and batch jobs, use a Developer API Key created in the Console under Settings → Developer API Keys.| Scope | Allows |
|---|---|
read:data | Read non-PHI resources (workflows, deployments, templates) |
write:data | Create / update non-PHI resources |
execute:agents | Trigger agent / workflow executions |
read:phi | Read PHI (patients, sessions) — requires active BAA |
write:phi | Write PHI — requires active BAA |
admin | Admin operations (separate issuer) |
Option 3 — Internal service-to-service
The AI Services (port 8000) and backend (port 3001) communicate using a tenant-scopedX-Service-Key header. This is for internal use; do not expose to clients.