Skip to content
Proud to collaborate with Microsoft for Startups

identity.org-invitation.create ​

Send an organization invitation by email

Send an organization invitation to an email address.

Inputs:

  • organization_uuid: Target organization ID (required)
  • email: Invitee email (required)
  • actor: Cognito sub or user UUID of the inviter (required)
  • role: Role to grant on acceptance — member | admin | owner (optional; default member)
  • message: Optional personal message
  • expires_in_days: Override default 7-day expiry (optional)

Outputs (terminal state_data):

  • invitation_uuid
  • email
  • role
  • expires_at
  • persisted: true if newly created, false if an existing pending row was reused
  • email_dispatched: bool (best-effort — false does not fail the workflow)
  • email_workflow_ref: child workflow id when dispatch was started
  • dispatch_error: best-effort dispatch error when the child could not be started

Overview ​

PropertyValue
Workflow typeLinear
LibraryApp-identity
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidYes——
emailemailYes——
actorstringYes——
rolestringNo——
messagestringNo——
expires_in_daysintegerNo——

Output Schema ​

FieldTypeRequiredDefaultDescription
invitation_uuiduuidNo——
emailemailNo——
rolestringNo——
expires_atdatetimeNo——
persistedbooleanYes——
email_dispatchedbooleanYes——
email_workflow_refstringNo——
dispatch_errorstringNo——
organization_uuiduuidNo——
actorstringNo——
messagestringNo——
expires_in_daysintegerNo——
failure_reasonstringNo——
failure_typestringNo——
failed_actionstringNo——
failed_at_statestringNo——
failed_stepstringNo——
failed_layerstringNo——
errorstringNo——
error_typestringNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
initiatedYesNo—validate—
dispatchingNoNo—complete—
persistingNoNo—dispatch—
validatingNoNo—persist—
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
initiatedvalidatevalidating—
validatingpersistpersisting—
persistingdispatchdispatching—
dispatchingcompletecompleted—
* (any state)failfailed—

API Usage ​

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

{
  "workflow_type": "identity.org-invitation.create",
  "initial_data": {
    "organization_uuid": "value",
    "email": "value",
    "actor": "value"
  }
}