Download a connection-scoped records export artifact
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`; or `READY` but queued before a revocation of the app's live access, with `details.reason` `live_access_not_approved`, or assembled under a consent the person has since replaced, with `details.reason` `consent_changed`, or built from records the person has since had erased, with `details.reason` `records_erased`), and `404` if it does not belong to the connection.
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; or READY but queued before a revocation of the app's live access, with details.reason live_access_not_approved, or assembled under a consent the person has since replaced, with details.reason consent_changed, or built from records the person has since had erased, with details.reason records_erased), and 404 if it does not belong to the connection.
platformApiKeyAuthorizationBearer <token>Curae Platform API key using the format Bearer . Keys are opaque credentials such as cae_live_..., not JWTs.
exportId*stringuuidSigned download URL and export metadata.
application/json- response
download*Short-lived signed URL for a materialized records-export artifact. The URL is valid for expiresInSeconds and is the only way to retrieve the private artifact; redeem it promptly. The artifact's integrity hash and size are available on the accompanying export object.
export*curl -X GET 'https://api.curaeai.com/api/sdk/v1/records/exports/497f6eca-6276-4993-bfeb-53cbbbba6f08/download'{ "download": { "url": "http://example.com", "expiresInSeconds": 60, "expiresAt": "2019-08-24T14:15:22Z" }, "export": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "connectionId": "84b500d7-71c8-4b1f-adf4-f1eb0000973d", "status": "QUEUED", "resourceTypes": [ "Observation" ], "format": "fhir_ndjson", "artifact": { "sha256": "string", "byteSize": "string" }, "errorCode": "string", "queuedAt": "2019-08-24T14:15:22Z", "startedAt": "2019-08-24T14:15:22Z", "completedAt": "2019-08-24T14:15:22Z", "expiresAt": "2019-08-24T14:15:22Z", "failedAt": "2019-08-24T14:15:22Z", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" }}Get a connection-scoped records export GET
Returns status and metadata for a durable records export job created by the same SDK connection.
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`.