Skip to content
Proud to collaborate with Microsoft for Startups

data.identity.org-invitation.persist ​

Idempotently create an OrganizationInvitation row

Persist an OrganizationInvitation: create new or return existing pending.

Input: organization_uuid + email + invited_by_uuid (required), role, message, expires_in_days (optional). Output in state_data: invitation_uuid, token, status, persisted, expires_at, persisted_at.

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-identity
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidYes——
emailstringYes——
invited_by_uuiduuidYes——
rolestringNo——
messagestringNo——
expires_in_daysintegerNo——
actorstringNo——

Output Schema ​

FieldTypeRequiredDefaultDescription
invitation_uuiduuidYes——
tokenstringYes——
statusstringYes——
rolestringNo——
persistedbooleanYes——
expires_atdatetimeNo——
persisted_atdatetimeYes——
organization_uuiduuidNo——
emailstringNo——
invited_by_uuiduuidNo——
messagestringNo——
expires_in_daysintegerNo——
actorstringNo——
failure_reasonstringNo——
failure_typestringNo——
failed_actionstringNo——
failed_at_statestringNo——
failed_stepstringNo——
failed_layerstringNo——
errorstringNo——
error_typestringNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—completePersist invitation
completedNoYesYes—Persisted
failedNoYesNo—Persist failed

State Diagram ​

Transitions ​

FromActionToDescription
pendingcompletecompleted—
pendingfailfailed—

API Usage ​

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

{
  "workflow_type": "data.identity.org-invitation.persist",
  "initial_data": {
    "organization_uuid": "value",
    "email": "value",
    "invited_by_uuid": "value"
  }
}