Reference
HTTP api
Authenticate with Authorization: Bearer kl_live_... Everything is scoped to the key's org.
| Method | Path | Does |
|---|---|---|
| POST | /v1/agents | Create an agent, or a new version when id is set |
| GET | /v1/agents | List agents |
| POST | /v1/runs | Start a run: {agent_id, input} |
| GET | /v1/runs | List runs, newest first; filter by status or agent_id |
| GET | /v1/runs/{id} | One run |
| GET | /v1/runs/{id}/events | Its events, from after_seq |
| GET | /v1/runs/{id}/stream | Server sent events, live |
| POST | /v1/runs/{id}/approve | {call_id, approve} |
| POST | /v1/runs/{id}/resume | {call_id, decision, output} |
| POST | /v1/runs/{id}/fork | {from_step, agent_version?, tool_outputs?} |
| POST | /v1/runs/{id}/cancel | Cancel |
| GET / POST | /v1/schedules | List or add schedules |
| GET / POST | /v1/triggers | List or add triggers |
| GET / POST | /v1/templates | List templates, or create an agent from one |
| GET | /v1/usage | Runs, tokens and cost this month |
Errors are JSON with a detail field. 402 means a plan limit; 409 means the run isn't in a state that allows the action.