identity.org-invitation.resend ​
Re-send a pending organization invitation
Re-send a pending organization invitation by rotating its token and email.
Inputs:
- invitation_uuid: Invitation UUID (required)
- organization_uuid: Organization ID for tenant check (required)
- actor: Cognito sub or user UUID of the actor (required)
- expires_in_days: Override default 7-day expiry (optional)
Outputs (terminal state_data):
- invitation_uuid
- resent: bool
- previous_status
- expires_at
- email_dispatched: bool (best-effort)
- email_workflow_ref: child workflow id when dispatch was started
- dispatch_error: best-effort dispatch error when the child could not be started
- reason: None on success, or short-circuit reason
Overview ​
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | App-identity |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
invitation_uuid | uuid | Yes | — | — |
organization_uuid | uuid | Yes | — | — |
actor | string | Yes | — | — |
expires_in_days | integer | No | — | — |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
invitation_uuid | uuid | Yes | — | — |
resent | boolean | Yes | — | — |
previous_status | string | No | — | — |
expires_at | datetime | No | — | — |
email_dispatched | boolean | Yes | — | — |
email_workflow_ref | string | No | — | — |
dispatch_error | string | No | — | — |
reason | string | No | — | — |
organization_uuid | uuid | No | — | — |
actor | string | No | — | — |
failure_reason | string | No | — | — |
failure_type | string | No | — | — |
failed_action | string | No | — | — |
failed_at_state | string | No | — | — |
failed_step | string | No | — | — |
failed_layer | string | No | — | — |
error | string | No | — | — |
error_type | string | No | — | — |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
pending | Yes | No | — | execute | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
pending | execute | completed | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "identity.org-invitation.resend",
"initial_data": {
"invitation_uuid": "value",
"organization_uuid": "value",
"actor": "value"
}
}