Curae Platform
API referenceSDK Connections

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.

POST
/api/sdk/v1/connections/{connectionId}:revoke

Monotonically revokes an app-owned SDK connection and terminates connection-authorized access. Internal enforcement artifacts are not exposed on the public API.

Authorization

platformApiKey
headerAuthorizationBearer <token>

Curae Platform API key using the format Bearer . Keys are opaque credentials such as cae_live_..., not JWTs.

Path Parameters

connectionId*string
Formatuuid

Header Parameters

Idempotency-Key*string

Required idempotency key for safe connection-revoke retries.

Match^[A-Za-z0-9_-]+$
Lengthlength <= 255

Request Body

application/json
  1. body
reason?string

Why 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.

Length1 <= length <= 64
Default"app_revoked"

Response Body

Connection revocation result.

application/json
  1. response
connection*
revokedNow*boolean
Example Request
curl -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 '{}'
Example Response
{  "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}