Skip to content
Proud to collaborate with Microsoft for Startups

identity.notification-pref.get ​

Fetch a single notification preference by UUID, ownership-verified

Fetch a single notification preference by UUID with ownership verification.

The preference must belong to both the given organization_uuid and the actor identified by actor (cognito_sub or uuid). Any mismatch resolves to COMPLETED with found=False — never FAILED.

Inputs:

  • preference_uuid: UUID of the preference row (required)
  • organization_uuid: Organization ID (required) — tenant check
  • actor: Cognito sub or user UUID (required) — ownership check

Outputs (terminal state_data):

  • preference: dict | None
  • found: bool

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-identity
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
preference_uuiduuidYes—UUID of the UserNotificationPreference row
organization_uuiduuidYes—Organization UUID for tenant verification
actorstringYes—Cognito sub or user UUID for ownership verification

Output Schema ​

FieldTypeRequiredDefaultDescription
preference_uuidstringNo——
organization_uuiduuidNo——
actorstringNo——
preferencejsonNo——
foundbooleanYes——
failure_reasonstringNo——
failure_typestringNo——
failed_actionstringNo——
failed_at_statestringNo——
failed_stepstringNo——
failed_layerstringNo——
errorstringNo——
error_typestringNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—execute—
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
pendingexecutecompleted—
* (any state)failfailed—

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "identity.notification-pref.get",
  "initial_data": {
    "preference_uuid": "value",
    "organization_uuid": "value",
    "actor": "value"
  }
}