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.

Client credentials (server-side)

const auth = new MederaAuth({
  clientId: process.env.MEDERA_CLIENT_ID!,
  clientSecret: process.env.MEDERA_CLIENT_SECRET!,
  audience: 'api.medera.ai',
});

Bearer token (already obtained)

const client = new MederaClient({
  accessToken: 'eyJhbGciOi...',
});

End-user JWT (acting on behalf of a clinician)

const client = new MederaClient({
  accessToken: userClerkJwt,
});