Curae Platform
API referenceSDK Signals

Ingest a connection-scoped SDK-derived signal

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.

POST
/api/sdk/v1/signals

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.

Authorization

platformApiKey
headerAuthorizationBearer <token>

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

Header Parameters

Idempotency-Key*string

Required mutation idempotency key for SDK signal retries.

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

Request Body

application/json
  1. body
connectionId*string

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

Formatuuid
signalType*

Structured (namespace, code, version) tuple identifying an SDK-derived signal. Replaces the pre-W1 flat AppDerivedSignalType enum (Docs/architecture/sdk-architecture.md § 3 W1) so adding a new clinical / wellness domain is a platform-side registry addition rather than a Prisma enum migration. Structurally a 1:1 projection of FHIR R4's Coding shape with simpler field names — the FHIR-canonical projection is {system: 'https://curaeai.com/fhir/CodeSystem/sdk-signal/<namespace>', code: <code>, version: <version>}. The simpler tuple is the developer-facing wire shape ("make it as easy as possible to develop medical apps", per the platform thesis); downstream FHIR servers and bulk exports project to the canonical form. Consumer-app attribution is not part of the type — the emitting customer-account is captured by the API key's principal context and surfaced through audit logs and webhook payloads. Two different sexual-health apps emitting the same {namespace: 'sti', code: 'exposure_event', version: 'v1'} are emitting the same semantic signal and resolve to the same platform sensitivity classification. Signals are for app-derived events with no EHR analog (exposure-notification dispatches, behavioural check-ins, self-asserted lifestyle facts). EHR-derivable questions ("does the user have a negative STI panel within 30 days?", "is the user up-to-date on CDC childhood vaccinations?") are queries against the resource-search surface, not signals — see searchSdkObservations / searchSdkConditions / searchSdkImmunizations.

payload*
observedAt?string
Formatdate-time

Response Body

Signal created.

application/json
  1. response
id*string
signalType*

Structured (namespace, code, version) tuple identifying an SDK-derived signal. Replaces the pre-W1 flat AppDerivedSignalType enum (Docs/architecture/sdk-architecture.md § 3 W1) so adding a new clinical / wellness domain is a platform-side registry addition rather than a Prisma enum migration. Structurally a 1:1 projection of FHIR R4's Coding shape with simpler field names — the FHIR-canonical projection is {system: 'https://curaeai.com/fhir/CodeSystem/sdk-signal/<namespace>', code: <code>, version: <version>}. The simpler tuple is the developer-facing wire shape ("make it as easy as possible to develop medical apps", per the platform thesis); downstream FHIR servers and bulk exports project to the canonical form. Consumer-app attribution is not part of the type — the emitting customer-account is captured by the API key's principal context and surfaced through audit logs and webhook payloads. Two different sexual-health apps emitting the same {namespace: 'sti', code: 'exposure_event', version: 'v1'} are emitting the same semantic signal and resolve to the same platform sensitivity classification. Signals are for app-derived events with no EHR analog (exposure-notification dispatches, behavioural check-ins, self-asserted lifestyle facts). EHR-derivable questions ("does the user have a negative STI panel within 30 days?", "is the user up-to-date on CDC childhood vaccinations?") are queries against the resource-search surface, not signals — see searchSdkObservations / searchSdkConditions / searchSdkImmunizations.

sensitivityLabels*array<>

The sensitive categories the signal carries, which the platform states from its namespace: an sti signal carries HIV and STI, a behavioral one MENTAL_HEALTH.

observedAt*string
Formatdate-time
createdAt*string
Formatdate-time
Example Request
curl -X POST 'https://api.curaeai.com/api/sdk/v1/signals' \  -H 'Idempotency-Key: string' \  -H 'Content-Type: application/json' \  -d '{  "connectionId": "84b500d7-71c8-4b1f-adf4-f1eb0000973d",  "signalType": {    "namespace": "string",    "code": "string",    "version": "string"  },  "payload": {}}'
Example Response
{  "id": "string",  "signalType": {    "namespace": "string",    "code": "string",    "version": "string"  },  "sensitivityLabels": [    "PART_2_SUD"  ],  "observedAt": "2019-08-24T14:15:22Z",  "createdAt": "2019-08-24T14:15:22Z"}