Curae Platform
API referenceSDK Immunizations

Search connection-scoped immunizations through the SDK gateway

Returns a FHIR Bundle containing Immunization resources authorized by the presented APP tenant API key with immunization:read scope and the request body's `connectionId`. The gateway enforces APP tenant residency, SpiceDB app-install projection, subject lifecycle capability, resource-type scope, and service-level CVX, sensitivity, and time-window scope before any PHI read is returned. A read the connection's scope does not cover, or one after Curae narrowed the app's approved scope below it, is `403` `insufficient_scope`. When `statuses` is omitted the platform defaults to `['COMPLETED']`; consumers needing the refusal signal can opt in with `statuses: ['COMPLETED', 'NOT_DONE']`. While any of the user's records it reads is being updated, the whole read is `409` `RECORDS_REBUILDING` (retryable), never a partial bundle.

POST
/api/sdk/v1/immunizations:search

Returns a FHIR Bundle containing Immunization resources authorized by the presented APP tenant API key with immunization:read scope and the request body's connectionId. The gateway enforces APP tenant residency, SpiceDB app-install projection, subject lifecycle capability, resource-type scope, and service-level CVX, sensitivity, and time-window scope before any PHI read is returned. A read the connection's scope does not cover, or one after Curae narrowed the app's approved scope below it, is 403 insufficient_scope. When statuses is omitted the platform defaults to ['COMPLETED']; consumers needing the refusal signal can opt in with statuses: ['COMPLETED', 'NOT_DONE']. While any of the user's records it reads is being updated, the whole read is 409 RECORDS_REBUILDING (retryable), never a partial bundle.

Authorization

platformApiKey
headerAuthorizationBearer <token>

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

Request Body

application/json
  1. body
connectionId*string

Public SDK connection id returned by POST /api/sdk/v1/connections.

Formatuuid
cvxCodes?array<>

CDC CVX numeric vaccine codes (1-4 digits).

Items1 <= items <= 64
statuses?array<>

Platform ImmunizationStatus enum values. Defaults to ['COMPLETED'] when omitted. UNKNOWN has no R4 code and matches nothing; a list naming no other status is 400.

Items1 <= items
timeWindow?
sensitivityLabels?array<>

Narrows the sensitive categories this read includes to those named; [] reads records that carry none. A category the connection does not read is refused with a 403.

Itemsitems <= 8
limit?integer
Range1 <= value <= 500

Response Body

Connection-scoped FHIR Immunization search bundle.

  1. response

Top-level FHIR R4 Bundle of searchset type carrying the Curae-shaped Immunization projections matched by the request scope.

resourceType*"Bundle"
Value in"Bundle"
type*"searchset"
Value in"searchset"
total?integer
Range0 <= value
entry?array<>
Example Request
curl -X POST 'https://api.curaeai.com/api/sdk/v1/immunizations:search' \  -H 'Content-Type: application/json' \  -d '{  "connectionId": "84b500d7-71c8-4b1f-adf4-f1eb0000973d"}'
Example Response
{  "resourceType": "Bundle",  "type": "searchset",  "total": 0,  "entry": [    {      "fullUrl": "string",      "resource": {        "resourceType": "Immunization",        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "meta": {          "tag": [            {              "system": "string",              "code": "string",              "display": "string",              "version": "string",              "userSelected": true            }          ],          "security": [            {              "system": "string",              "code": "string",              "display": "string"            }          ],          "extension": [            {              "url": "string",              "valueString": "string"            }          ]        },        "status": "completed",        "vaccineCode": {          "coding": [            {              "system": "string",              "code": "string",              "display": "string",              "version": "string",              "userSelected": true            }          ],          "text": "string",          "extension": [            {              "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason",              "valueCode": "masked"            }          ]        },        "patient": {          "reference": "string"        },        "occurrenceDateTime": "2019-08-24T14:15:22Z"      },      "search": {        "mode": "match"      }    }  ]}

Search connection-scoped conditions through the SDK gateway POST

Returns a FHIR Bundle containing Condition resources authorized by the presented APP tenant API key with condition:read scope and the request body's `connectionId`. The gateway enforces APP tenant residency, SpiceDB app-install projection, subject lifecycle capability, resource-type scope, and service-level category, ICD-10/SNOMED, sensitivity, and time-window scope before any PHI read is returned. A read the connection's scope does not cover, or one after Curae narrowed the app's approved scope below it, is `403` `insufficient_scope`. When `verificationStatuses` is omitted the platform defaults to `['confirmed']` so the bundle does not surface `entered-in-error` / `refuted` rows by accident. While any of the user's records it reads is being updated, the whole read is `409` `RECORDS_REBUILDING` (retryable), never a partial bundle.

Ingest a connection-scoped SDK-derived signal POST

Persists an SDK-derived signal under the APP tenant when the presented API key has signal:write scope and the SDK connection allows the requested signal type. Signal payloads are limited to JSON objects no larger than 64 KiB and are validated against the namespace's payload schema (shallow event shape — scalars, shallow arrays/objects of scalars; SDK_SIGNAL_PAYLOAD_SCHEMA_MISMATCH on violation). Payloads MUST NOT contain PHI: no identifiers (names, emails, phone numbers, MRNs, external patient ids), free-text clinical notes, diagnoses, or document content — the subject is identified by the connection, and clinical facts belong on the FHIR surfaces. Requests must include Idempotency-Key for safe retries. A retry under the same key is authorized again and answered from the signal as it is then: once the signal is gone, 404.