Skip to main content
POST

Authorizations

Authorization
string
header
required

Workspace API key created in Erstan Settings. Keys carry scopes (agents:list, agents:read, agents:write, agents:run, runs:read, tasks:execute, documents:read, documents:write, files:read, files:write). Agent access follows the key creator's current workspace, team, and agent permissions. Agent draft creation requires agents:write; update, validation, and publishing require both agents:read and agents:write; draft testing also requires agents:run. Keys with tasks:execute must include at least one allowed project or team (allowedProjectIds / allowedTeamIds); keys with document or file scopes must include at least one allowed team. Empty allowlists mean no access — the API fails closed.

Path Parameters

runId
string<uuid>
required

Terminal run ID returned by POST /v1/public/agents/{agentId}/runs or a previous continue call.

Body

application/json

Request body for sending a follow-up conversation turn to a terminal run.

message
string
required

Next user message for the conversation.

Required string length: 1 - 20000
attachments
object[]

Optional attachments supplied with this turn. Each item needs name, type, and either base64 or storageKey.

idempotencyKey
string

Reuse to prevent duplicate turns on retries of the same follow-up.

Maximum string length: 200

Response

Existing accepted turn returned for a matching idempotency key.

runId
string<uuid>
required

Run to poll for this turn — the same id for same-run continuations, a new id when the turn forked.

agentId
string
required
laneId
string | null
required
status
string
required

running once the follow-up turn is queued.