# Docs - [Curae Platform API](/docs): Connect a user's health systems and read authorized FHIR R4 projections over a server-to-server REST API. - Get started - [Quickstart](/docs/get-started/quickstart): Browse the public catalog, prepare a server-side connection proxy, and verify a webhook receiver offline. - [Authentication & environments](/docs/get-started/authentication): API keys, test vs live environments, and the server-side secret rules the SDK enforces. - Build - [Curae Connect](/docs/build/connect): Embed the Connect ceremony so a user links their health system — with the API key kept server-side and the LIMITED→ACTIVE graduation handled for you. - [Webhooks](/docs/build/webhooks): Register endpoints, verify signatures, deduplicate retries, and test deliveries — including offline and from the portal. - Ship - [API conventions](/docs/ship/conventions): Errors, pagination, idempotency, conditional reads, versioning, and rate limits, with endpoint-specific boundaries. - API reference - [API reference](/docs/api-reference): The complete, authoritative Platform API reference — generated from the OpenAPI specification. - Platform Webhooks - [List Platform webhook endpoints](/docs/api-reference/platform-webhooks/webhook-endpoints-get): Lists non-deleted webhook endpoints owned by the API key's customer account, sorted by `createdAt DESC, id DESC` (newest first), with forward-only cursor pagination as specified in `platform-api-architecture.md §10`. - [Create a Platform webhook endpoint](/docs/api-reference/platform-webhooks/webhook-endpoints-post): Creates a webhook endpoint for the API key's customer account. The signing secret is returned only in this response. - [Retrieve a Platform webhook endpoint](/docs/api-reference/platform-webhooks/webhook-endpoints-id-get): Retrieves a webhook endpoint owned by the API key's customer account. - [Update a Platform webhook endpoint](/docs/api-reference/platform-webhooks/webhook-endpoints-id-patch): Updates mutable fields of a webhook endpoint owned by the API key's customer account. - [Delete a Platform webhook endpoint](/docs/api-reference/platform-webhooks/webhook-endpoints-id-delete): Soft-deletes a webhook endpoint owned by the API key's customer account. - SDK Observations - [Search connection-scoped observations through the SDK gateway](/docs/api-reference/sdk-observations/observations-search-post): Returns a FHIR Bundle containing Observation resources authorized by the presented APP tenant API key with observation:read scope and the request body's `connectionId`. The gateway enforces APP tenant residency, SpiceDB app-install projection, subject lifecycle capability, resource-type scope, and service-level category, LOINC, sensitivity, and time-window scope before any PHI read is returned. A read the connection's scope does not cover, or one after Curae narrowed the app's approved scope below it, is `403` `insufficient_scope`. While any of the user's records it reads is being updated, the whole read is `409` `RECORDS_REBUILDING` (retryable), never a partial bundle. - SDK Conditions - [Search connection-scoped conditions through the SDK gateway](/docs/api-reference/sdk-conditions/conditions-search-post): Returns a FHIR Bundle containing Condition resources authorized by the presented APP tenant API key with condition:read scope and the request body's `connectionId`. The gateway enforces APP tenant residency, SpiceDB app-install projection, subject lifecycle capability, resource-type scope, and service-level category, ICD-10/SNOMED, sensitivity, and time-window scope before any PHI read is returned. A read the connection's scope does not cover, or one after Curae narrowed the app's approved scope below it, is `403` `insufficient_scope`. When `verificationStatuses` is omitted the platform defaults to `['confirmed']` so the bundle does not surface `entered-in-error` / `refuted` rows by accident. While any of the user's records it reads is being updated, the whole read is `409` `RECORDS_REBUILDING` (retryable), never a partial bundle. - SDK Immunizations - [Search connection-scoped immunizations through the SDK gateway](/docs/api-reference/sdk-immunizations/immunizations-search-post): Returns a FHIR Bundle containing Immunization resources authorized by the presented APP tenant API key with immunization:read scope and the request body's `connectionId`. The gateway enforces APP tenant residency, SpiceDB app-install projection, subject lifecycle capability, resource-type scope, and service-level CVX, sensitivity, and time-window scope before any PHI read is returned. A read the connection's scope does not cover, or one after Curae narrowed the app's approved scope below it, is `403` `insufficient_scope`. When `statuses` is omitted the platform defaults to `['COMPLETED']`; consumers needing the refusal signal can opt in with `statuses: ['COMPLETED', 'NOT_DONE']`. While any of the user's records it reads is being updated, the whole read is `409` `RECORDS_REBUILDING` (retryable), never a partial bundle. - SDK Signals - [Ingest a connection-scoped SDK-derived signal](/docs/api-reference/sdk-signals/signals-post): Persists an SDK-derived signal under the APP tenant when the presented API key has signal:write scope and the SDK connection allows the requested signal type. Signal payloads are limited to JSON objects no larger than 64 KiB and are validated against the namespace's payload schema (shallow event shape — scalars, shallow arrays/objects of scalars; SDK_SIGNAL_PAYLOAD_SCHEMA_MISMATCH on violation). Payloads MUST NOT contain PHI: no identifiers (names, emails, phone numbers, MRNs, external patient ids), free-text clinical notes, diagnoses, or document content — the subject is identified by the connection, and clinical facts belong on the FHIR surfaces. Requests must include Idempotency-Key for safe retries. A retry under the same key is authorized again and answered from the signal as it is then: once the signal is gone, 404. - SDK Records - [Queue a connection-scoped records export](/docs/api-reference/sdk-records/records-exports-post): Creates a durable export job for authorized records covered by the SDK connection. The response contains job status and metadata; artifact materialization is asynchronous. - [Get a connection-scoped records export](/docs/api-reference/sdk-records/records-exports-exportid-get): Returns status and metadata for a durable records export job created by the same SDK connection. - [Download a connection-scoped records export artifact](/docs/api-reference/sdk-records/records-exports-exportid-download-get): Redeems a `READY` records export as a short-lived signed URL for the materialized FHIR NDJSON artifact. The export must have been created by the same SDK connection. Returns `409` if the export exists but is not yet `READY` (still `QUEUED`/`RUNNING`) or is no longer downloadable (`EXPIRED`/`FAILED`; or `READY` but queued before a revocation of the app's live access, with `details.reason` `live_access_not_approved`, or assembled under a consent the person has since replaced, with `details.reason` `consent_changed`, or built from records the person has since had erased, with `details.reason` `records_erased`), and `404` if it does not belong to the connection. - SDK Connections - [Create an SDK patient connection](/docs/api-reference/sdk-connections/connections-post): Starts a connection-oriented Curae Connect flow for the SDK app's authenticated user coordinate, asking for `scope` (SMART App Launch 2.x scopes). The response returns a durable `connection.id` used as `connectionId` in subsequent SDK gateway request bodies, and the granted `scope` in its canonical form. If user action is required, `nextAction` contains the Curae-hosted page to open, once, in the system browser or a top-level browser window; an embedded web view is not supported. A scope that does not parse, that the SDK does not serve, or that lies outside the scope Curae approved the app for is `400` with `code` `invalid_scope` and `details.scope` naming it. An app Curae has not approved for live access is refused `403` `LIVE_ACCESS_NOT_APPROVED`, with either kind of key. If the person taps Don't Allow, nothing is shared: the connection is revoked with the reason `access_denied`, and the person returns to `handoffReturnUrl` with `error=access_denied`. - [Get SDK connection status](/docs/api-reference/sdk-connections/connections-connectionid-get): Returns the current lifecycle state for an app-owned SDK connection. Pending connections self-heal to authorized when their underlying Curae-hosted handoff session has already completed. - [Revoke an SDK connection](/docs/api-reference/sdk-connections/connections-connectionid-revoke-post): Monotonically revokes an app-owned SDK connection and terminates connection-authorized access. Internal enforcement artifacts are not exposed on the public API. - [Reconnect an SDK patient connection](/docs/api-reference/sdk-connections/connections-connectionid-reconnect-post): Starts a connection lifecycle recovery flow for an expired, revoked, or action-required SDK connection. An active connection is not reconnected (`409`). A pending connection whose person signed in at their hospital in Curae Connect, with only Curae's approval left, is completed: `202` with the connection `AUTHORIZED` and `nextAction` `null`. Any other pending connection is refused `409`; `:revoke` ends it. The connection's scope, or the `scope` the request asks for instead, must lie within the scope Curae approved the app for now (`400` `invalid_scope` otherwise); a different scope is a new request the person reviews. An app Curae has not approved for live access is refused `403` `LIVE_ACCESS_NOT_APPROVED`, with either kind of key. - SDK Curae Connect - [Initiate a Curae Connect entry-flow session (Path A / B / C selection)](/docs/api-reference/sdk-curae-connect/curae-connect-initiate-post): Mints a fresh CuraeConnectSession for the SDK app's (customerAccountId, appUserId) coordinate. Path selection is deterministic from the bound `LimitedAccountAppBinding`: existing-ACTIVE → Path A (`EXISTING_ACTIVE_HANDOFF`, handoff lands in-tx), no-binding + `preferSignup: true` → Path B (`NEW_ACTIVE_SIGNUP_HANDOFF`, requires `completeHandoff`), else → Path C (`SILENT_LIMITED`, reuses the coordinate's LIMITED user, or opens a session whose LIMITED user is created only when the person accepts Curae's documents at `/select`; this route creates no account). When the app's user asks to manage their sharing, send `manageSharing: true`: for a Path C person whose account exists, `handoffUrl` is then the link that opens Curae Connect's Manage sharing screen, where the person sees what they share with the app, gets a copy of each authorization they signed, stops sharing, or deletes their Curae Connect account. The app is told of a stop or a deletion by `connection.revoked`. Open `handoffUrl` in the system browser (`ASWebAuthenticationSession` on iOS, Custom Tabs on Android) or a top-level browser window; an embedded web view is not supported. The link works once: the first browser to open it holds the session, and every later step runs in that browser. An app Curae has not approved for live access is refused `403` `LIVE_ACCESS_NOT_APPROVED`, with either kind of key. The route requires `connection:write` scope and an `Idempotency-Key` (retries replay the original response verbatim). Rate-limited at 10 req / customer-account / appUserId / minute on top of the standard Platform API buckets. - [Mint a graduation handoff token for an existing LIMITED user](/docs/api-reference/sdk-curae-connect/curae-connect-graduation-handoff-post): SDK consumers surface a `` whenever the current user is in the `LIMITED` lifecycle state; a tap on the upgrade CTA proxies to this route via the consumer backend. The platform mints a fresh server-signed `GRADUATION_HANDOFF` JWT that pins the LIMITED `User.id` and returns the Curae-hosted `/graduate#handoff=` webview URL the SDK navigates the user to (the token rides the URL fragment, which the browser never sends). The credential-binding ceremony (passkey, magic link, password) runs inside that webview. Idempotency-Key is REJECTED because every call MUST mint a fresh short-lived JWT — replays would return a stale token whose TTL may have elapsed. Rate-limited at 10 req / customer-account / appUserId / minute (same cap as `/initiate`) to close the LIMITED-binding enumeration side channel. - [Resolve the lifecycle state of an SDK app-user coordinate (read-only)](/docs/api-reference/sdk-curae-connect/curae-connect-account-state-get): Read-only probe used by the SDK's `` to decide which onboarding / lifecycle UI to render for the current user. Resolves `(customerAccountId, appUserId)` to one of `UNLINKED`, `LIMITED`, `ACTIVE`, or `TOMBSTONED` without minting a `CuraeConnectSession` row, provisioning a LIMITED user, emitting any outbox event, or counting against the per-coordinate `/initiate` rate-limit bucket. Supports RFC 7232 conditional GET — pass the previously-received ETag in `If-None-Match` to receive a `304 Not Modified` when the state has not moved. Designed for high-frequency polling (every page mount, every browser tab visibility-change). - SDK Catalog - [Search the health-system brand catalog (public)](/docs/api-reference/sdk-catalog/catalog-brands-get): Public, unauthenticated search over the CuraeAI health-system brand catalog — the discovery surface a consumer uses to build an institution picker before any data is linked. The catalog contains only non-PHI metadata (brand name, EHR platform type, FHIR base URL, city/state, and a logo reference), so no API key is required; the authorization boundary is the SDK connection, not catalog discovery. Results are deduplicated by FHIR system identity and CDN-cached at the edge. - [Get a single catalog brand by id (public)](/docs/api-reference/sdk-catalog/catalog-brands-brandid-get): Public, unauthenticated lookup of one catalog brand by its opaque `brandId` (as returned by the catalog search). Non-PHI metadata; CDN-cached. An unknown or malformed id returns 404 problem details. - [Get a catalog brand's logo (public)](/docs/api-reference/sdk-catalog/catalog-brands-brandid-logo-get): Public, unauthenticated brand-logo endpoint. Issues a 307 redirect to the brand's Curae-hosted logo so callers can use one stable Curae URL — typically as an `` src — while the platform retains freedom to move the asset. The redirect never leaves a Curae origin. Returns 404 when the brand has no logo. Long-lived CDN cache.