/v1 endpoints take Authorization: Bearer mk_live_… and are scoped to the key’s workspace. See Introduction for auth, rate limits, and versioning.
GET /v1/envs
List the workspace’s environments (mirrors), newest first.GET /v1/envs/{slug}
Fetch one environment by slug. Returns the same summary shape as the list endpoint. Slugs from other workspaces return404 — never another tenant’s data.
POST /v1/envs/{slug}/query
Run a one-shot query against the mirror and get back the agent’s response plus the full trace. This is the same run path as the Playground: entitlement and sandbox quota gates, deterministic seeding, and per-workspace rate limiting all apply.Body
The user message to run against the mirror.
Optional world-seeding instructions (e.g. “a customer with one refundable booking”). The mirror’s world is constructed to satisfy them.
World seed. The same seed + instructions produce a byte-identical world. Omit to draw a fresh seed — it’s returned in the result so you can replay.
Derive seed instructions from the query itself when none are given.
Model id to run the agent on. Omit for the environment default.
Response
seed, world_hash, and effective seed_instructions are reproducibility receipts — feed the same seed and instructions back in and the world (and run) is identical.
GET /v1/usage
Task-minutes used vs. your plan allowance for the workspace — the same numbers asmirrors usage and the dashboard.
