/v1 endpoints take Authorization: Bearer mk_live_… and are scoped to the key’s workspace. See Introduction for auth, rate limits, and versioning.
This page is the account-level surface: which mirrors exist, and what the workspace has spent. What your agent actually binds to is on the tool plane.
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.
Replaying a trace
Replaying one recorded trace against a twin is on the app surface rather than/v1, because it is a dashboard action rather than something an agent drives:
POST /api/envs/{id}/traces/{trace_id}/replay returns the per-call diff the
Replay screen renders. It boots a container and spends a model call per simulated
call, so it goes through the same quota gate every other spending path does.
GET /v1/usage
Replay-minutes used vs. your plan allowance for the workspace, the same numbers asmirrors usage and the dashboard.
