Levain LabsLevain Labs
API Reference

API Reference

Every endpoint, schema, and example payload.

The Levain Labs API lets you manage agents, trigger runs, inspect sandboxes, and track cost — everything the dashboard does, exposed over HTTPS.

All endpoints live under https://api.levainlabs.com/api/v1/ and require a bearer token:

Authorization: Bearer YOUR_API_KEY

See Authentication for how to create and manage keys.

Resources

ResourceWhat it covers
AgentsCreate, version, list, update, and archive agents.
RunsTrigger a run, poll status, stream logs, cancel.
SandboxesInspect the isolated environment a run is executing in.
AuthenticationAPI keys, workspace identity.
BYOKRegister and manage your own model-provider keys.
AnalyticsUsage summaries, billing roll-ups, and per-run cost breakdowns.
OrganizationCustomer workspaces, org keys, fleet agents, webhooks.

Every endpoint page includes request and response schemas, example payloads, and the exact error shapes you should expect.

On this page