Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

Agent API

Reference for the local Toolang agent HTTP API.

Base URL for a running local agent is http://127.0.0.1:<port> unless the agent is started with a different host or port.

Endpoints

MethodPathTagSummary
GET/api/v1/profileagentGet Profile
GET/healthzagentHealth Check
GET/api/v1/chat/modelschatList Chat Models
POST/api/v1/chatchatSubmit Chat
POST/api/v1/chat/streamchatSubmit Chat Stream
GET/api/v1/capscapsGet Caps Summary
GET/api/v1/promptscapsList Prompts
GET/api/v1/prompts/templatescapsList Prompt Templates
GET/api/v1/prompts/templates/{template_name}capsGet Prompt Template
GET/api/v1/prompts/{name}capsGet Prompt
GET/api/v1/psychescapsList Psyches
GET/api/v1/psyches/templatescapsList Psyche Templates
GET/api/v1/psyches/templates/{template_name}capsGet Psyche Template
GET/api/v1/psyches/{name}capsGet Psyche
GET/api/v1/servicescapsList Services
GET/api/v1/services/templatescapsList Service Templates
GET/api/v1/services/templates/{template_name}capsGet Service Template
GET/api/v1/services/{name}capsGet Service
GET/api/v1/skillscapsList Skills
GET/api/v1/skills/templatescapsList Skill Templates
GET/api/v1/skills/templates/{template_name}capsGet Skill Template
GET/api/v1/skills/{name}capsGet Skill
PUT/api/v1/prompts/{name}/filecapsUpsert File Prompt
PUT/api/v1/prompts/{name}/wiredcapsWire Prompt
PUT/api/v1/psyches/{name}/filecapsUpsert File Psyche
PUT/api/v1/psyches/{name}/wiredcapsWire Psyche
PUT/api/v1/services/{name}/filecapsUpsert File Service
PUT/api/v1/services/{name}/wiredcapsWire Service
PUT/api/v1/skills/{name}/filecapsUpsert File Skill
PUT/api/v1/skills/{name}/wiredcapsWire Skill
DELETE/api/v1/prompts/{name}/filecapsDelete File Prompt
DELETE/api/v1/prompts/{name}/wiredcapsUnwire Prompt
DELETE/api/v1/psyches/{name}/filecapsDelete File Psyche
DELETE/api/v1/psyches/{name}/wiredcapsUnwire Psyche
DELETE/api/v1/services/{name}/filecapsDelete File Service
DELETE/api/v1/services/{name}/wiredcapsUnwire Service
DELETE/api/v1/skills/{name}/filecapsDelete File Skill
DELETE/api/v1/skills/{name}/wiredcapsUnwire Skill
GET/api/v1/choresjobsList Chores
GET/api/v1/chores/archivedjobsList Archived Chores
GET/api/v1/chores/archived/{chore_id}jobsGet Archived Chore
GET/api/v1/chores/{chore_id}jobsGet Chore
GET/api/v1/jobsjobsList Jobs
GET/api/v1/jobs/archivedjobsList Archived Jobs
GET/api/v1/jobs/archived/{job_id}jobsGet Archived Job
GET/api/v1/jobs/{job_id}jobsGet Job
GET/api/v1/tasksjobsList Tasks
GET/api/v1/tasks/archivedjobsList Archived Tasks
GET/api/v1/tasks/archived/{task_id}jobsGet Archived Task
GET/api/v1/tasks/{task_id}jobsGet Task
GET/api/v1/willjobsGet Will
POST/api/v1/choresjobsCreate Chore
POST/api/v1/tasksjobsCreate Task
DELETE/api/v1/chores/archived/{chore_id}jobsDelete Archived Chore
DELETE/api/v1/jobs/archived/{job_id}jobsDelete Archived Job
DELETE/api/v1/tasks/archived/{task_id}jobsDelete Archived Task
PATCH/api/v1/chores/archived/{chore_id}jobsUpdate Archived Chore
PATCH/api/v1/chores/{chore_id}jobsUpdate Chore
PATCH/api/v1/jobs/archived/{job_id}jobsUpdate Archived Job
PATCH/api/v1/jobs/{job_id}jobsUpdate Job
PATCH/api/v1/tasks/archived/{task_id}jobsUpdate Archived Task
PATCH/api/v1/tasks/{task_id}jobsUpdate Task
GET/api/v1/agent/eventsactivityList Agent Events
GET/api/v1/agent/streamactivityStream Agent Events
GET/api/v1/context/{prompt_hash}activityGet Context Prompt
GET/api/v1/eventsactivityList Events
GET/api/v1/events/streamactivityStream Events
GET/api/v1/instruct/{prompt_hash}activityGet Instruct Prompt
GET/api/v1/runsactivityList Runs
GET/api/v1/runs/{run_id}activityGet Run
GET/api/v1/runs/{run_id}/eventsactivityList Run Events
GET/api/v1/runs/{run_id}/streamactivityStream Run Events
GET/api/v1/threadsactivityList Threads
GET/api/v1/threads/{thread_id}activityGet Thread
GET/api/v1/threads/{thread_id}/eventsactivityList Thread Events
GET/api/v1/threads/{thread_id}/streamactivityStream Thread Events
POST/api/v1/runs/{run_id}/restartactivityRestart Run
POST/api/v1/runs/{run_id}/steeractivitySteer Run
POST/api/v1/runs/{run_id}/stopactivityStop Run

Agent

Agent profile and health endpoints.

Get Profile

GET /api/v1/profile

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonobject

Health Check

GET /healthz

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonobject

Chat

Chat submission and streaming endpoints.

List Chat Models

GET /api/v1/chat/models

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonobject

Submit Chat

POST /api/v1/chat

Request body:

Content TypeRequiredSchema
application/jsonyesChatRequest

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonobject
422Validation Errorapplication/jsonHTTPValidationError

Submit Chat Stream

POST /api/v1/chat/stream

Request body:

Content TypeRequiredSchema
application/jsonyesChatRequest

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonany
422Validation Errorapplication/jsonHTTPValidationError

Caps

Capability inspection and mutation endpoints.

Get Caps Summary

GET /api/v1/caps

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonobject

List Prompts

GET /api/v1/prompts

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonobject

List Prompt Templates

GET /api/v1/prompts/templates

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonobject

Get Prompt Template

GET /api/v1/prompts/templates/{template_name}

Parameters:

NameInRequiredTypeDefaultDescription
template_namepathyesstring

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonobject
422Validation Errorapplication/jsonHTTPValidationError

Get Prompt

GET /api/v1/prompts/{name}

Parameters:

NameInRequiredTypeDefaultDescription
namepathyesstring

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonobject
422Validation Errorapplication/jsonHTTPValidationError

List Psyches

GET /api/v1/psyches

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonobject

List Psyche Templates

GET /api/v1/psyches/templates

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonobject

Get Psyche Template

GET /api/v1/psyches/templates/{template_name}

Parameters:

NameInRequiredTypeDefaultDescription
template_namepathyesstring

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonobject
422Validation Errorapplication/jsonHTTPValidationError

Get Psyche

GET /api/v1/psyches/{name}

Parameters:

NameInRequiredTypeDefaultDescription
namepathyesstring

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonobject
422Validation Errorapplication/jsonHTTPValidationError

List Services

GET /api/v1/services

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonobject

List Service Templates

GET /api/v1/services/templates

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonobject

Get Service Template

GET /api/v1/services/templates/{template_name}

Parameters:

NameInRequiredTypeDefaultDescription
template_namepathyesstring

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonobject
422Validation Errorapplication/jsonHTTPValidationError

Get Service

GET /api/v1/services/{name}

Parameters:

NameInRequiredTypeDefaultDescription
namepathyesstring

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonobject
422Validation Errorapplication/jsonHTTPValidationError

List Skills

GET /api/v1/skills

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonobject

List Skill Templates

GET /api/v1/skills/templates

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonobject

Get Skill Template

GET /api/v1/skills/templates/{template_name}

Parameters:

NameInRequiredTypeDefaultDescription
template_namepathyesstring

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonobject
422Validation Errorapplication/jsonHTTPValidationError

Get Skill

GET /api/v1/skills/{name}

Parameters:

NameInRequiredTypeDefaultDescription
namepathyesstring

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonobject
422Validation Errorapplication/jsonHTTPValidationError

Upsert File Prompt

PUT /api/v1/prompts/{name}/file

Parameters:

NameInRequiredTypeDefaultDescription
namepathyesstring

Request body:

Content TypeRequiredSchema
application/jsonyesPutCapRequest

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonobject
422Validation Errorapplication/jsonHTTPValidationError

Wire Prompt

PUT /api/v1/prompts/{name}/wired

Parameters:

NameInRequiredTypeDefaultDescription
namepathyesstring

Request body:

Content TypeRequiredSchema
application/jsonyesWiredCapRequest

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonobject
422Validation Errorapplication/jsonHTTPValidationError

Upsert File Psyche

PUT /api/v1/psyches/{name}/file

Parameters:

NameInRequiredTypeDefaultDescription
namepathyesstring

Request body:

Content TypeRequiredSchema
application/jsonyesPutCapRequest

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonobject
422Validation Errorapplication/jsonHTTPValidationError

Wire Psyche

PUT /api/v1/psyches/{name}/wired

Parameters:

NameInRequiredTypeDefaultDescription
namepathyesstring

Request body:

Content TypeRequiredSchema
application/jsonyesWiredCapRequest

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonobject
422Validation Errorapplication/jsonHTTPValidationError

Upsert File Service

PUT /api/v1/services/{name}/file

Parameters:

NameInRequiredTypeDefaultDescription
namepathyesstring

Request body:

Content TypeRequiredSchema
application/jsonyesPutCapRequest

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonobject
422Validation Errorapplication/jsonHTTPValidationError

Wire Service

PUT /api/v1/services/{name}/wired

Parameters:

NameInRequiredTypeDefaultDescription
namepathyesstring

Request body:

Content TypeRequiredSchema
application/jsonyesWiredCapRequest

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonobject
422Validation Errorapplication/jsonHTTPValidationError

Upsert File Skill

PUT /api/v1/skills/{name}/file

Parameters:

NameInRequiredTypeDefaultDescription
namepathyesstring

Request body:

Content TypeRequiredSchema
application/jsonyesPutCapRequest

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonobject
422Validation Errorapplication/jsonHTTPValidationError

Wire Skill

PUT /api/v1/skills/{name}/wired

Parameters:

NameInRequiredTypeDefaultDescription
namepathyesstring

Request body:

Content TypeRequiredSchema
application/jsonyesWiredCapRequest

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonobject
422Validation Errorapplication/jsonHTTPValidationError

Delete File Prompt

DELETE /api/v1/prompts/{name}/file

Parameters:

NameInRequiredTypeDefaultDescription
namepathyesstring
visibilityquerynoprivate | shared"private"

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonobject
422Validation Errorapplication/jsonHTTPValidationError

Unwire Prompt

DELETE /api/v1/prompts/{name}/wired

Parameters:

NameInRequiredTypeDefaultDescription
namepathyesstring
visibilityquerynoprivate | shared"private"

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonobject
422Validation Errorapplication/jsonHTTPValidationError

Delete File Psyche

DELETE /api/v1/psyches/{name}/file

Parameters:

NameInRequiredTypeDefaultDescription
namepathyesstring
visibilityquerynoprivate | shared"private"

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonobject
422Validation Errorapplication/jsonHTTPValidationError

Unwire Psyche

DELETE /api/v1/psyches/{name}/wired

Parameters:

NameInRequiredTypeDefaultDescription
namepathyesstring
visibilityquerynoprivate | shared"private"

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonobject
422Validation Errorapplication/jsonHTTPValidationError

Delete File Service

DELETE /api/v1/services/{name}/file

Parameters:

NameInRequiredTypeDefaultDescription
namepathyesstring
visibilityquerynoprivate | shared"private"

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonobject
422Validation Errorapplication/jsonHTTPValidationError

Unwire Service

DELETE /api/v1/services/{name}/wired

Parameters:

NameInRequiredTypeDefaultDescription
namepathyesstring
visibilityquerynoprivate | shared"private"

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonobject
422Validation Errorapplication/jsonHTTPValidationError

Delete File Skill

DELETE /api/v1/skills/{name}/file

Parameters:

NameInRequiredTypeDefaultDescription
namepathyesstring
visibilityquerynoprivate | shared"private"

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonobject
422Validation Errorapplication/jsonHTTPValidationError

Unwire Skill

DELETE /api/v1/skills/{name}/wired

Parameters:

NameInRequiredTypeDefaultDescription
namepathyesstring
visibilityquerynoprivate | shared"private"

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonobject
422Validation Errorapplication/jsonHTTPValidationError

Jobs

Task, chore, and will inspection endpoints.

List Chores

GET /api/v1/chores

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonobject

List Archived Chores

GET /api/v1/chores/archived

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonobject

Get Archived Chore

GET /api/v1/chores/archived/{chore_id}

Parameters:

NameInRequiredTypeDefaultDescription
chore_idpathyesstring

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonobject
422Validation Errorapplication/jsonHTTPValidationError

Get Chore

GET /api/v1/chores/{chore_id}

Parameters:

NameInRequiredTypeDefaultDescription
chore_idpathyesstring

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonobject
422Validation Errorapplication/jsonHTTPValidationError

List Jobs

GET /api/v1/jobs

Parameters:

NameInRequiredTypeDefaultDescription
kindquerynotask | chore | null

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonobject
422Validation Errorapplication/jsonHTTPValidationError

List Archived Jobs

GET /api/v1/jobs/archived

Parameters:

NameInRequiredTypeDefaultDescription
kindquerynotask | chore | null

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonobject
422Validation Errorapplication/jsonHTTPValidationError

Get Archived Job

GET /api/v1/jobs/archived/{job_id}

Parameters:

NameInRequiredTypeDefaultDescription
job_idpathyesstring

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonobject
422Validation Errorapplication/jsonHTTPValidationError

Get Job

GET /api/v1/jobs/{job_id}

Parameters:

NameInRequiredTypeDefaultDescription
job_idpathyesstring

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonobject
422Validation Errorapplication/jsonHTTPValidationError

List Tasks

GET /api/v1/tasks

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonobject

List Archived Tasks

GET /api/v1/tasks/archived

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonobject

Get Archived Task

GET /api/v1/tasks/archived/{task_id}

Parameters:

NameInRequiredTypeDefaultDescription
task_idpathyesstring

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonobject
422Validation Errorapplication/jsonHTTPValidationError

Get Task

GET /api/v1/tasks/{task_id}

Parameters:

NameInRequiredTypeDefaultDescription
task_idpathyesstring

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonobject
422Validation Errorapplication/jsonHTTPValidationError

Get Will

GET /api/v1/will

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonobject

Create Chore

POST /api/v1/chores

Request body:

Content TypeRequiredSchema
application/jsonyesChoreCreateRequest

Responses:

StatusDescriptionContent TypeSchema
201Successful Responseapplication/jsonobject
422Validation Errorapplication/jsonHTTPValidationError

Create Task

POST /api/v1/tasks

Request body:

Content TypeRequiredSchema
application/jsonyesTaskCreateRequest

Responses:

StatusDescriptionContent TypeSchema
201Successful Responseapplication/jsonobject
422Validation Errorapplication/jsonHTTPValidationError

Delete Archived Chore

DELETE /api/v1/chores/archived/{chore_id}

Parameters:

NameInRequiredTypeDefaultDescription
chore_idpathyesstring

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonobject
422Validation Errorapplication/jsonHTTPValidationError

Delete Archived Job

DELETE /api/v1/jobs/archived/{job_id}

Parameters:

NameInRequiredTypeDefaultDescription
job_idpathyesstring

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonobject
422Validation Errorapplication/jsonHTTPValidationError

Delete Archived Task

DELETE /api/v1/tasks/archived/{task_id}

Parameters:

NameInRequiredTypeDefaultDescription
task_idpathyesstring

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonobject
422Validation Errorapplication/jsonHTTPValidationError

Update Archived Chore

PATCH /api/v1/chores/archived/{chore_id}

Parameters:

NameInRequiredTypeDefaultDescription
chore_idpathyesstring

Request body:

Content TypeRequiredSchema
application/jsonyesChorePatchRequest

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonobject
422Validation Errorapplication/jsonHTTPValidationError

Update Chore

PATCH /api/v1/chores/{chore_id}

Parameters:

NameInRequiredTypeDefaultDescription
chore_idpathyesstring

Request body:

Content TypeRequiredSchema
application/jsonyesChorePatchRequest

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonobject
422Validation Errorapplication/jsonHTTPValidationError

Update Archived Job

PATCH /api/v1/jobs/archived/{job_id}

Parameters:

NameInRequiredTypeDefaultDescription
job_idpathyesstring

Request body:

Content TypeRequiredSchema
application/jsonyesJobPatchRequest

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonobject
422Validation Errorapplication/jsonHTTPValidationError

Update Job

PATCH /api/v1/jobs/{job_id}

Parameters:

NameInRequiredTypeDefaultDescription
job_idpathyesstring

Request body:

Content TypeRequiredSchema
application/jsonyesJobPatchRequest

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonobject
422Validation Errorapplication/jsonHTTPValidationError

Update Archived Task

PATCH /api/v1/tasks/archived/{task_id}

Parameters:

NameInRequiredTypeDefaultDescription
task_idpathyesstring

Request body:

Content TypeRequiredSchema
application/jsonyesTaskPatchRequest

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonobject
422Validation Errorapplication/jsonHTTPValidationError

Update Task

PATCH /api/v1/tasks/{task_id}

Parameters:

NameInRequiredTypeDefaultDescription
task_idpathyesstring

Request body:

Content TypeRequiredSchema
application/jsonyesTaskPatchRequest

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonobject
422Validation Errorapplication/jsonHTTPValidationError

Activity

Thread, run, and event history endpoints.

List Agent Events

GET /api/v1/agent/events

Parameters:

NameInRequiredTypeDefaultDescription
afterquerynointeger | null
limitquerynointeger100

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonobject
422Validation Errorapplication/jsonHTTPValidationError

Stream Agent Events

GET /api/v1/agent/stream

Parameters:

NameInRequiredTypeDefaultDescription
afterquerynointeger | null

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonany
422Validation Errorapplication/jsonHTTPValidationError

Get Context Prompt

GET /api/v1/context/{prompt_hash}

Parameters:

NameInRequiredTypeDefaultDescription
prompt_hashpathyesstring

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonobject
422Validation Errorapplication/jsonHTTPValidationError

List Events

GET /api/v1/events

Parameters:

NameInRequiredTypeDefaultDescription
limitquerynointeger100

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonobject
422Validation Errorapplication/jsonHTTPValidationError

Stream Events

GET /api/v1/events/stream

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonany

Get Instruct Prompt

GET /api/v1/instruct/{prompt_hash}

Parameters:

NameInRequiredTypeDefaultDescription
prompt_hashpathyesstring

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonobject
422Validation Errorapplication/jsonHTTPValidationError

List Runs

GET /api/v1/runs

Parameters:

NameInRequiredTypeDefaultDescription
limitquerynointeger50
thread_idquerynostring | null

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonobject
422Validation Errorapplication/jsonHTTPValidationError

Get Run

GET /api/v1/runs/{run_id}

Parameters:

NameInRequiredTypeDefaultDescription
run_idpathyesstring

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonobject
422Validation Errorapplication/jsonHTTPValidationError

List Run Events

GET /api/v1/runs/{run_id}/events

Parameters:

NameInRequiredTypeDefaultDescription
run_idpathyesstring
afterquerynointeger | null
limitquerynointeger100

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonobject
422Validation Errorapplication/jsonHTTPValidationError

Stream Run Events

GET /api/v1/runs/{run_id}/stream

Parameters:

NameInRequiredTypeDefaultDescription
run_idpathyesstring
afterquerynointeger | null

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonany
422Validation Errorapplication/jsonHTTPValidationError

List Threads

GET /api/v1/threads

Parameters:

NameInRequiredTypeDefaultDescription
limitquerynointeger50
originquerynostring | null

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonobject
422Validation Errorapplication/jsonHTTPValidationError

Get Thread

GET /api/v1/threads/{thread_id}

Parameters:

NameInRequiredTypeDefaultDescription
thread_idpathyesstring
limitquerynointeger50

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonobject
422Validation Errorapplication/jsonHTTPValidationError

List Thread Events

GET /api/v1/threads/{thread_id}/events

Parameters:

NameInRequiredTypeDefaultDescription
thread_idpathyesstring
afterquerynointeger | null
limitquerynointeger100

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonobject
422Validation Errorapplication/jsonHTTPValidationError

Stream Thread Events

GET /api/v1/threads/{thread_id}/stream

Parameters:

NameInRequiredTypeDefaultDescription
thread_idpathyesstring
afterquerynointeger | null

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonany
422Validation Errorapplication/jsonHTTPValidationError

Restart Run

POST /api/v1/runs/{run_id}/restart

Parameters:

NameInRequiredTypeDefaultDescription
run_idpathyesstring

Request body:

Content TypeRequiredSchema
application/jsonyesRunRestartRequest

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonobject
422Validation Errorapplication/jsonHTTPValidationError

Steer Run

POST /api/v1/runs/{run_id}/steer

Parameters:

NameInRequiredTypeDefaultDescription
run_idpathyesstring

Request body:

Content TypeRequiredSchema
application/jsonyesRunSteerRequest

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonobject
422Validation Errorapplication/jsonHTTPValidationError

Stop Run

POST /api/v1/runs/{run_id}/stop

Parameters:

NameInRequiredTypeDefaultDescription
run_idpathyesstring

Request body:

Content TypeRequiredSchema
application/jsonnoRunCancelRequest | null

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonobject
422Validation Errorapplication/jsonHTTPValidationError

Schemas

ChatMessagePayload

One structured chat message payload.

FieldRequiredTypeDefaultDescription
metanoobject
partsyesarray<object>
rolenostring"user"

ChatRequest

One formal chat submission.

FieldRequiredTypeDefaultDescription
clientnoweb | tui | chat"web"
messageyesChatMessagePayload
modelnostring | null
peernoThreadPeerPayload | null
request_idnostring | null
threadnostring | null

ChoreCreateRequest

FieldRequiredTypeDefaultDescription
bodynostring""
schedulenostring"FREQ=HOURLY;INTERVAL=1"
statenoactive | inactive"active"
titlenostring | null

ChorePatchRequest

FieldRequiredTypeDefaultDescription
bodynostring | null
schedulenostring | null
statenoactive | inactive | archived | null
titlenostring | null

JobPatchRequest

FieldRequiredTypeDefaultDescription
bodynostring | null
schedulenostring | null
stagenotodo | running | done | failed | null
statenoactive | inactive | archived | null
titlenostring | null

PutCapRequest

One authored cap write request.

FieldRequiredTypeDefaultDescription
contentnostring | null
visibilitynoprivate | shared"private"

RunCancelRequest

Request run cancellation.

FieldRequiredTypeDefaultDescription
modenostring"immediate"
reasonnostring | null
request_idnostring | null

RunInputMessagePayload

One user-authored run input message.

FieldRequiredTypeDefaultDescription
metanoobject
partsyesarray<object>
rolenostring"user"

RunRestartRequest

Request one restarted chat run with a replacement input.

FieldRequiredTypeDefaultDescription
messageyesRunInputMessagePayload
request_idnostring | null

RunSteerRequest

Request one steering message for a running run.

FieldRequiredTypeDefaultDescription
messageyesRunInputMessagePayload
modenostring"next_step"
request_idnostring | null

TaskCreateRequest

FieldRequiredTypeDefaultDescription
bodynostring""
stagenotodo | running | done | failed"todo"
statenoactive | inactive"active"
titlenostring | null

TaskPatchRequest

FieldRequiredTypeDefaultDescription
bodynostring | null
stagenotodo | running | done | failed | null
statenoactive | inactive | archived | null
titlenostring | null

ThreadPeerPayload

One optional chat thread peer descriptor.

FieldRequiredTypeDefaultDescription
namenostring"user"
threadnostring | null
typenostring"user"

WiredCapRequest

One wired cap ref mutation request.

FieldRequiredTypeDefaultDescription
refyesstring
visibilitynoprivate | shared"private"

HTTPValidationError

FieldRequiredTypeDefaultDescription
detailnoarray<ValidationError>

ValidationError

FieldRequiredTypeDefaultDescription
ctxnoobject
inputnoany
locyesarray<string | integer>
msgyesstring
typeyesstring
© 2026 Toolang