Sessions

Start a session (console, by Project)

The console's form of POST /o/{org}/sessions, with the Project in the path (_ for none). A signed-in caller reads the console's own session shape.

post/o/{org}/p/{project}/sessions

Request

  • Base URL: https://api.prix.dev
  • URL: https://api.prix.dev/o/{org}/p/{project}/sessions
  • Auth: HTTP bearer

Headers

Idempotency-Keystring

A retried create with the same key and body returns the run the key first started, until that run fails or is cancelled. The same key with another body is 409 IDEMPOTENCY_CONFLICT. Keys are per caller and org.

Request body

agentstring

What runs: a harness (claude, codex or opencode), or a saved agent's id (GET /o/{org}/agents), which brings its harness, model, effort, instructions, skills and connections.

modelstring

A model id that GET /o/{org}/agents/available lists for this harness. Omitted: the harness default.

effort'none' | 'minimal' | 'low' | 'medium' | 'high' | 'xhigh' | 'max' | 'auto'

Reasoning effort; must be one the model's row lists.

account_idstring

Run on this one of the caller's own accounts (a Claude or ChatGPT subscription, or an Anthropic or OpenAI API key). Omitted: their subscriptions first, then their API key.

strategy'platform'

Run on Rush's models, metered on the caller's plan, instead of their own accounts.

Example request

{
  "agent": "claude"
}

Response

The console's answer.

Changes

No recorded changes to this operation across all 2 revisions of this API.