The Managed Agents adapter models a conversation as an event-sourced session: you create a session, post user events into it, and stream back an orderedDocumentation Index
Fetch the complete documentation index at: https://docs.karta.sh/llms.txt
Use this file to discover all available pages before exploring further.
agent.* event log. It maps Karta’s
typed events onto the Anthropic managed-agent
shape. Auth: a session token or a kt_live_… key.
Create a session
POST /v1/projects/{project_ref}/managed-agents/sessions
Post an event
POST /v1/projects/{project_ref}/managed-agents/sessions/{session_id}/events
Posting a user event spawns the turn in the background and returns immediately;
you observe the result on the event stream.
user.message, user.tool_confirmation, or user.interrupt.The message text — required for
user.message.Optional tool reference.
Required for
user.tool_confirmation — the approval being answered.allow or deny — required for user.tool_confirmation.Stream events
GET /v1/projects/{project_ref}/managed-agents/sessions/{session_id}/events/stream
Streams agent.* events as the turn runs. Pass ?after=<seq> to resume from a
known sequence number — the log is ordered and replayable.
Fetch session state
GET /v1/projects/{project_ref}/managed-agents/sessions/{session_id}
status is idle or running; events is the ordered log so far.
Why event-sourced
This shape suits clients that prefer post-and-observe over request/response: a UI posts a user message, then renders the agent’sagent.* events as they
arrive — including tool-confirmation prompts it answers with a follow-up event.
The ordered, replayable log makes reconnection and catch-up straightforward
(after=<seq>).
Status codes
201 (create), 202 (event accepted), 400 (bad body), 401, 402, 403,
404, 409. See Errors.