Skip to content

Reference

HTTP api

Authenticate with Authorization: Bearer kl_live_... Everything is scoped to the key's org.

MethodPathDoes
POST/v1/agentsCreate an agent, or a new version when id is set
GET/v1/agentsList agents
POST/v1/runsStart a run: {agent_id, input}
GET/v1/runsList runs, newest first; filter by status or agent_id
GET/v1/runs/{id}One run
GET/v1/runs/{id}/eventsIts events, from after_seq
GET/v1/runs/{id}/streamServer 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}/cancelCancel
GET / POST/v1/schedulesList or add schedules
GET / POST/v1/triggersList or add triggers
GET / POST/v1/templatesList templates, or create an agent from one
GET/v1/usageRuns, 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.