Skip to content
Proud to collaborate with Microsoft for Startups

user.onboarding ​

Onboards new users registered via Cognito

Onboards new users from Cognito into the platform.

Input fields (initial_data): cognito_sub, email, cognito_username, user_pool_ref, email_verified

States: initiated → pending_organization → completed initiated → completed (invitation fast-path) any → failed

Overview ​

PropertyValue
Workflow typeLinear
LibraryApp-user
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
cognito_substringNo—Cognito user sub (UUID)
cognito_usernamestringNo—Cognito username
emailstringNo—User email address
user_pool_refstringNo—Cognito user pool reference
email_verifiedstringNo—Whether the email is verified (string 'true'/'false')

Output Schema ​

FieldTypeRequiredDefaultDescription
cognito_substringNo—Cognito user sub
cognito_usernamestringNo—Cognito username
emailstringNo—User email address
user_pool_refstringNo—Cognito user pool reference
email_verifiedstringNo—Whether the email is verified
user_uuidstringNo—Platform user UUID
joined_via_invitationbooleanNo—Whether the user joined via invitation
joined_organizationsjsonNo—Organizations joined during onboarding
validated_atstringNo—ISO timestamp when user was validated
organization_uuidstringNo—UUID of the created or joined organization
organization_namestringNo—Name of the created organization
organization_domainstringNo—Domain of the created organization
completed_atstringNo—ISO timestamp when onboarding completed
failed_atstringNo—ISO timestamp when onboarding failed
failure_reasonstringNo——
failure_typestringNo——
failed_actionstringNo——
failed_at_statestringNo——
failed_stepstringNo——
failed_layerstringNo——
errorstringNo——
error_typestringNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
initiatedYesNo—validate_user—
pending_organizationNoNo——Waiting for user to create their first organization
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
initiatedvalidate_userpending_organization—
initiatedcomplete_with_invitationcompleted—
pending_organizationcreate_organizationcompleted—
* (any state)failfailed—

API Usage ​

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

{
  "workflow_type": "user.onboarding",
  "initial_data": {
    "cognito_sub": "value",
    "cognito_username": "value",
    "email": "value",
    "user_pool_ref": "value"
  }
}