Skip to main content

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.

Errors follow a consistent JSON shape:
{
  "error": {
    "code": "rls_denied",
    "message": "Access to resource is denied by tenant policy.",
    "request_id": "req_abc123"
  }
}

Status codes

CodeMeaning
400Invalid request — see error.code
401Unauthenticated — token / API key missing or expired
403Forbidden — scope or RLS denial
404Not found (or RLS-hidden)
409Conflict — lock_version mismatch, duplicate idempotency key
422Validation failure
429Rate limit
500Internal error
503Service unavailable — see /health/dependencies

Common error codes

CodeWhen
invalid_requestSchema validation failure
auth_expiredToken expired
scope_deniedToken lacks required scope
rls_deniedCross-tenant access attempted
phi_consent_requiredPHI access blocked by missing consent
crisis_handoff_requiredCrisis language detected — agent path terminated
subscription_inactiveStripe subscription not active
agent_limit_exceededTenant agent limit reached
idempotency_conflictlock_version mismatch
rate_limitRPM or burst exceeded
circuit_openExternal service circuit breaker is open