identity.end-user.continuation.issue ​
Issue a single-use grant to finish one piece of work as the calling end-user
Issue a continuation grant so an agent can finish this piece of work after the session ends.
Inputs:
- conversation_uuid: the conversation the work belongs to (required)
- request_id: the request being continued (required)
- ttl_seconds: lifetime, default 900, capped at 3600 (optional)
Outputs:
- token: the opaque handle — returned ONCE, never retrievable again
- grant_uuid, expires_at, conversation_uuid, request_id
Overview ​
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | App-identity |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
conversation_uuid | string | Yes | — | — |
request_id | string | Yes | — | — |
ttl_seconds | integer | No | — | — |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
token | string | Yes | — | — |
grant_uuid | string | Yes | — | — |
expires_at | string | Yes | — | — |
conversation_uuid | string | No | — | — |
request_id | string | 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.continuation.issue",
"initial_data": {
"conversation_uuid": "value",
"request_id": "value"
}
}