Hand this session's context to another agent [write]
Changed onAccepted immediately; the move runs in the background. Poll the status_url in the response (also sent as the Location header) until status is terminal, then talk to target_session. target_agent is an agent id or a catalog @handle; llm and reasoningEffort choose the new session's model and thinking level. last_message_id bounds how much history is carried; omitted = all of it. The Idempotency-Key header is required and dedupes retries.
Request
- Base URLhttps://api.agentsky.dev/v1
- URLhttps://api.agentsky.dev/v1/sessions/{id}/handoff
- AuthHTTP bearer
Path parameters
The source session id (sess_…)
Headers
Required; a retry with the same key returns the same hand-off instead of starting another.
Request body
Response
Accepted — poll status_url
Changes
- breaking
added the new required
headerrequest parameterIdempotency-Key - info
added the new optional request property
- info
added the new optional request property
- info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status
- breaking