KestrelDocs

API Reference

The SDKs wrap a plain JSON API. Use it from any language, or from curl.

Base URL

Base URL
https://api.kestrel.dev/v1

Authentication

Send your API key as a bearer token on every request.

Terminal
curl https://api.kestrel.dev/v1/runs \
  -H "Authorization: Bearer $KESTREL_API_KEY"

Errors

Errors use HTTP status codes and a JSON body with a type and a message written for a person.

JSON
{
  "error": {
    "type": "forbidden",
    "message": "This key can't see acme/billing. Give it access in Settings → API keys."
  }
}
Statustype
400invalid_request
401auth
403forbidden
404not_found
409conflict, for example killing a sandbox twice
429rate_limited
5xxserver

Pagination

List endpoints return 20 items by default, up to 100 with limit. Pass the next cursor from a response to get the page after it.

JSON
{ "data": [ ... ], "next": "cur_7Hc2" }

Endpoints

  • Runs: create, read, list, cancel, trace.
  • Sandboxes: create, run commands, files, pause, resume, kill.

Was this page helpful?

Open the dashboard