kosa8 docs Dashboard
esc
↑ ↓ move↵ openRuns in your browser; nothing you type is sent anywhere.

HTTP API / Benchmarks

Benchmarks

5 endpoints at https://api.kosa8.com, sent with Authorization: Bearer $KOSA8_API_KEY. Generated from the API's own OpenAPI description, which a test holds to the router.

The ready-made benchmarks, with their source and revision#

GET/v1/benchmarksscope sandboxes:read
Responses
200401403
curl -s -X GET https://api.kosa8.com/v1/benchmarks \
  -H "Authorization: Bearer $KOSA8_API_KEY"

One benchmark#

GET/v1/benchmarks/{name}scope sandboxes:read
Parameters
namerequiredpath · string
Benchmark name, e.g. swe-bench-verified
Responses
200401403404
curl -s -X GET https://api.kosa8.com/v1/benchmarks/$NAME \
  -H "Authorization: Bearer $KOSA8_API_KEY"

A benchmark's instances, in the dataset's order, with their environments' state#

GET/v1/benchmarks/{name}/instancesscope sandboxes:read
Parameters
namerequiredpath · string
Benchmark name, e.g. swe-bench-verified
statequery · "ready" | "building" | "queued" | "failed" | "not_built"
Only instances whose environment is in this state
limitquery · integer
—
cursorquery · string
next_cursor of the page before
Responses
200400401403404
curl -s -X GET https://api.kosa8.com/v1/benchmarks/$NAME/instances \
  -H "Authorization: Bearer $KOSA8_API_KEY"

One instance: the solver's input and its environment's state and ETA, never the hidden tests#

GET/v1/benchmarks/{name}/instances/{id}scope sandboxes:read
Parameters
namerequiredpath · string
Benchmark name, e.g. swe-bench-verified
idrequiredpath · string
Instance id, e.g. django__django-11099
Responses
200401403404
curl -s -X GET https://api.kosa8.com/v1/benchmarks/$NAME/instances/$SBX \
  -H "Authorization: Bearer $KOSA8_API_KEY"

Build environments ahead of use (at most 100 a call)#

POST/v1/benchmarks/{name}/preparescope sandboxes:write

A create of an instance whose environment is not ready answers 409 template_building with eta_s and Retry-After; this builds them first instead. Building is kosa8's cost.

Parameters
namerequiredpath · string
Benchmark name, e.g. swe-bench-verified
JSON body
instancesrequiredarray of string | "all" | integer
Instance ids, "all", or n: a seeded sample of n
seedinteger
Min 0.
Responses
202400401402403404
curl -s -X POST https://api.kosa8.com/v1/benchmarks/$NAME/prepare \
  -H "Authorization: Bearer $KOSA8_API_KEY" \
  -H 'Content-Type: application/json' -d @body.json

The kosa8 weekly

Agent security news, one industry deep-dive and a hands-on challenge, every Monday. Unsubscribe in one click.

© 2026 kosa8 · kosa8.com · AI Agent Sandbox: Secure and Sovereign for Enterprise · Local models served by llamay · Agent gateway: MAQPNA