Create an SDK patient connection
Starts a connection-oriented Curae Connect flow for the SDK app's authenticated user coordinate. The response returns a durable `connection.id` used as `connectionId` in subsequent SDK gateway request bodies. If user action is required, `nextAction` contains a Curae-hosted webview URL to open.
/api/sdk/v1/connectionsStarts a connection-oriented Curae Connect flow for the SDK app's authenticated user coordinate. The response returns a durable connection.id used as connectionId in subsequent SDK gateway request bodies. If user action is required, nextAction contains a Curae-hosted webview URL to open.
Authorization
platformApiKey CuraeAI Platform API key using the format Bearer . Keys are opaque credentials such as cae_live_..., not JWTs.
In: header
Header Parameters
Required idempotency key for safe connection-create retries.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/problem+json
curl -X POST "https://example.com/api/sdk/v1/connections" \ -H "Idempotency-Key: string" \ -H "Content-Type: application/json" \ -d '{ "appUserId": "string", "dataPackages": [ "clinical_summary" ] }'{ "connection": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "customerAccountId": "d8c60791-7301-441c-98e8-5bea9a162d9b", "appUserId": "string", "status": "PENDING", "dataPackages": [ "clinical_summary" ], "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" }, "nextAction": { "type": "open_webview", "url": "http://example.com", "expiresAt": "2019-08-24T14:15:22Z" }}{ "type": "string", "title": "string", "status": 0, "detail": "string", "instance": "string", "code": "string", "details": {}, "retryable": true}Download a connection-scoped records export artifact 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`), and `404` if it does not belong to the connection.
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.