identity.end-user.whoami ​
Return the calling end-user's identity
Return the calling end-user's identity (from the injected token context).
Outputs (terminal state_data):
- end_user_uuid, identity_app_uuid, email
Overview ​
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | App-identity |
| Version | 1.0 |
Input Schema ​
No input fields required.
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
end_user_uuid | string | No | — | — |
identity_app_uuid | uuid | No | — | — |
email | string | No | — | — |
is_end_user | boolean | Yes | — | — |
role | string | No | — | — |
capabilities | list | No | — | — |
active_organization | dict | No | — | — |
failure_reason | string | No | — | — |
failure_type | string | No | — | — |
failed_action | string | No | — | — |
failed_at_state | string | No | — | — |
reason | 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.end-user.whoami",
"initial_data": { }
}