Revoke an SDK connection
Monotonically revokes an app-owned SDK connection and terminates connection-authorized access. Internal enforcement artifacts are not exposed on the public API.
Monotonically revokes an app-owned SDK connection and terminates connection-authorized access. Internal enforcement artifacts are not exposed on the public API.
platformApiKeyAuthorizationBearer <token>Curae Platform API key using the format Bearer . Keys are opaque credentials such as cae_live_..., not JWTs.
connectionId*stringuuidIdempotency-Key*stringRequired idempotency key for safe connection-revoke retries.
^[A-Za-z0-9_-]+$length <= 255application/json- body
reason?stringWhy the app revoked the connection: a note recorded with the revocation and never acted on. Whatever it says, the revoke is the app's own and sends connection.revoked.
1 <= length <= 64"app_revoked"Connection revocation result.
application/json- response
connection*revokedNow*booleancurl -X POST 'https://api.curaeai.com/api/sdk/v1/connections/497f6eca-6276-4993-bfeb-53cbbbba6f08:revoke' \ -H 'Idempotency-Key: string' \ -H 'Content-Type: application/json' \ -d '{}'{ "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" }, "revokedNow": true}Get SDK connection status 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.
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.