Quickstart
Browse the public catalog, prepare a server-side connection proxy, and verify a webhook receiver offline.
Quickstart
This starts an integration with a public catalog request and an offline webhook receiver. A working Connect ceremony also needs an approved app, registered return URLs and your authenticated connection-create proxy.
Server-to-server. Keep secret-bearing calls on your backend. Your API key and webhook signing secret are secrets — keep them in the environment, never in a browser bundle, a log, or source control.
1. Get a key
Create a developer account and mint a test key (cae_test_…) in
Curae Platform. A cae_test_ key works
against https://api.curaeai.com or local dev. It reaches real data where a
person's connection authorizes it; see
what a test key can do.
export CURAEAI_BASE_URL="https://api.curaeai.com"
export CURAEAI_PLATFORM_API_KEY="cae_test_…"2. First request — browse the Connect catalog
The catalog is public, non-PHI metadata (brand, EHR platform, FHIR base URL) and requires no API key. It powers your "choose your health system" picker.
curl --fail-with-body \
"$CURAEAI_BASE_URL/api/sdk/v1/catalog/brands?q=health&limit=5" \
-H "CuraeAI-Version: 2026-04-15"With the SDK:
import { createPlatformClient } from '@curaeai/platform-sdk';
const client = createPlatformClient({
apiKey: process.env.CURAEAI_PLATFORM_API_KEY!,
baseUrl: process.env.CURAEAI_BASE_URL!,
apiVersion: '2026-04-15',
});
const { data } = await client.searchCatalogBrands({
query: 'health',
limit: 5,
});
for (const brand of data.brands) console.log(brand.name, brand.platformType);3. Embed Connect
Mount the widget in your frontend. It calls a backend proxy you host, which
authenticates your user and supplies the required appUserId, approved
scope, API key and idempotency key to the connection-create request.
See Connect for the full flow and the separate account-lifecycle proxy.
import { CuraeConnect } from '@curaeai/platform-sdk/react';
<CuraeConnect
connectEndpoint="/api/curaeai/connections"
onSuccess={({ connection }) => console.log('linked', connection.status)}
/>;4. Receive a webhook (and verify it offline)
You can build your receiver before any real delivery: the SDK produces the
same envelope and signing format as the dispatcher. The empty data below
tests signature handling only; use the event contract for production payloads.
import {
buildSignedWebhookRequest,
verifyWebhookSignature,
} from '@curaeai/platform-sdk';
// In your test: build a faithfully-signed delivery…
const { body, headers } = await buildSignedWebhookRequest({
signingSecret: process.env.CURAEAI_WEBHOOK_SIGNING_SECRET!,
event: {
eventType: 'records.export_ready',
eventId: crypto.randomUUID(),
data: {},
},
});
// …and your handler verifies it the same way it verifies production.
await verifyWebhookSignature({
rawBody: body,
signatureHeader: headers['CuraeAI-Signature'],
signingSecret: process.env.CURAEAI_WEBHOOK_SIGNING_SECRET!,
});See Webhooks for the full receiver pattern (raw body → verify → dedupe → ack).
Run the whole thing
If you have access to the CuraeAI repository, its
examples/connect-quickstart project includes the catalog request and an
offline webhook loop. Follow that project's README for installation and
commands.
Next
- Authentication — keys, environments, going live.
- Webhooks — the production receiver.
- API conventions — errors, pagination, idempotency.