Curae Platform
API referenceSDK Curae Connect

Resolve the lifecycle state of an SDK app-user coordinate (read-only)

Read-only probe used by the SDK's `<CuraeAIAccountProvider>` to decide which onboarding / lifecycle UI to render for the current user. Resolves `(customerAccountId, appUserId)` to one of `UNLINKED`, `LIMITED`, `ACTIVE`, or `TOMBSTONED` without minting a `CuraeConnectSession` row, provisioning a LIMITED user, emitting any outbox event, or counting against the per-coordinate `/initiate` rate-limit bucket. Supports RFC 7232 conditional GET — pass the previously-received ETag in `If-None-Match` to receive a `304 Not Modified` when the state has not moved. Designed for high-frequency polling (every page mount, every browser tab visibility-change).

GET
/api/sdk/v1/curae-connect/account-state

Read-only probe used by the SDK's <CuraeAIAccountProvider> to decide which onboarding / lifecycle UI to render for the current user. Resolves (customerAccountId, appUserId) to one of UNLINKED, LIMITED, ACTIVE, or TOMBSTONED without minting a CuraeConnectSession row, provisioning a LIMITED user, emitting any outbox event, or counting against the per-coordinate /initiate rate-limit bucket. Supports RFC 7232 conditional GET — pass the previously-received ETag in If-None-Match to receive a 304 Not Modified when the state has not moved. Designed for high-frequency polling (every page mount, every browser tab visibility-change).

Authorization

platformApiKey
headerAuthorizationBearer <token>

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

Query Parameters

appUserId*string

Opaque SDK user id. Must be canonical: no leading or trailing whitespace and no control characters.

Length1 <= length <= 256

Header Parameters

If-None-Match?string

Strong ETag list (RFC 7232 §3.2). When any candidate matches the current account-state ETag, the response is 304 Not Modified with the same ETag header and no body.

Response Body

Resolved lifecycle state for the supplied coordinate.

application/json
  1. response
lifecycleState*string

UNLINKED — no binding exists; render onboarding choice. LIMITED — binding resolves to a LIMITED user; render upgrade card. ACTIVE — binding resolves to an ACTIVE user; full SDK available. TOMBSTONED — binding is unusable (slot soft-deleted, or bound user soft-deleted / deactivated); the consumer must re-onboard.

Value in"UNLINKED""LIMITED""ACTIVE""TOMBSTONED"
subjectUserId*|

The Curae User.id the coordinate currently resolves to. null for the UNLINKED and TOMBSTONED states because no usable user reference exists in those cases.

Formatuuid
Example Request
curl -X GET 'https://api.curaeai.com/api/sdk/v1/curae-connect/account-state?appUserId=string'
Example Response
{  "lifecycleState": "UNLINKED",  "subjectUserId": "296d2d93-03fc-4d0e-b7e7-4f7600664125"}