Skip to content
Console
On this page

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

FieldTypeWhat it is
namestringCanonical source Session resource name. Required.
destination_idstringStable 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

FieldTypeWhat it is
snapshotbytesUTF-8 public continuity snapshot (base64 on HTTP). Never returned again.
snapshot_sha256stringLowercase SHA-256 hex of the exact decoded snapshot bytes.

Errors

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":"…"}'