Handback an agent session
Fences an idle Session before returning its public continuity snapshot.
Fences an idle Session before returning its public continuity snapshot.
- Path
POST https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/agent_sessions/agent-session:handback - Scope
agents:sessions - Effect
write— a successful call changes state. - Collection agent_sessions
Request
| Field | Type | What it is |
|---|---|---|
name | string | Canonical source Session resource name. Required. |
destination_id | string | Stable opaque destination identity (1–128 bytes). Persist it before calling and reuse it after a lost response. A different ID cannot take over. To return to Cloud, adopt into a new Session; this source stays fenced. Required. |
Response
| Field | Type | What it is |
|---|---|---|
snapshot | bytes | UTF-8 public continuity snapshot (base64 on HTTP). Never returned again. |
snapshot_sha256 | string | Lowercase SHA-256 hex of the exact decoded snapshot bytes. |
Errors
UNAUTHENTICATED— No valid key or token was presented.PERMISSION_DENIED— The key lacks the method's permission.RESOURCE_NOT_FOUND— The named Resource does not exist or is not visible.INVALID_FIELD— A field failed validation.INVALID_STATE— The Resource is in a state that forbids the call.
Every error arrives in the body Errors describes.
Examples
curl -X POST "https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/agent_sessions/agent-session:handback" \
-H "Authorization: Bearer $SYLPHX_API_KEY" \
-H "Content-Type: application/json" \
-d '{"destination_id":"…"}'