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
| Method | Path | Tag | Summary |
|---|---|---|---|
GET | /api/v1/profile | agent | Get Profile |
GET | /healthz | agent | Health Check |
GET | /api/v1/chat/models | chat | List Chat Models |
POST | /api/v1/chat | chat | Submit Chat |
POST | /api/v1/chat/stream | chat | Submit Chat Stream |
GET | /api/v1/caps | caps | Get Caps Summary |
GET | /api/v1/prompts | caps | List Prompts |
GET | /api/v1/prompts/templates | caps | List Prompt Templates |
GET | /api/v1/prompts/templates/{template_name} | caps | Get Prompt Template |
GET | /api/v1/prompts/{name} | caps | Get Prompt |
GET | /api/v1/psyches | caps | List Psyches |
GET | /api/v1/psyches/templates | caps | List Psyche Templates |
GET | /api/v1/psyches/templates/{template_name} | caps | Get Psyche Template |
GET | /api/v1/psyches/{name} | caps | Get Psyche |
GET | /api/v1/services | caps | List Services |
GET | /api/v1/services/templates | caps | List Service Templates |
GET | /api/v1/services/templates/{template_name} | caps | Get Service Template |
GET | /api/v1/services/{name} | caps | Get Service |
GET | /api/v1/skills | caps | List Skills |
GET | /api/v1/skills/templates | caps | List Skill Templates |
GET | /api/v1/skills/templates/{template_name} | caps | Get Skill Template |
GET | /api/v1/skills/{name} | caps | Get Skill |
PUT | /api/v1/prompts/{name}/file | caps | Upsert File Prompt |
PUT | /api/v1/prompts/{name}/wired | caps | Wire Prompt |
PUT | /api/v1/psyches/{name}/file | caps | Upsert File Psyche |
PUT | /api/v1/psyches/{name}/wired | caps | Wire Psyche |
PUT | /api/v1/services/{name}/file | caps | Upsert File Service |
PUT | /api/v1/services/{name}/wired | caps | Wire Service |
PUT | /api/v1/skills/{name}/file | caps | Upsert File Skill |
PUT | /api/v1/skills/{name}/wired | caps | Wire Skill |
DELETE | /api/v1/prompts/{name}/file | caps | Delete File Prompt |
DELETE | /api/v1/prompts/{name}/wired | caps | Unwire Prompt |
DELETE | /api/v1/psyches/{name}/file | caps | Delete File Psyche |
DELETE | /api/v1/psyches/{name}/wired | caps | Unwire Psyche |
DELETE | /api/v1/services/{name}/file | caps | Delete File Service |
DELETE | /api/v1/services/{name}/wired | caps | Unwire Service |
DELETE | /api/v1/skills/{name}/file | caps | Delete File Skill |
DELETE | /api/v1/skills/{name}/wired | caps | Unwire Skill |
GET | /api/v1/chores | jobs | List Chores |
GET | /api/v1/chores/archived | jobs | List Archived Chores |
GET | /api/v1/chores/archived/{chore_id} | jobs | Get Archived Chore |
GET | /api/v1/chores/{chore_id} | jobs | Get Chore |
GET | /api/v1/jobs | jobs | List Jobs |
GET | /api/v1/jobs/archived | jobs | List Archived Jobs |
GET | /api/v1/jobs/archived/{job_id} | jobs | Get Archived Job |
GET | /api/v1/jobs/{job_id} | jobs | Get Job |
GET | /api/v1/tasks | jobs | List Tasks |
GET | /api/v1/tasks/archived | jobs | List Archived Tasks |
GET | /api/v1/tasks/archived/{task_id} | jobs | Get Archived Task |
GET | /api/v1/tasks/{task_id} | jobs | Get Task |
GET | /api/v1/will | jobs | Get Will |
POST | /api/v1/chores | jobs | Create Chore |
POST | /api/v1/tasks | jobs | Create Task |
DELETE | /api/v1/chores/archived/{chore_id} | jobs | Delete Archived Chore |
DELETE | /api/v1/jobs/archived/{job_id} | jobs | Delete Archived Job |
DELETE | /api/v1/tasks/archived/{task_id} | jobs | Delete Archived Task |
PATCH | /api/v1/chores/archived/{chore_id} | jobs | Update Archived Chore |
PATCH | /api/v1/chores/{chore_id} | jobs | Update Chore |
PATCH | /api/v1/jobs/archived/{job_id} | jobs | Update Archived Job |
PATCH | /api/v1/jobs/{job_id} | jobs | Update Job |
PATCH | /api/v1/tasks/archived/{task_id} | jobs | Update Archived Task |
PATCH | /api/v1/tasks/{task_id} | jobs | Update Task |
GET | /api/v1/agent/events | activity | List Agent Events |
GET | /api/v1/agent/stream | activity | Stream Agent Events |
GET | /api/v1/context/{prompt_hash} | activity | Get Context Prompt |
GET | /api/v1/events | activity | List Events |
GET | /api/v1/events/stream | activity | Stream Events |
GET | /api/v1/instruct/{prompt_hash} | activity | Get Instruct Prompt |
GET | /api/v1/runs | activity | List Runs |
GET | /api/v1/runs/{run_id} | activity | Get Run |
GET | /api/v1/runs/{run_id}/events | activity | List Run Events |
GET | /api/v1/runs/{run_id}/stream | activity | Stream Run Events |
GET | /api/v1/threads | activity | List Threads |
GET | /api/v1/threads/{thread_id} | activity | Get Thread |
GET | /api/v1/threads/{thread_id}/events | activity | List Thread Events |
GET | /api/v1/threads/{thread_id}/stream | activity | Stream Thread Events |
POST | /api/v1/runs/{run_id}/restart | activity | Restart Run |
POST | /api/v1/runs/{run_id}/steer | activity | Steer Run |
POST | /api/v1/runs/{run_id}/stop | activity | Stop Run |
Agent
Agent profile and health endpoints.
Get Profile
GET /api/v1/profile
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | object |
Health Check
GET /healthz
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | object |
Chat
Chat submission and streaming endpoints.
List Chat Models
GET /api/v1/chat/models
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | object |
Submit Chat
POST /api/v1/chat
Request body:
| Content Type | Required | Schema |
|---|---|---|
| application/json | yes | ChatRequest |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | object |
| 422 | Validation Error | application/json | HTTPValidationError |
Submit Chat Stream
POST /api/v1/chat/stream
Request body:
| Content Type | Required | Schema |
|---|---|---|
| application/json | yes | ChatRequest |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | any |
| 422 | Validation Error | application/json | HTTPValidationError |
Caps
Capability inspection and mutation endpoints.
Get Caps Summary
GET /api/v1/caps
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | object |
List Prompts
GET /api/v1/prompts
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | object |
List Prompt Templates
GET /api/v1/prompts/templates
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | object |
Get Prompt Template
GET /api/v1/prompts/templates/{template_name}
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| template_name | path | yes | string |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | object |
| 422 | Validation Error | application/json | HTTPValidationError |
Get Prompt
GET /api/v1/prompts/{name}
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| name | path | yes | string |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | object |
| 422 | Validation Error | application/json | HTTPValidationError |
List Psyches
GET /api/v1/psyches
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | object |
List Psyche Templates
GET /api/v1/psyches/templates
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | object |
Get Psyche Template
GET /api/v1/psyches/templates/{template_name}
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| template_name | path | yes | string |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | object |
| 422 | Validation Error | application/json | HTTPValidationError |
Get Psyche
GET /api/v1/psyches/{name}
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| name | path | yes | string |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | object |
| 422 | Validation Error | application/json | HTTPValidationError |
List Services
GET /api/v1/services
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | object |
List Service Templates
GET /api/v1/services/templates
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | object |
Get Service Template
GET /api/v1/services/templates/{template_name}
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| template_name | path | yes | string |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | object |
| 422 | Validation Error | application/json | HTTPValidationError |
Get Service
GET /api/v1/services/{name}
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| name | path | yes | string |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | object |
| 422 | Validation Error | application/json | HTTPValidationError |
List Skills
GET /api/v1/skills
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | object |
List Skill Templates
GET /api/v1/skills/templates
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | object |
Get Skill Template
GET /api/v1/skills/templates/{template_name}
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| template_name | path | yes | string |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | object |
| 422 | Validation Error | application/json | HTTPValidationError |
Get Skill
GET /api/v1/skills/{name}
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| name | path | yes | string |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | object |
| 422 | Validation Error | application/json | HTTPValidationError |
Upsert File Prompt
PUT /api/v1/prompts/{name}/file
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| name | path | yes | string |
Request body:
| Content Type | Required | Schema |
|---|---|---|
| application/json | yes | PutCapRequest |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | object |
| 422 | Validation Error | application/json | HTTPValidationError |
Wire Prompt
PUT /api/v1/prompts/{name}/wired
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| name | path | yes | string |
Request body:
| Content Type | Required | Schema |
|---|---|---|
| application/json | yes | WiredCapRequest |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | object |
| 422 | Validation Error | application/json | HTTPValidationError |
Upsert File Psyche
PUT /api/v1/psyches/{name}/file
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| name | path | yes | string |
Request body:
| Content Type | Required | Schema |
|---|---|---|
| application/json | yes | PutCapRequest |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | object |
| 422 | Validation Error | application/json | HTTPValidationError |
Wire Psyche
PUT /api/v1/psyches/{name}/wired
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| name | path | yes | string |
Request body:
| Content Type | Required | Schema |
|---|---|---|
| application/json | yes | WiredCapRequest |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | object |
| 422 | Validation Error | application/json | HTTPValidationError |
Upsert File Service
PUT /api/v1/services/{name}/file
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| name | path | yes | string |
Request body:
| Content Type | Required | Schema |
|---|---|---|
| application/json | yes | PutCapRequest |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | object |
| 422 | Validation Error | application/json | HTTPValidationError |
Wire Service
PUT /api/v1/services/{name}/wired
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| name | path | yes | string |
Request body:
| Content Type | Required | Schema |
|---|---|---|
| application/json | yes | WiredCapRequest |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | object |
| 422 | Validation Error | application/json | HTTPValidationError |
Upsert File Skill
PUT /api/v1/skills/{name}/file
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| name | path | yes | string |
Request body:
| Content Type | Required | Schema |
|---|---|---|
| application/json | yes | PutCapRequest |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | object |
| 422 | Validation Error | application/json | HTTPValidationError |
Wire Skill
PUT /api/v1/skills/{name}/wired
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| name | path | yes | string |
Request body:
| Content Type | Required | Schema |
|---|---|---|
| application/json | yes | WiredCapRequest |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | object |
| 422 | Validation Error | application/json | HTTPValidationError |
Delete File Prompt
DELETE /api/v1/prompts/{name}/file
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| name | path | yes | string | ||
| visibility | query | no | private | shared | "private" |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | object |
| 422 | Validation Error | application/json | HTTPValidationError |
Unwire Prompt
DELETE /api/v1/prompts/{name}/wired
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| name | path | yes | string | ||
| visibility | query | no | private | shared | "private" |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | object |
| 422 | Validation Error | application/json | HTTPValidationError |
Delete File Psyche
DELETE /api/v1/psyches/{name}/file
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| name | path | yes | string | ||
| visibility | query | no | private | shared | "private" |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | object |
| 422 | Validation Error | application/json | HTTPValidationError |
Unwire Psyche
DELETE /api/v1/psyches/{name}/wired
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| name | path | yes | string | ||
| visibility | query | no | private | shared | "private" |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | object |
| 422 | Validation Error | application/json | HTTPValidationError |
Delete File Service
DELETE /api/v1/services/{name}/file
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| name | path | yes | string | ||
| visibility | query | no | private | shared | "private" |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | object |
| 422 | Validation Error | application/json | HTTPValidationError |
Unwire Service
DELETE /api/v1/services/{name}/wired
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| name | path | yes | string | ||
| visibility | query | no | private | shared | "private" |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | object |
| 422 | Validation Error | application/json | HTTPValidationError |
Delete File Skill
DELETE /api/v1/skills/{name}/file
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| name | path | yes | string | ||
| visibility | query | no | private | shared | "private" |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | object |
| 422 | Validation Error | application/json | HTTPValidationError |
Unwire Skill
DELETE /api/v1/skills/{name}/wired
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| name | path | yes | string | ||
| visibility | query | no | private | shared | "private" |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | object |
| 422 | Validation Error | application/json | HTTPValidationError |
Jobs
Task, chore, and will inspection endpoints.
List Chores
GET /api/v1/chores
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | object |
List Archived Chores
GET /api/v1/chores/archived
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | object |
Get Archived Chore
GET /api/v1/chores/archived/{chore_id}
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| chore_id | path | yes | string |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | object |
| 422 | Validation Error | application/json | HTTPValidationError |
Get Chore
GET /api/v1/chores/{chore_id}
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| chore_id | path | yes | string |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | object |
| 422 | Validation Error | application/json | HTTPValidationError |
List Jobs
GET /api/v1/jobs
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| kind | query | no | task | chore | null |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | object |
| 422 | Validation Error | application/json | HTTPValidationError |
List Archived Jobs
GET /api/v1/jobs/archived
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| kind | query | no | task | chore | null |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | object |
| 422 | Validation Error | application/json | HTTPValidationError |
Get Archived Job
GET /api/v1/jobs/archived/{job_id}
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| job_id | path | yes | string |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | object |
| 422 | Validation Error | application/json | HTTPValidationError |
Get Job
GET /api/v1/jobs/{job_id}
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| job_id | path | yes | string |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | object |
| 422 | Validation Error | application/json | HTTPValidationError |
List Tasks
GET /api/v1/tasks
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | object |
List Archived Tasks
GET /api/v1/tasks/archived
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | object |
Get Archived Task
GET /api/v1/tasks/archived/{task_id}
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| task_id | path | yes | string |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | object |
| 422 | Validation Error | application/json | HTTPValidationError |
Get Task
GET /api/v1/tasks/{task_id}
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| task_id | path | yes | string |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | object |
| 422 | Validation Error | application/json | HTTPValidationError |
Get Will
GET /api/v1/will
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | object |
Create Chore
POST /api/v1/chores
Request body:
| Content Type | Required | Schema |
|---|---|---|
| application/json | yes | ChoreCreateRequest |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 201 | Successful Response | application/json | object |
| 422 | Validation Error | application/json | HTTPValidationError |
Create Task
POST /api/v1/tasks
Request body:
| Content Type | Required | Schema |
|---|---|---|
| application/json | yes | TaskCreateRequest |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 201 | Successful Response | application/json | object |
| 422 | Validation Error | application/json | HTTPValidationError |
Delete Archived Chore
DELETE /api/v1/chores/archived/{chore_id}
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| chore_id | path | yes | string |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | object |
| 422 | Validation Error | application/json | HTTPValidationError |
Delete Archived Job
DELETE /api/v1/jobs/archived/{job_id}
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| job_id | path | yes | string |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | object |
| 422 | Validation Error | application/json | HTTPValidationError |
Delete Archived Task
DELETE /api/v1/tasks/archived/{task_id}
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| task_id | path | yes | string |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | object |
| 422 | Validation Error | application/json | HTTPValidationError |
Update Archived Chore
PATCH /api/v1/chores/archived/{chore_id}
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| chore_id | path | yes | string |
Request body:
| Content Type | Required | Schema |
|---|---|---|
| application/json | yes | ChorePatchRequest |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | object |
| 422 | Validation Error | application/json | HTTPValidationError |
Update Chore
PATCH /api/v1/chores/{chore_id}
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| chore_id | path | yes | string |
Request body:
| Content Type | Required | Schema |
|---|---|---|
| application/json | yes | ChorePatchRequest |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | object |
| 422 | Validation Error | application/json | HTTPValidationError |
Update Archived Job
PATCH /api/v1/jobs/archived/{job_id}
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| job_id | path | yes | string |
Request body:
| Content Type | Required | Schema |
|---|---|---|
| application/json | yes | JobPatchRequest |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | object |
| 422 | Validation Error | application/json | HTTPValidationError |
Update Job
PATCH /api/v1/jobs/{job_id}
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| job_id | path | yes | string |
Request body:
| Content Type | Required | Schema |
|---|---|---|
| application/json | yes | JobPatchRequest |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | object |
| 422 | Validation Error | application/json | HTTPValidationError |
Update Archived Task
PATCH /api/v1/tasks/archived/{task_id}
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| task_id | path | yes | string |
Request body:
| Content Type | Required | Schema |
|---|---|---|
| application/json | yes | TaskPatchRequest |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | object |
| 422 | Validation Error | application/json | HTTPValidationError |
Update Task
PATCH /api/v1/tasks/{task_id}
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| task_id | path | yes | string |
Request body:
| Content Type | Required | Schema |
|---|---|---|
| application/json | yes | TaskPatchRequest |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | object |
| 422 | Validation Error | application/json | HTTPValidationError |
Activity
Thread, run, and event history endpoints.
List Agent Events
GET /api/v1/agent/events
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| after | query | no | integer | null | ||
| limit | query | no | integer | 100 |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | object |
| 422 | Validation Error | application/json | HTTPValidationError |
Stream Agent Events
GET /api/v1/agent/stream
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| after | query | no | integer | null |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | any |
| 422 | Validation Error | application/json | HTTPValidationError |
Get Context Prompt
GET /api/v1/context/{prompt_hash}
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| prompt_hash | path | yes | string |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | object |
| 422 | Validation Error | application/json | HTTPValidationError |
List Events
GET /api/v1/events
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| limit | query | no | integer | 100 |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | object |
| 422 | Validation Error | application/json | HTTPValidationError |
Stream Events
GET /api/v1/events/stream
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | any |
Get Instruct Prompt
GET /api/v1/instruct/{prompt_hash}
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| prompt_hash | path | yes | string |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | object |
| 422 | Validation Error | application/json | HTTPValidationError |
List Runs
GET /api/v1/runs
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| limit | query | no | integer | 50 | |
| thread_id | query | no | string | null |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | object |
| 422 | Validation Error | application/json | HTTPValidationError |
Get Run
GET /api/v1/runs/{run_id}
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| run_id | path | yes | string |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | object |
| 422 | Validation Error | application/json | HTTPValidationError |
List Run Events
GET /api/v1/runs/{run_id}/events
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| run_id | path | yes | string | ||
| after | query | no | integer | null | ||
| limit | query | no | integer | 100 |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | object |
| 422 | Validation Error | application/json | HTTPValidationError |
Stream Run Events
GET /api/v1/runs/{run_id}/stream
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| run_id | path | yes | string | ||
| after | query | no | integer | null |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | any |
| 422 | Validation Error | application/json | HTTPValidationError |
List Threads
GET /api/v1/threads
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| limit | query | no | integer | 50 | |
| origin | query | no | string | null |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | object |
| 422 | Validation Error | application/json | HTTPValidationError |
Get Thread
GET /api/v1/threads/{thread_id}
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| thread_id | path | yes | string | ||
| limit | query | no | integer | 50 |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | object |
| 422 | Validation Error | application/json | HTTPValidationError |
List Thread Events
GET /api/v1/threads/{thread_id}/events
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| thread_id | path | yes | string | ||
| after | query | no | integer | null | ||
| limit | query | no | integer | 100 |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | object |
| 422 | Validation Error | application/json | HTTPValidationError |
Stream Thread Events
GET /api/v1/threads/{thread_id}/stream
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| thread_id | path | yes | string | ||
| after | query | no | integer | null |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | any |
| 422 | Validation Error | application/json | HTTPValidationError |
Restart Run
POST /api/v1/runs/{run_id}/restart
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| run_id | path | yes | string |
Request body:
| Content Type | Required | Schema |
|---|---|---|
| application/json | yes | RunRestartRequest |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | object |
| 422 | Validation Error | application/json | HTTPValidationError |
Steer Run
POST /api/v1/runs/{run_id}/steer
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| run_id | path | yes | string |
Request body:
| Content Type | Required | Schema |
|---|---|---|
| application/json | yes | RunSteerRequest |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | object |
| 422 | Validation Error | application/json | HTTPValidationError |
Stop Run
POST /api/v1/runs/{run_id}/stop
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| run_id | path | yes | string |
Request body:
| Content Type | Required | Schema |
|---|---|---|
| application/json | no | RunCancelRequest | null |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | object |
| 422 | Validation Error | application/json | HTTPValidationError |
Schemas
ChatMessagePayload
One structured chat message payload.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
meta | no | object | ||
parts | yes | array<object> | ||
role | no | string | "user" |
ChatRequest
One formal chat submission.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
client | no | web | tui | chat | "web" | |
message | yes | ChatMessagePayload | ||
model | no | string | null | ||
peer | no | ThreadPeerPayload | null | ||
request_id | no | string | null | ||
thread | no | string | null |
ChoreCreateRequest
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
body | no | string | "" | |
schedule | no | string | "FREQ=HOURLY;INTERVAL=1" | |
state | no | active | inactive | "active" | |
title | no | string | null |
ChorePatchRequest
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
body | no | string | null | ||
schedule | no | string | null | ||
state | no | active | inactive | archived | null | ||
title | no | string | null |
JobPatchRequest
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
body | no | string | null | ||
schedule | no | string | null | ||
stage | no | todo | running | done | failed | null | ||
state | no | active | inactive | archived | null | ||
title | no | string | null |
PutCapRequest
One authored cap write request.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
content | no | string | null | ||
visibility | no | private | shared | "private" |
RunCancelRequest
Request run cancellation.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
mode | no | string | "immediate" | |
reason | no | string | null | ||
request_id | no | string | null |
RunInputMessagePayload
One user-authored run input message.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
meta | no | object | ||
parts | yes | array<object> | ||
role | no | string | "user" |
RunRestartRequest
Request one restarted chat run with a replacement input.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
message | yes | RunInputMessagePayload | ||
request_id | no | string | null |
RunSteerRequest
Request one steering message for a running run.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
message | yes | RunInputMessagePayload | ||
mode | no | string | "next_step" | |
request_id | no | string | null |
TaskCreateRequest
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
body | no | string | "" | |
stage | no | todo | running | done | failed | "todo" | |
state | no | active | inactive | "active" | |
title | no | string | null |
TaskPatchRequest
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
body | no | string | null | ||
stage | no | todo | running | done | failed | null | ||
state | no | active | inactive | archived | null | ||
title | no | string | null |
ThreadPeerPayload
One optional chat thread peer descriptor.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
name | no | string | "user" | |
thread | no | string | null | ||
type | no | string | "user" |
WiredCapRequest
One wired cap ref mutation request.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
ref | yes | string | ||
visibility | no | private | shared | "private" |
HTTPValidationError
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
detail | no | array<ValidationError> |
ValidationError
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
ctx | no | object | ||
input | no | any | ||
loc | yes | array<string | integer> | ||
msg | yes | string | ||
type | yes | string |