identity.user.delete
Request account deletion — sends email to ops; does not delete
Request account deletion — opens a support ticket via email; does not delete.
Inputs:
- actor: Cognito sub or user UUID of the requesting user (required)
- confirm: Must be true (required)
- confirmation_phrase: Must equal 'DELETE MY ACCOUNT' exactly (required)
- reason: Optional free-text reason to include in the request
Outputs (terminal state_data):
- user_uuid
- requested: True
- requested_at: ISO timestamp
- email_dispatched: best-effort bool
- email_workflow_ref: child workflow id when dispatch was started
- dispatch_error: best-effort dispatch error when the child could not be started
Overview
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | App-identity |
| Version | 1.0 |
Input Schema
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
actor | string | Yes | — | — |
confirm | boolean | Yes | — | — |
confirmation_phrase | string | Yes | — | — |
reason | string | No | — | — |
Output Schema
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
actor | string | Yes | — | — |
user_uuid | string | Yes | — | — |
requested | boolean | Yes | — | — |
requested_at | string | Yes | — | — |
email_dispatched | boolean | Yes | — | — |
email_workflow_ref | string | No | — | — |
dispatch_error | string | No | — | — |
reason | string | No | — | — |
confirm | boolean | No | — | — |
confirmation_phrase | 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.user.delete",
"initial_data": {
"actor": "value",
"confirm": true,
"confirmation_phrase": "value"
}
}