AgentSessionRoderHandoff
Operations
Every route this entity exposes. Each route links to its own reference on this page.
| Method | Route | SDK operation | Returns |
|---|---|---|---|
POST |
/api/v1/organizations/{org_slug}/repos/{repo_slug}/agent_sessions/{id}/roder_handoffs |
create |
Success |
Examples
One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.
Golang
Construct client as shown in the Golang setup, then call the operations:
created, err := client.AgentSessionRoderHandoff(nil).Create(map[string]any{"agent_session_id": "example", "organization_id": "example", "repo_id": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(created)
Lua
Construct client as shown in the Lua setup, then call the operations:
local created, err = client:AgentSessionRoderHandoff():create({ agent_session_id = "example", organization_id = "example", repo_id = "example" })
PHP
Construct client as shown in the PHP setup, then call the operations:
$created = $client->AgentSessionRoderHandoff()->create(["agent_session_id" => "example", "organization_id" => "example", "repo_id" => "example"]);
Python
Construct client as shown in the Python setup, then call the operations:
created = client.AgentSessionRoderHandoff().create({ "agent_session_id": "example", "organization_id": "example", "repo_id": "example" })
Ruby
Construct client as shown in the Ruby setup, then call the operations:
created = client.AgentSessionRoderHandoff.create({ "agent_session_id" => "example", "organization_id" => "example", "repo_id" => "example" })
TypeScript
Construct client as shown in the TypeScript setup, then call the operations:
const created = await client.AgentSessionRoderHandoff().create({ agent_session_id: "example", organization_id: "example", repo_id: "example" })
Fields
| Field | Type | Required | Description |
|---|---|---|---|
checkpoint_id |
string |
No | Public id of the checkpoint to hand off. |
purpose |
string |
No | Handoff intent; defaults to continue. |
create
POST /api/v1/organizations/{org_slug}/repos/{repo_slug}/agent_sessions/{id}/roder_handoffs
Operation ID: roder_handoffs_api_v1_agent_session.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
org_slug |
path |
string |
Yes | |
repo_slug |
path |
string |
Yes | |
id |
path |
string |
Yes |
Request body
application/json
| Property | Type | Required | Description |
|---|---|---|---|
checkpoint_id |
string |
No | Public id of the checkpoint to hand off. Defaults to the latest uploaded. |
purpose |
enum: ask_why, continue |
No | Handoff intent; defaults to continue. |
Responses
200: Success
application/json
The response is object.
201: Roder browser connection seeded with the session handoff capability
application/json
| Property | Type | Required | Description |
|---|---|---|---|
checkpoint_id |
string |
Yes | |
handoff |
object |
Yes | The resolved, non-secret handoff coordinate (citation) plus purpose and max_bytes. |
handoff.agent_checkpoint_id |
string |
Yes | |
handoff.max_bytes |
integer |
Yes | |
handoff.organization_slug |
string |
Yes | |
handoff.purpose |
string |
Yes | |
handoff.repository_slug |
string |
Yes | |
handoff.session_id |
string |
Yes | |
path |
string |
Yes | In-app path to the org Agents workspace where the conversation opens. |
roder_session |
object |
Yes | |
roder_session.browser_collaboration_version |
enum: 0, 1 |
Yes | |
roder_session.expires_at |
string (date-time) |
Yes | |
roder_session.expires_in_seconds |
integer |
Yes | Remaining capability lifetime measured by the server when the response was created. |
roder_session.mcp_token |
string |
Yes | |
roder_session.model |
string |
Yes | |
roder_session.model_provider |
string |
Yes | |
roder_session.organization_id |
string |
Yes | |
roder_session.repository_slug |
string |
Yes | |
roder_session.session_purpose |
enum: coding, browser_setup, onboarding |
Yes | |
roder_session.token |
string |
Yes | |
roder_session.workspace_dir |
string |
Yes | Compatibility root used to establish the SDK connection. workspace/list is authoritative for the active workspace. |
roder_session.ws_url |
string |
Yes | |
session_id |
string |
Yes |
401: Unauthorized
403: Forbidden
404: Not found
409: The session has no uploaded checkpoint to hand off
application/json
| Property | Type | Required | Description |
|---|---|---|---|
error |
string |
Yes |
422: The session checkpoint handoff coordinate could not be resolved
application/json
| Property | Type | Required | Description |
|---|---|---|---|
error |
string |
Yes |