Sessions
Create Session
Start a new agent coding session. If loop_id is omitted the server auto-creates a scoped loop.
POST
Create a new session scoped to the authenticated API key’s user. Sessions contain turns — the individual actions the agent wants human review on.
Authentication
string
required
Bearer API key.
Body
string
default:"claude"
claude or codex.string
Existing loop to route turns into. If omitted, the server auto-creates a loop named
"<agent_type> — <repo>" owned by the API-key user.object
Session context for reviewers.
Response
boolean
string
object
The newly created session (
id, status=active, loop_id, context, turn_count=0, timestamps).