ReadonlycancelCancels a running session. Pass-through to the agent-sdk client
(POST /v4/sessions/:id/cancel).
ReadonlyfetchFetches the session's cross-turn message history. Pass-through to the
agent-sdk client (GET /v4/sessions/:id/thread).
ReadonlyfetchFetches the session timeline summary. Pass-through to the agent-sdk client
(GET /v4/sessions/:id/timeline).
ReadonlyresolveResolves a vault:// reference to bytes/stream/json. Pass-through to the
agent-sdk client.
ReadonlystreamStreams a session's events. Pass-through to the agent-sdk client
(GET /v4/sessions/:id).
ReadonlyupdateUpdates the model used by a session. Pass-through to the agent-sdk client
(PUT /v4/sessions/:id/model). This works before the first message and
between turns; an actively processing turn rejects the change.
Fetches an agent record by id via the Tela gateway (GET /agent/:id).
Lists the agents available in the workspace (optionally filtered by
project) via the Tela gateway (GET /agent).
Starts (or continues) an agent session via the Tela gateway
(POST /agent/:id/run).
agentId (+ message).agentId and the wakeSessionId returned by
wake. Tela resolves the repository identity internally.agentId and the existing sessionId.The per-variable inputs map is flattened into the wire inputSchema
array (each entry tagged with its variable name); any TelaFile inputs are
uploaded to the vault first. Returns the sessionId to stream/inspect.
Starts (or continues) an agent session with direct streaming enabled via
the Tela gateway (POST /agent/:id/run/direct-stream).
Accepts the same inputs and returns the same response as run; the dedicated path opts the upstream Agent API execution into its direct stream transport.
Updates an agent's model, delegating to the agent-sdk client
(PUT /v4/agents/:repository/model). The agentId is resolved to the
underlying repository first.
Starts warming an agent session or re-wakes an existing paused session,
delegating to the agent-sdk client
(POST /v4/agents/:organizationName/:repository/wake). The Tela
agentId is resolved to its organization and repository first.
Pass runtime environment variables here so they are injected before the worker is primed; do not resend them when claiming the returned session.
Pass the same webhooks to run when claiming the warmed session.
Agents API resource.
Example