Start a session
Starts one agent run in a fresh sandbox and returns it at once with 202; follow it with GET …/events or the key's webhook. It runs in the repository a resources URL names, or in none.
Started with an API key, the run uses the key creator's own accounts, as their console run would: a subscription first, then an API key, or the one account_id names. strategy: platform runs it on Rush's models instead, metered on the creator's plan. A key may have max_concurrent runs in progress (default 4); one more is 429 RATE_LIMITED. When agent is a saved agent's id the run uses that saved agent, and gets exactly the connections it names plus those the run names in connections. A key run's repository is reached through its creator's GitHub App installations, and a Linear issue through its creator's Linear connection.
Request
- Base URL: https://api.prix.dev
- URL: https://api.prix.dev/o/{org}/sessions
- Auth: HTTP bearer
Headers
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
Example request
{
"agent": "claude"
}Response
The session as GET reads it, in its status at admission (queued, allocating or running).
Changes
No recorded changes to this operation across all 3 revisions of this API.