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.

For browser apps where the client_secret must not be exposed, the SDK supports a proxy mode:
const client = new MederaClient({
  proxyUrl: 'https://your.app/api/medera-proxy',
});
On your server, implement the proxy:
// Express / Next.js / Bun
app.all('/api/medera-proxy/*', async (req, res) => {
  const auth = new MederaAuth({
    clientId: process.env.MEDERA_CLIENT_ID!,
    clientSecret: process.env.MEDERA_CLIENT_SECRET!,
  });
  const token = await auth.getAccessToken();
  // forward req to api.medera.ai with bearer token
});