Curae Platform
Get started

Authentication & environments

API keys, test vs live environments, and the server-side secret rules the SDK enforces.

Authentication & environments

The Platform API authenticates with CuraeAI-owned API keys on a server-to-server channel.

Authorization: Bearer cae_live_…

Key kinds

PrefixModeBase URL
cae_test_Test modehttps://api.curaeai.com (or http://localhost:3000)
cae_live_Livehttps://api.curaeai.com

Both kinds use the same host and the same data. There is no separate sandbox host or synthetic dataset; what a test key may reach is below.

What a test key can do today

Test keys can manage webhooks with the required scopes. The Connect catalog is public and does not require a key. On the SDK surface, an approved app can also use a test key for connection lifecycle, resource searches and records exports when the key and the person's connection authorize the operation. These can return real PHI; test mode does not create a synthetic patient or isolate a separate clinical dataset.

The Platform authentication boundary strips PHI scopes from test keys by default. The SDK gateway uses connection authorization instead and does not apply that scope restriction. App approval, connection status, consent, scope and subject-lifecycle checks still apply. A missing key scope returns SCOPE_INSUFFICIENT; a connection scope refusal can return insufficient_scope.

Keys are secrets

Never put a key in a browser bundle, mobile app, log line, screenshot, or source control. Browser UI integrates through @curaeai/platform-sdk/react plus a backend proxy you host. The SDK's secret-bearing entry points (createPlatformClient, the webhook sign/verify helpers) fail closed in browser-like runtimes, and browser-aware bundlers resolve the root//server subpaths to a deny module.

import { createPlatformClient } from '@curaeai/platform-sdk';

const client = createPlatformClient({
  apiKey: process.env.CURAEAI_PLATFORM_API_KEY!, // server-side only
  baseUrl: process.env.CURAEAI_BASE_URL!,
  apiVersion: '2026-04-15',
});

Going live

Live access is granted by a Curae review of your app, not self-served. The review records the Developer Agreement revision you accepted, your verified legal entity and domain, your identity requirements, that your product serves adults only, and the app name and support link people will see on the Curae Connect consent screen. That screen names your app by the reviewed name and the legal entity Curae verified, as <app> by <verified legal entity>, and the Sharing Authorization a person signs there names it the same way. The support link must be on your verified domain.

Until your app is approved, minting a cae_live_ key and starting Curae Connect (with either kind of key — it reaches real people either way) answer 403 LIVE_ACCESS_NOT_APPROVED. Once approved, mint a cae_live_ key in Curae Platform with the PHI scopes your product needs. Rotate keys from Curae Platform; revoked keys stop authenticating immediately. If Curae revokes the approval, every live key of the app stops authenticating on its next request. On the resource and records routes under /api/sdk/v1/*, where a test key reads data through a person's connection, an app without a current approval is refused with either kind of key (401 SDK_AUTH_REQUIRED).

Next

On this page