Start a session on a node
const url = 'https://deck.example.com/api/v1/sessions/start';const options = { method: 'POST', headers: {cookie: 'qd_auth=<qd_auth>', 'Content-Type': 'application/json'}, body: '{"agent":"claude","cwd":"example","effort":null,"handoff":1,"model":null,"name":null,"on":"example","prompt":null,"tab":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://deck.example.com/api/v1/sessions/start \ --header 'Content-Type: application/json' \ --cookie qd_auth=<qd_auth> \ --data '{ "agent": "claude", "cwd": "example", "effort": null, "handoff": 1, "model": null, "name": null, "on": "example", "prompt": null, "tab": "example" }'Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Start a session on a machine (flow 3.15). The node checks it, then runs herdr tab create --agent, with the
agent’s permission flags from its own node.yaml.
Start a session on a machine (flow 3.15). The node checks it, then runs herdr tab create --agent, with the
agent’s permission flags from its own node.yaml.
object
Which harness runs the session.
The working directory on that machine. ~/ is that machine’s home.
The handoff it starts from (quietdeck handoff add): the new session continues the one that wrote it, and
without a prompt its first prompt tells it to read the handoff. The deck’s alone: never sent to the node.
The agent’s own default when absent.
The session’s name. The tab name when absent.
The machine (node) it runs on.
Sent with herdr agent prompt once the agent is ready.
Responses
Section titled “Responses”What the node did for a start or a resume.
What the node did for a start or a resume.
object
The new session’s address in the orchestrator.
Set when the session started but its initial prompt couldn’t be sent.
Absent when the agent hadn’t reported it yet (Codex before its first turn without /status).
Example generated
{ "address": "example", "node": "example", "prompt_error": "example", "session_id": "example", "tab": "example"}default
Section titled “default”An error, with its message.
Every error the REST API returns, with an HTTP status.
object
Example generated
{ "error": "example"}