Agents endpoints
CRUD for agent personas. All endpoints are scoped to the current tenant.
GET
/api/agentsList agent personas in the current workspace.
Example
curl http://localhost:8765/api/agents | jq
POST
/api/agentsCreate a new agent persona.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
name | string | yes | Display name |
role | string | yes | One of reasoning, coding, general |
system_prompt | string | yes | System prompt for the persona |
GET
/api/agents/{id}Get a specific agent persona.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | yes | Persona id |
POST
/api/agents/{id}/feedbackSubmit feedback that feeds into the persona's learning system.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | yes | Persona id |
rating | integer | yes | 1-5 |
reason | string | no | Why the rating? |