Skip to content
POST
/api/v1/sessions/start
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" }'

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.

Media typeapplication/json

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
agent
required

Which harness runs the session.

string
Allowed values: claude codex
cwd
required

The working directory on that machine. ~/ is that machine’s home.

string
>= 1 characters <= 1000 characters
effort
string | null
handoff

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.

integer | null format: int64
model

The agent’s own default when absent.

string | null
name

The session’s name. The tab name when absent.

string | null
on
required

The machine (node) it runs on.

string
>= 1 characters <= 100 characters
prompt

Sent with herdr agent prompt once the agent is ready.

string | null
tab
required
string
>= 1 characters <= 100 characters

What the node did for a start or a resume.

Media typeapplication/json

What the node did for a start or a resume.

object
address
required

The new session’s address in the orchestrator.

string
node
required
string
prompt_error

Set when the session started but its initial prompt couldn’t be sent.

string | null
session_id

Absent when the agent hadn’t reported it yet (Codex before its first turn without /status).

string | null
tab
required
string

Example generated

{
"address": "example",
"node": "example",
"prompt_error": "example",
"session_id": "example",
"tab": "example"
}

An error, with its message.

Media typeapplication/json

Every error the REST API returns, with an HTTP status.

object
error
required
string

Example generated

{
"error": "example"
}