Initiate a Curae Connect entry-flow session (Path A / B / C selection)
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.
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.
platformApiKeyAuthorizationBearer <token>Curae Platform API key using the format Bearer . Keys are opaque credentials such as cae_live_..., not JWTs.
Idempotency-Key*stringRequired idempotency key for safe initiate retries.
^[A-Za-z0-9_-]+$length <= 255application/json- body
appUserId*stringOpaque SDK user id. Must be canonical: no leading or trailing whitespace and no control characters.
1 <= length <= 256handoffReturnUrl?|Where the Curae Connect handoff sends the person back. One of the return addresses registered for the app on Account settings in Curae Platform, exactly as listed there; any other is 400 with code invalid_redirect_uri. Curae sends the person back to it only while it is still registered and the app's website domain is still verified.
urilength <= 2048deviceKeyCnf?|nullrefreshTokenHash?|^[0-9a-f]{64}$ttlSeconds?integer60 <= value <= 900preferSignup?booleanmanageSharing?booleanSend true when the app's user asks to manage their sharing. For a Path C (SILENT_LIMITED) person whose account exists, the response's handoffUrl is then the link that opens Curae Connect's Manage sharing screen. Omitted or false, a Path C response carries no link.
Curae Connect session minted with deterministic path selection.
application/json- response
session*path*string"EXISTING_ACTIVE_HANDOFF""NEW_ACTIVE_SIGNUP_HANDOFF""SILENT_LIMITED"subjectUserId*|uuidcreatedLimitedAccount*booleanhandoffToken*string|nullhandoffTokenExpiresAt*|date-timehandoffUrl*|uricurl -X POST 'https://api.curaeai.com/api/sdk/v1/curae-connect/initiate' \ -H 'Idempotency-Key: string' \ -H 'Content-Type: application/json' \ -d '{ "appUserId": "string"}'{ "session": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "tenantId": "f97df110-f4de-492e-8849-4a6af68026b0", "customerAccountId": "d8c60791-7301-441c-98e8-5bea9a162d9b", "appUserId": "string", "subjectUserId": "296d2d93-03fc-4d0e-b7e7-4f7600664125", "state": "INITIATED", "handoffReturnUrl": "http://example.com", "deviceKeyCnf": {}, "ttlExpiresAt": "2019-08-24T14:15:22Z", "createdAt": "2019-08-24T14:15:22Z", "completedAt": "2019-08-24T14:15:22Z" }, "path": "EXISTING_ACTIVE_HANDOFF", "subjectUserId": "296d2d93-03fc-4d0e-b7e7-4f7600664125", "createdLimitedAccount": true, "handoffToken": "string", "handoffTokenExpiresAt": "2019-08-24T14:15:22Z", "handoffUrl": "http://example.com"}Reconnect an SDK patient connection 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.
Mint a graduation handoff token for an existing LIMITED user POST
SDK consumers surface a `<CuraeUpgradeCard>` 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=<token>` 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.