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.
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.
platformApiKeyAuthorizationBearer <token>Curae Platform API key using the format Bearer . Keys are opaque credentials such as cae_live_..., not JWTs.
Idempotency-Key*stringRequired mutation idempotency key for SDK signal retries.
^[A-Za-z0-9_-]+$length <= 255application/json- body
connectionId*stringPublic SDK connection id returned by POST /api/sdk/v1/connections.
uuidsignalType*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?stringdate-timeSignal created.
application/json- response
id*stringsignalType*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*stringdate-timecreatedAt*stringdate-timecurl -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": {}}'{ "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"}Search connection-scoped immunizations through the SDK gateway POST
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.
Queue a connection-scoped records export POST
Creates a durable export job for authorized records covered by the SDK connection. The response contains job status and metadata; artifact materialization is asynchronous.