Get SDK connection status
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.
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.
platformApiKeyAuthorizationBearer <token>Curae Platform API key using the format Bearer . Keys are opaque credentials such as cae_live_..., not JWTs.
connectionId*stringuuidCurrent connection status.
application/json- response
connection*curl -X GET 'https://api.curaeai.com/api/sdk/v1/connections/497f6eca-6276-4993-bfeb-53cbbbba6f08'{ "connection": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "customerAccountId": "d8c60791-7301-441c-98e8-5bea9a162d9b", "appUserId": "string", "status": "PENDING", "scope": "string", "authorizedAt": "2019-08-24T14:15:22Z", "expiresAt": "2019-08-24T14:15:22Z", "revokedAt": "2019-08-24T14:15:22Z", "actionRequiredReason": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" }}Create an SDK patient connection 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`.
Revoke an SDK connection POST
Monotonically revokes an app-owned SDK connection and terminates connection-authorized access. Internal enforcement artifacts are not exposed on the public API.