50 documented endpoints across 11 sections. Exact request fields, per-endpoint response codes and schemas from docx v0.7.0.
v0.7.0 — 11 sections — 48 endpoints. Each card: verbatim description, exact request fields (* = required), per-endpoint response table, Python example.
Health Check. Retrieves health data from the system. Returns the requested resource in JSON format.
| Code | Description | Response Schema |
|---|---|---|
| 200 | Successful Response | HealthResponse {status, experts_db_available} |
List Agents. Creates or processes a list resource. The request body must be provided as JSON with the required fields. On success, returns the created or processed object with a status field.
| Field | Type | Description |
|---|---|---|
| profile_id | Profile ID to filter agents by. If omitted, all agents are returned |
| Code | Description | Response Schema |
|---|---|---|
| 200 | Successful Response | — |
| 500 | Internal Server Error | Error {status, message} |
| 401 | Unauthorized | AuthenticationRequiredError {status, message} |
| 400 | Bad Request | BadRequestError {status, message} |
| 422 | Validation Error | HTTPValidationError {detail} |
Get Agent. Creates or processes a get resource. The request body must be provided as JSON with the required fields. On success, returns the created or processed object with a status field.
| Field | Type | Description |
|---|---|---|
| agent_id * | string | Agent ID |
| Code | Description | Response Schema |
|---|---|---|
| 200 | Successful Response | — |
| 500 | Internal Server Error | Error {status, message} |
| 401 | Unauthorized | AuthenticationRequiredError {status, message} |
| 400 | Bad Request | BadRequestError {status, message} |
| 422 | Validation Error | HTTPValidationError {detail} |
Delete Agent. Creates or processes a delete resource. The request body must be provided as JSON with the required fields. On success, returns the created or processed object with a status field.
| Field | Type | Description |
|---|---|---|
| agent_id * | string | ID of agent to delete |
| Code | Description | Response Schema |
|---|---|---|
| 200 | Successful Response | — |
| 500 | Internal Server Error | Error {status, message} |
| 401 | Unauthorized | AuthenticationRequiredError {status, message} |
| 400 | Bad Request | BadRequestError {status, message} |
| 422 | Validation Error | HTTPValidationError {detail} |
Create Agent. Creates or processes a create resource. The request body must be provided as JSON with the required fields. On success, returns the created or processed object with a status field.
| Field | Type | Description |
|---|---|---|
| provider * | Model provider | |
| model * | Model name | |
| name | Agent name | |
| description | Agent description | |
| instructions | System instructions for the agent | |
| model_parameters | Model/provider-specific parameters | |
| tools | array[string] | Enabled tool IDs |
| tool_options | Per-tool options | |
| end_after_tools | End response generation after tool execution | |
| hide_sequential_outputs | Hide intermediate sequential outputs | |
| recursion_limit | Maximum recursion depth | |
| conversation_starters | Suggested conversation starters | |
| category | Agent category |
| Code | Description | Response Schema |
|---|---|---|
| 200 | Successful Response | — |
| 500 | Internal Server Error | Error {status, message} |
| 401 | Unauthorized | AuthenticationRequiredError {status, message} |
| 400 | Bad Request | BadRequestError {status, message} |
| 422 | Validation Error | HTTPValidationError {detail} |
Update Agent. Creates or processes a update resource. The request body must be provided as JSON with the required fields. On success, returns the created or processed object with a status field.
| Field | Type | Description |
|---|---|---|
| agent_id * | string | ID of agent to update |
| name | Agent name | |
| description | Agent description | |
| instructions | System instructions for the agent | |
| model_parameters | Model/provider-specific parameters | |
| tools | Enabled tool IDs | |
| tool_options | Per-tool options | |
| end_after_tools | End response generation after tool execution | |
| hide_sequential_outputs | Hide intermediate sequential outputs | |
| recursion_limit | Maximum recursion depth | |
| conversation_starters | Suggested conversation starters | |
| category | Agent category | |
| provider | Model provider | |
| model | Model name |
| Code | Description | Response Schema |
|---|---|---|
| 200 | Successful Response | — |
| 500 | Internal Server Error | Error {status, message} |
| 401 | Unauthorized | AuthenticationRequiredError {status, message} |
| 400 | Bad Request | BadRequestError {status, message} |
| 422 | Validation Error | HTTPValidationError {detail} |
Export Chats. Creates or processes a chats resource. The request body must be provided as JSON with the required fields. On success, returns the created or processed object with a status field.
| Field | Type | Description |
|---|---|---|
| by * | ||
| id * | string | by agent: Agent ID; by profile: Profile ID |
| Code | Description | Response Schema |
|---|---|---|
| 200 | Successful Response | — |
| 500 | Internal Server Error | Error {status, message} |
| 401 | Unauthorized | AuthenticationRequiredError {status, message} |
| 400 | Bad Request | BadRequestError {status, message} |
| 422 | Validation Error | HTTPValidationError {detail} |
Export Calls. Creates or processes a calls resource. The request body must be provided as JSON with the required fields. On success, returns the created or processed object with a status field.
| Field | Type | Description |
|---|---|---|
| by * | ||
| id * | string | by agent: Agent ID; by profile: Profile ID |
| from | Optional ISO-8601 lower bound (inclusive) | |
| to | Optional ISO-8601 upper bound (inclusive) | |
| limit | Optional positive integer, default 200, max 1000 |
| Code | Description | Response Schema |
|---|---|---|
| 200 | Successful Response | — |
| 500 | Internal Server Error | Error {status, message} |
| 401 | Unauthorized | AuthenticationRequiredError {status, message} |
| 400 | Bad Request | BadRequestError {status, message} |
| 422 | Validation Error | HTTPValidationError {detail} |
Run Agent. Creates or processes a run resource. The request body must be provided as JSON with the required fields. On success, returns the created or processed object with a status field.
| Field | Type | Description |
|---|---|---|
| agent_id * | string | ID of agent to run |
| input * | Either a plain user message string or a list of OpenResponses input items | |
| run_timeout | number | Agent run timeout (in seconds) |
| previous_response_id | ID of a previous response to continue from | |
| instructions | ||
| tools | List of tools available to the agent | |
| tool_choice | Tool selection strategy (auto, none, or specific tool config) | |
| temperature | Sampling temperature | |
| max_output_tokens | Maximum number of tokens to generate | |
| store | boolean | Whether to persist the conversation (false disables saving to /export/chats and /export/calls) |
| Code | Description | Response Schema |
|---|---|---|
| 200 | Successful Response | — |
| 500 | Internal Server Error | Error {status, message} |
| 401 | Unauthorized | AuthenticationRequiredError {status, message} |
| 400 | Bad Request | BadRequestError {status, message} |
| 422 | Validation Error | HTTPValidationError {detail} |
Add a new concept (knowledge unit) with semantic embedding for long-term memory.
| Field | Type | Description |
|---|---|---|
| text * | string | Concept text (knowledge, pattern, or learning) |
| api_key | API key for embeddings |
| Code | Description | Response Schema |
|---|---|---|
| 200 | Successful Response | AddConceptResult {status, id, text} |
| 500 | Internal Server Error | Error {status, message} |
| 401 | Unauthorized | AuthenticationRequiredError {status, message} |
| 400 | Bad Request | BadRequestError {status, message} |
| 422 | Validation Error | HTTPValidationError {detail} |
Semantic search for concepts by meaning (not just keywords). Returns most relevant stored knowledge.
| Field | Type | Description |
|---|---|---|
| query * | string | Search query text |
| limit | integer | Maximum number of results |
| api_key | API key for embeddings | |
| global | boolean | Search concepts across all agents instead of only the current agent |
| Code | Description | Response Schema |
|---|---|---|
| 200 | Successful Response | SearchConceptResult {status, results, count} |
| 500 | Internal Server Error | Error {status, message} |
| 401 | Unauthorized | AuthenticationRequiredError {status, message} |
| 400 | Bad Request | BadRequestError {status, message} |
| 422 | Validation Error | HTTPValidationError {detail} |
Remove Concept. Creates or processes a remove resource. The request body must be provided as JSON with the required fields. On success, returns the created or processed object with a status field.
| Field | Type | Description |
|---|---|---|
| concept_id * | integer | ID of concept to remove |
| global | boolean | Allow removing concepts belonging to other agents |
| Code | Description | Response Schema |
|---|---|---|
| 200 | Successful Response | RemoveResult {status, removed} |
| 500 | Internal Server Error | Error {status, message} |
| 401 | Unauthorized | AuthenticationRequiredError {status, message} |
| 400 | Bad Request | BadRequestError {status, message} |
| 422 | Validation Error | HTTPValidationError {detail} |
Update concept text and re-generate its embedding.
| Field | Type | Description |
|---|---|---|
| concept_id * | integer | ID of concept to update |
| new_text * | string | New text content |
| api_key | API key for embeddings | |
| global | boolean | Allow updating concepts belonging to other agents |
| Code | Description | Response Schema |
|---|---|---|
| 200 | Successful Response | UpdateConceptResult {status, id, text} |
| 500 | Internal Server Error | Error {status, message} |
| 401 | Unauthorized | AuthenticationRequiredError {status, message} |
| 400 | Bad Request | BadRequestError {status, message} |
| 422 | Validation Error | HTTPValidationError {detail} |
List Concepts. Creates or processes a list resource. The request body must be provided as JSON with the required fields. On success, returns the created or processed object with a status field.
| Field | Type | Description |
|---|---|---|
| global | boolean | Retrieve concepts for all agents instead of only the current agent |
| Code | Description | Response Schema |
|---|---|---|
| 200 | Successful Response | ListConceptsResult {status, results, count} |
| 500 | Internal Server Error | Error {status, message} |
| 401 | Unauthorized | AuthenticationRequiredError {status, message} |
| 400 | Bad Request | BadRequestError {status, message} |
| 422 | Validation Error | HTTPValidationError {detail} |
Set Default Target. Creates or processes a set_target resource. The request body must be provided as JSON with the required fields. On success, returns the created or processed object with a status field.
| Field | Type | Description |
|---|---|---|
| target * | string(uuid) |
| Code | Description | Response Schema |
|---|---|---|
| 200 | Successful Response | SetDefaultTargetResponse {status, target} |
| 500 | Internal Server Error | Error {status, message} |
| 401 | Unauthorized | AuthenticationRequiredError {status, message} |
| 422 | Validation Error | HTTPValidationError {detail} |
Get Default Target. Creates or processes a get_target resource. The request body must be provided as JSON with the required fields. On success, returns the created or processed object with a status field.
| Code | Description | Response Schema |
|---|---|---|
| 200 | Successful Response | GetDefaultTargetResponse {status, target} |
| 500 | Internal Server Error | Error {status, message} |
| 401 | Unauthorized | AuthenticationRequiredError {status, message} |
Insert or update an expert (without code/kwargs).
| Field | Type | Description |
|---|---|---|
| name * | string | Expert name |
| description * | string | Expert description |
| api_key | API key for embeddings | |
| global | boolean | Allow modifying experts belonging to other agents |
| Code | Description | Response Schema |
|---|---|---|
| 200 | Successful Response | UpsertExpertResult {status, id, name, description} |
| 500 | Internal Server Error | Error {status, message} |
| 401 | Unauthorized | AuthenticationRequiredError {status, message} |
| 400 | Bad Request | BadRequestError {status, message} |
| 422 | Validation Error | HTTPValidationError {detail} |
Get expert description only (i.e. without code/kwargs).
| Field | Type | Description |
|---|---|---|
| name * | string | Expert name |
| global | boolean | Search experts across all agents instead of only the current agent |
| Code | Description | Response Schema |
|---|---|---|
| 200 | Successful Response | GetExpertDescriptionResult {status, id, name, description} |
| 500 | Internal Server Error | Error {status, message} |
| 401 | Unauthorized | AuthenticationRequiredError {status, message} |
| 400 | Bad Request | BadRequestError {status, message} |
| 422 | Validation Error | HTTPValidationError {detail} |
Search Experts Db. Creates or processes a search resource. The request body must be provided as JSON with the required fields. On success, returns the created or processed object with a status field.
| Field | Type | Description |
|---|---|---|
| query * | string | Search query |
| limit | integer | Results limit |
| api_key | API key for embeddings | |
| global | boolean | Search experts across all agents instead of only the current agent |
| Code | Description | Response Schema |
|---|---|---|
| 200 | Successful Response | SearchExpertsDbResult {status, experts, count} |
| 500 | Internal Server Error | Error {status, message} |
| 401 | Unauthorized | AuthenticationRequiredError {status, message} |
| 400 | Bad Request | BadRequestError {status, message} |
| 422 | Validation Error | HTTPValidationError {detail} |
Get list of all experts (blocks).
| Field | Type | Description |
|---|---|---|
| global | boolean | Retrieve experts for all agents instead of only the current agent |
| Code | Description | Response Schema |
|---|---|---|
| 200 | Successful Response | ListExpertsResult {status, results, count} |
| 500 | Internal Server Error | Error {status, message} |
| 401 | Unauthorized | AuthenticationRequiredError {status, message} |
| 400 | Bad Request | BadRequestError {status, message} |
| 422 | Validation Error | HTTPValidationError {detail} |
Search Blocks. Creates or processes a search resource. The request body must be provided as JSON with the required fields. On success, returns the created or processed object with a status field.
| Field | Type | Description |
|---|---|---|
| query | string | Search query |
| limit | integer | Results limit |
| api_key | API key for embeddings | |
| global | boolean | Search experts across all agents instead of only the current agent |
| Code | Description | Response Schema |
|---|---|---|
| 200 | Successful Response | SearchBlocksResult {status, matches, total, search_time_ms} |
| 500 | Internal Server Error | Error {status, message} |
| 401 | Unauthorized | AuthenticationRequiredError {status, message} |
| 400 | Bad Request | BadRequestError {status, message} |
| 422 | Validation Error | HTTPValidationError {detail} |
Save expert with code and description.
| Field | Type | Description |
|---|---|---|
| name | string | Unique expert name (snake_case) |
| description | string | Expert description (in English!) |
| code | string | Expert code |
| kwargs | object | Expert parameters with defaults |
| cspl | string | CSPL code type |
| api_key | API key for embeddings | |
| global | boolean | Allow modifying experts belonging to other agents |
| Code | Description | Response Schema |
|---|---|---|
| 200 | Successful Response | SaveExpertResult {status, expert_name, user_id} |
| 500 | Internal Server Error | Error {status, message} |
| 401 | Unauthorized | AuthenticationRequiredError {status, message} |
| 400 | Bad Request | BadRequestError {status, message} |
| 422 | Validation Error | HTTPValidationError {detail} |
Delete Expert. Creates or processes a delete resource. The request body must be provided as JSON with the required fields. On success, returns the created or processed object with a status field.
| Field | Type | Description |
|---|---|---|
| name * | string | Expert name |
| global | boolean | Allow deleting experts belonging to other agents |
| Code | Description | Response Schema |
|---|---|---|
| 200 | Successful Response | DeleteExpertResult {status, message} |
| 500 | Internal Server Error | Error {status, message} |
| 401 | Unauthorized | AuthenticationRequiredError {status, message} |
| 400 | Bad Request | BadRequestError {status, message} |
| 422 | Validation Error | HTTPValidationError {detail} |
Get expert info: description, code, parameters, creation date.
| Field | Type | Description |
|---|---|---|
| name * | string | Expert name |
| global | boolean | Search experts across all agents instead of only the current agent |
| Code | Description | Response Schema |
|---|---|---|
| 200 | Successful Response | GetExpertResult {status, expert_name, expert_description, expert_code, createdAt, expert_params, cspl} |
| 500 | Internal Server Error | Error {status, message} |
| 401 | Unauthorized | AuthenticationRequiredError {status, message} |
| 400 | Bad Request | BadRequestError {status, message} |
| 422 | Validation Error | HTTPValidationError {detail} |
Run Expert. Creates or processes a run resource. The request body must be provided as JSON with the required fields. On success, returns the created or processed object with a status field.
| Field | Type | Description |
|---|---|---|
| expert_name * | string | Expert name |
| params | object | Expert parameters |
| target | ID (UUID) of the device on which the expert should run. Omit if unspecified | |
| isolated | boolean | Isolated run in virtual environment |
| pin | PIN. Omit if unspecified | |
| global | boolean | Search for this expert across all agents instead of only the current agent |
| Code | Description | Response Schema |
|---|---|---|
| 200 | Successful Response | RunExpertResult {status, expert_name, result, task_id, execution_log, run_time_ms} |
| 500 | Internal Server Error | any |
| 401 | Unauthorized | AuthenticationRequiredError {status, message} |
| 400 | Bad Request | BadRequestError {status, message} |
| 422 | Validation Error | HTTPValidationError {detail} |
Set (upsert) a key-value pair with semantic embedding. Creates or updates a persistent key with optional description.
| Field | Type | Description |
|---|---|---|
| key * | string | Unique key name |
| value * | string | Value to store |
| description | string | Optional description for semantic search |
| api_key | API key for embeddings | |
| global | boolean | Allow modifying key-value pairs belonging to other agents |
| Code | Description | Response Schema |
|---|---|---|
| 200 | Successful Response | SetKeyResult {status, key, value, description, id} |
| 500 | Internal Server Error | Error {status, message} |
| 401 | Unauthorized | AuthenticationRequiredError {status, message} |
| 400 | Bad Request | BadRequestError {status, message} |
| 422 | Validation Error | HTTPValidationError {detail} |
Get exact key-value pair by key name.
| Field | Type | Description |
|---|---|---|
| key * | string | Exact key name to retrieve |
| global | boolean | Search keys across all agents instead of only the current agent |
| Code | Description | Response Schema |
|---|---|---|
| 200 | Successful Response | GetKeyResult {status, id, key, value, description, created_at, updated_at} |
| 500 | Internal Server Error | Error {status, message} |
| 401 | Unauthorized | AuthenticationRequiredError {status, message} |
| 400 | Bad Request | BadRequestError {status, message} |
| 422 | Validation Error | HTTPValidationError {detail} |
Remove a key-value pair by key name.
| Field | Type | Description |
|---|---|---|
| key * | string | Key name to remove |
| global | boolean | Allow removing key-value pairs belonging to other agents |
| Code | Description | Response Schema |
|---|---|---|
| 200 | Successful Response | RemoveResult {status, removed} |
| 500 | Internal Server Error | Error {status, message} |
| 401 | Unauthorized | AuthenticationRequiredError {status, message} |
| 400 | Bad Request | BadRequestError {status, message} |
| 422 | Validation Error | HTTPValidationError {detail} |
Semantic search across stored key-value pairs by meaning (uses pgvector embeddings).
| Field | Type | Description |
|---|---|---|
| query * | string | Search query |
| limit | integer | Maximum results |
| api_key | API key for embeddings | |
| global | boolean | Search across all agents instead of only the current agent |
| Code | Description | Response Schema |
|---|---|---|
| 200 | Successful Response | SearchKeysResult {status, results, count} |
| 500 | Internal Server Error | Error {status, message} |
| 401 | Unauthorized | AuthenticationRequiredError {status, message} |
| 400 | Bad Request | BadRequestError {status, message} |
| 422 | Validation Error | HTTPValidationError {detail} |
List all stored key-value pairs.
| Field | Type | Description |
|---|---|---|
| global | boolean | Retrieve key-value pairs for all agents instead of only the current agent |
| Code | Description | Response Schema |
|---|---|---|
| 200 | Successful Response | ListKeysResult {status, results, count} |
| 500 | Internal Server Error | Error {status, message} |
| 401 | Unauthorized | AuthenticationRequiredError {status, message} |
| 400 | Bad Request | BadRequestError {status, message} |
| 422 | Validation Error | HTTPValidationError {detail} |
List Profiles. Creates or processes a list resource. The request body must be provided as JSON with the required fields. On success, returns the created or processed object with a status field.
| Code | Description | Response Schema |
|---|---|---|
| 200 | Successful Response | — |
| 500 | Internal Server Error | Error {status, message} |
| 401 | Unauthorized | AuthenticationRequiredError {status, message} |
| 400 | Bad Request | BadRequestError {status, message} |
Create Profile. Creates or processes a create resource. The request body must be provided as JSON with the required fields. On success, returns the created or processed object with a status field.
| Field | Type | Description |
|---|---|---|
| profile_name * | string | Profile name |
| Code | Description | Response Schema |
|---|---|---|
| 200 | Successful Response | — |
| 500 | Internal Server Error | Error {status, message} |
| 401 | Unauthorized | AuthenticationRequiredError {status, message} |
| 400 | Bad Request | BadRequestError {status, message} |
| 422 | Validation Error | HTTPValidationError {detail} |
Delete profile. Agents in the profile are not deleted.
| Field | Type | Description |
|---|---|---|
| profile_id * | string | ID of profile to delete |
| Code | Description | Response Schema |
|---|---|---|
| 200 | Successful Response | — |
| 500 | Internal Server Error | Error {status, message} |
| 401 | Unauthorized | AuthenticationRequiredError {status, message} |
| 400 | Bad Request | BadRequestError {status, message} |
| 422 | Validation Error | HTTPValidationError {detail} |
Add Agent To Profile. Creates or processes a add_agent resource. The request body must be provided as JSON with the required fields. On success, returns the created or processed object with a status field.
| Field | Type | Description |
|---|---|---|
| profile_id * | string | ID of the profile to add the agent to |
| agent_id * | string | ID of the agent to add |
| Code | Description | Response Schema |
|---|---|---|
| 200 | Successful Response | — |
| 500 | Internal Server Error | Error {status, message} |
| 401 | Unauthorized | AuthenticationRequiredError {status, message} |
| 400 | Bad Request | BadRequestError {status, message} |
| 422 | Validation Error | HTTPValidationError {detail} |
Retrieve persistent user-defined instructions that extend the system prompt. Returned rules must be inserted into the conversation context before processing user messages and treated as additional system-level instructions. Should normally be called once at conversation startup.
| Field | Type | Description |
|---|---|---|
| global | boolean | Retrieve rules for all agents instead of only the current agent |
| Code | Description | Response Schema |
|---|---|---|
| 200 | Successful Response | ListRulesResult {status, results, count} |
| 500 | Internal Server Error | Error {status, message} |
| 401 | Unauthorized | AuthenticationRequiredError {status, message} |
| 400 | Bad Request | BadRequestError {status, message} |
| 422 | Validation Error | HTTPValidationError {detail} |
Add a new rule (rule_id is auto-generated).
| Field | Type | Description |
|---|---|---|
| rule * | string | Rule text |
| Code | Description | Response Schema |
|---|---|---|
| 200 | Successful Response | AddRuleResult {status, rule_id, rule} |
| 500 | Internal Server Error | Error {status, message} |
| 401 | Unauthorized | AuthenticationRequiredError {status, message} |
| 400 | Bad Request | BadRequestError {status, message} |
| 422 | Validation Error | HTTPValidationError {detail} |
Remove Rule. Creates or processes a remove resource. The request body must be provided as JSON with the required fields. On success, returns the created or processed object with a status field.
| Field | Type | Description |
|---|---|---|
| rule_id * | string | ID of rule to remove |
| global | boolean | Allow removing rules belonging to other agents |
| Code | Description | Response Schema |
|---|---|---|
| 200 | Successful Response | RemoveResult {status, removed} |
| 500 | Internal Server Error | Error {status, message} |
| 401 | Unauthorized | AuthenticationRequiredError {status, message} |
| 400 | Bad Request | BadRequestError {status, message} |
| 422 | Validation Error | HTTPValidationError {detail} |
Update Rule. Creates or processes a update resource. The request body must be provided as JSON with the required fields. On success, returns the created or processed object with a status field.
| Field | Type | Description |
|---|---|---|
| rule_id * | string | ID of rule to update |
| rule * | string | Rule text |
| global | boolean | Allow updating rules belonging to other agents |
| Code | Description | Response Schema |
|---|---|---|
| 200 | Successful Response | UpdateRuleResult {status, rule_id, rule} |
| 500 | Internal Server Error | Error {status, message} |
| 401 | Unauthorized | AuthenticationRequiredError {status, message} |
| 400 | Bad Request | BadRequestError {status, message} |
| 422 | Validation Error | HTTPValidationError {detail} |
List Targets. Creates or processes a list resource. The request body must be provided as JSON with the required fields. On success, returns the created or processed object with a status field.
| Field | Type | Description |
|---|---|---|
| global | boolean | Retrieve targets for all agents instead of only the current agent |
| Code | Description | Response Schema |
|---|---|---|
| 200 | Successful Response | ListTargetsResult {status, results, count} |
| 500 | Internal Server Error | Error {status, message} |
| 401 | Unauthorized | AuthenticationRequiredError {status, message} |
| 400 | Bad Request | BadRequestError {status, message} |
| 422 | Validation Error | HTTPValidationError {detail} |
Add a new target with description for semantic search.
| Field | Type | Description |
|---|---|---|
| target * | string(uuid) | |
| description * | string | Human-readable description |
| api_key | API key for embeddings |
| Code | Description | Response Schema |
|---|---|---|
| 200 | Successful Response | AddTargetResult {status, id, target, description} |
| 500 | Internal Server Error | Error {status, message} |
| 401 | Unauthorized | AuthenticationRequiredError {status, message} |
| 400 | Bad Request | BadRequestError {status, message} |
| 422 | Validation Error | HTTPValidationError {detail} |
Remove Target. Creates or processes a remove resource. The request body must be provided as JSON with the required fields. On success, returns the created or processed object with a status field.
| Field | Type | Description |
|---|---|---|
| id * | string | |
| global | boolean | Allow removing targets belonging to other agents |
| Code | Description | Response Schema |
|---|---|---|
| 200 | Successful Response | RemoveResult {status, removed} |
| 500 | Internal Server Error | Error {status, message} |
| 401 | Unauthorized | AuthenticationRequiredError {status, message} |
| 400 | Bad Request | BadRequestError {status, message} |
| 422 | Validation Error | HTTPValidationError {detail} |
Update a target (target value and/or description).
| Field | Type | Description |
|---|---|---|
| id * | string | |
| target | ||
| description | ||
| api_key | API key for embeddings | |
| global | boolean | Allow updating targets belonging to other agents |
| Code | Description | Response Schema |
|---|---|---|
| 200 | Successful Response | UpdateTargetResult {status, id, target, description} |
| 500 | Internal Server Error | Error {status, message} |
| 401 | Unauthorized | AuthenticationRequiredError {status, message} |
| 400 | Bad Request | BadRequestError {status, message} |
| 422 | Validation Error | HTTPValidationError {detail} |
Semantic search targets by description.
| Field | Type | Description |
|---|---|---|
| query * | string | |
| limit | integer | Maximum results |
| api_key | API key for embeddings | |
| global | boolean | Search targets across all agents instead of only the current agent |
| Code | Description | Response Schema |
|---|---|---|
| 200 | Successful Response | SearchTargetsResult {status, results, count} |
| 500 | Internal Server Error | Error {status, message} |
| 401 | Unauthorized | AuthenticationRequiredError {status, message} |
| 400 | Bad Request | BadRequestError {status, message} |
| 422 | Validation Error | HTTPValidationError {detail} |
Check Task. Creates or processes a check resource. The request body must be provided as JSON with the required fields. On success, returns the created or processed object with a status field.
| Field | Type | Description |
|---|---|---|
| task_id * | string(uuid) |
| Code | Description | Response Schema |
|---|---|---|
| 200 | Successful Response | CheckTaskResult {task_id, status, result} |
| 500 | Internal Server Error | Error {status, message} |
| 422 | Validation Error | HTTPValidationError {detail} |
Generate a new API token for user authentication.
| Field | Type | Description |
|---|---|---|
| name | string | Optional friendly name for the token |
| Code | Description | Response Schema |
|---|---|---|
| 200 | Successful Response | GenerateTokenResult {status, token, user_id, name} |
| 500 | Internal Server Error | Error {status, message} |
| 401 | Unauthorized | AuthenticationRequiredError {status, message} |
| 400 | Bad Request | BadRequestError {status, message} |
| 422 | Validation Error | HTTPValidationError {detail} |
Validate a token and get associated user_id.
| Field | Type | Description |
|---|---|---|
| token * | string | Token string to validate |
| Code | Description | Response Schema |
|---|---|---|
| 200 | Successful Response | any |
| 500 | Internal Server Error | Error {status, message} |
| 422 | Validation Error | HTTPValidationError {detail} |
List Tokens. Creates or processes a list resource. The request body must be provided as JSON with the required fields. On success, returns the created or processed object with a status field.
| Field | Type | Description |
|---|---|---|
| global | boolean | Retrieve tokens for all agents instead of only the current agent |
| Code | Description | Response Schema |
|---|---|---|
| 200 | Successful Response | ListTokensResult {status, tokens, count} |
| 500 | Internal Server Error | Error {status, message} |
| 401 | Unauthorized | AuthenticationRequiredError {status, message} |
| 400 | Bad Request | BadRequestError {status, message} |
| 422 | Validation Error | HTTPValidationError {detail} |
Revoke Token. Creates or processes a revoke resource. The request body must be provided as JSON with the required fields. On success, returns the created or processed object with a status field.
| Field | Type | Description |
|---|---|---|
| token * | string | Token string to revoke |
| global | boolean | Allow revoking tokens belonging to other agents |
| Code | Description | Response Schema |
|---|---|---|
| 200 | Successful Response | RevokeTokenResult {status, revoked} |
| 500 | Internal Server Error | Error {status, message} |
| 401 | Unauthorized | AuthenticationRequiredError {status, message} |
| 400 | Bad Request | BadRequestError {status, message} |
| 422 | Validation Error | HTTPValidationError {detail} |
106 data models from docx v0.7.0 — grouped by type. Required fields marked ✓.
| Field | Type | Description |
|---|---|---|
| profile_id ✓ | string | ID of the profile |
| agent_id ✓ | string | ID of the agent to add |
| Field | Type | Description |
|---|---|---|
| text ✓ | string | Concept text (knowledge, pattern, or learning) |
| api_key | API key for embeddings |
| Field | Type | Description |
|---|---|---|
| rule ✓ | string | Rule text |
| Field | Type | Description |
|---|---|---|
| target ✓ | string(uuid) | |
| description ✓ | string | Human-readable description |
| api_key | API key for embeddings |
| Field | Type | Description |
|---|---|---|
| task_id ✓ | string(uuid) |
| Field | Type | Description |
|---|---|---|
| provider ✓ | Model provider | |
| model ✓ | Model name | |
| name | Agent name | |
| description | Agent description | |
| instructions | System instructions for the agent | |
| model_parameters | Model/provider-specific parameters | |
| tools | array[string] | Enabled tool IDs |
| tool_options | Per-tool options | |
| end_after_tools | End response generation after tool execution | |
| hide_sequential_outputs | Hide intermediate sequential outputs | |
| recursion_limit | Maximum recursion depth | |
| conversation_starters | Suggested conversation starters | |
| category | Agent category |
| Field | Type | Description |
|---|---|---|
| profile_name ✓ | string | Profile name |
| Field | Type | Description |
|---|---|---|
| agent_id ✓ | string | ID of agent to delete |
| Field | Type | Description |
|---|---|---|
| name ✓ | string | Expert name |
| global | boolean | Allow deleting experts belonging to other agents |
| Field | Type | Description |
|---|---|---|
| profile_id ✓ | string | ID of profile to delete |
| Field | Type | Description |
|---|---|---|
| by ✓ | ||
| id ✓ | string | by agent: Agent ID; by profile: Profile ID |
| from | Optional ISO-8601 lower bound (inclusive) | |
| to | Optional ISO-8601 upper bound (inclusive) | |
| limit | Optional positive integer, default 200, max 1000 |
| Field | Type | Description |
|---|---|---|
| by ✓ | ||
| id ✓ | string | by agent: Agent ID; by profile: Profile ID |
| Field | Type | Description |
|---|---|---|
| name | string | Optional friendly name for the token |
| Field | Type | Description |
|---|---|---|
| agent_id ✓ | string | Agent ID |
| Field | Type | Description |
|---|---|---|
| name ✓ | string | Expert name |
| global | boolean | Search experts across all agents instead of only the current agent |
| Field | Type | Description |
|---|---|---|
| key ✓ | string | Exact key name to retrieve |
| global | boolean | Search keys across all agents instead of only the current agent |
| Field | Type | Description |
|---|---|---|
| profile_id | Profile ID to filter agents by. If omitted, all agents are returned |
| Field | Type | Description |
|---|---|---|
| global | boolean | Retrieve concepts for all agents instead of only the current agent |
| Field | Type | Description |
|---|---|---|
| global | boolean | Retrieve experts for all agents instead of only the current agent |
| Field | Type | Description |
|---|---|---|
| global | boolean | Retrieve key-value pairs for all agents instead of only the current agent |
| Field | Type | Description |
|---|---|---|
| global | boolean | Retrieve rules for all agents instead of only the current agent |
| Field | Type | Description |
|---|---|---|
| global | boolean | Retrieve targets for all agents instead of only the current agent |
| Field | Type | Description |
|---|---|---|
| global | boolean | Retrieve tokens for all agents instead of only the current agent |
| Field | Type | Description |
|---|---|---|
| concept_id ✓ | integer | ID of concept to remove |
| global | boolean | Allow removing concepts belonging to other agents |
| Field | Type | Description |
|---|---|---|
| name ✓ | string | Expert name |
| global | boolean | Allow removing experts belonging to other agents |
| Field | Type | Description |
|---|---|---|
| key ✓ | string | Key name to remove |
| global | boolean | Allow removing key-value pairs belonging to other agents |
| Field | Type | Description |
|---|---|---|
| rule_id ✓ | string | ID of rule to remove |
| global | boolean | Allow removing rules belonging to other agents |
| Field | Type | Description |
|---|---|---|
| id ✓ | string | |
| global | boolean | Allow removing targets belonging to other agents |
| Field | Type | Description |
|---|---|---|
| token ✓ | string | Token string to revoke |
| global | boolean | Allow revoking tokens belonging to other agents |
| Field | Type | Description |
|---|---|---|
| agent_id ✓ | string | ID of agent to run |
| input ✓ | Plain user message or list of OpenResponses input items | |
| run_timeout | number | Agent run timeout in seconds |
| previous_response_id | ID of a previous response to continue from | |
| instructions | ||
| tools | List of tools available to the agent | |
| tool_choice | Tool selection strategy: auto, none, or specific | |
| temperature | Sampling temperature | |
| max_output_tokens | Maximum number of tokens to generate | |
| store | boolean | Whether to persist the conversation |
| Field | Type | Description |
|---|---|---|
| expert_name ✓ | string | Expert name |
| params | object | Expert parameters |
| target | ID (UUID) of the device. Omit if unspecified | |
| isolated | boolean | Isolated run in virtual environment |
| pin | PIN. Omit if unspecified | |
| global | boolean | Search for this expert across all agents |
| Field | Type | Description |
|---|---|---|
| name | string | Unique expert name (snake_case) |
| description | string | Expert description (in English!) |
| code | string | Expert code |
| kwargs | object | Expert parameters with defaults |
| cspl | string | CSPL code type |
| api_key | API key for embeddings | |
| global | boolean | Allow modifying experts belonging to other agents |
| Field | Type | Description |
|---|---|---|
| query | string | Search query |
| limit | integer | Results limit |
| api_key | API key for embeddings | |
| global | boolean | Search experts across all agents |
| Field | Type | Description |
|---|---|---|
| query ✓ | string | Search query text |
| limit | integer | Maximum number of results |
| api_key | API key for embeddings | |
| global | boolean | Search concepts across all agents |
| Field | Type | Description |
|---|---|---|
| query ✓ | string | Search query |
| limit | integer | Results limit |
| api_key | API key for embeddings | |
| global | boolean | Search experts across all agents |
| Field | Type | Description |
|---|---|---|
| query ✓ | string | Search query |
| limit | integer | Maximum results |
| api_key | API key for embeddings | |
| global | boolean | Search across all agents |
| Field | Type | Description |
|---|---|---|
| query ✓ | string | |
| limit | integer | Maximum results |
| api_key | API key for embeddings | |
| global | boolean | Search targets across all agents |
| Field | Type | Description |
|---|---|---|
| target ✓ | string(uuid) |
| Field | Type | Description |
|---|---|---|
| key ✓ | string | Unique key name |
| value ✓ | string | Value to store |
| description | string | Optional description for semantic search |
| api_key | API key for embeddings | |
| global | boolean | Allow modifying key-value pairs belonging to other agents |
| Field | Type | Description |
|---|---|---|
| agent_id ✓ | string | ID of agent to update |
| name | Agent name | |
| description | Agent description | |
| instructions | System instructions for the agent | |
| model_parameters | Model/provider-specific parameters | |
| tools | Enabled tool IDs | |
| tool_options | Per-tool options | |
| end_after_tools | End response generation after tool execution | |
| hide_sequential_outputs | Hide intermediate sequential outputs | |
| recursion_limit | Maximum recursion depth | |
| conversation_starters | Suggested conversation starters | |
| category | Agent category | |
| provider | Model provider | |
| model | Model name |
| Field | Type | Description |
|---|---|---|
| concept_id ✓ | integer | ID of concept to update |
| new_text ✓ | string | New text content |
| api_key | API key for embeddings | |
| global | boolean | Allow updating concepts belonging to other agents |
| Field | Type | Description |
|---|---|---|
| rule_id ✓ | string | ID of rule to update |
| rule ✓ | string | Rule text |
| global | boolean | Allow updating rules belonging to other agents |
| Field | Type | Description |
|---|---|---|
| id ✓ | string | |
| target | ||
| description | ||
| api_key | API key for embeddings | |
| global | boolean | Allow updating targets belonging to other agents |
| Field | Type | Description |
|---|---|---|
| name ✓ | string | Expert name |
| description ✓ | string | Expert description |
| api_key | API key for embeddings | |
| global | boolean | Allow modifying experts belonging to other agents |
| Field | Type | Description |
|---|---|---|
| token ✓ | string | Token string to validate |
| Field | Type | Description |
|---|---|---|
| status | string | |
| id ✓ | integer | |
| text ✓ | string |
| Field | Type | Description |
|---|---|---|
| status | string | |
| rule_id ✓ | string | ID of added rule |
| rule ✓ | string | Rule text |
| Field | Type | Description |
|---|---|---|
| status | string | |
| id ✓ | string(uuid) | |
| target ✓ | string | |
| description ✓ | string | Target description |
| Field | Type | Description |
|---|---|---|
| task_id ✓ | string(uuid) | |
| status ✓ | Task status | |
| result ✓ | completed: task result; error: error message |
| Field | Type | Description |
|---|---|---|
| status | string | |
| message ✓ | string |
| Field | Type | Description |
|---|---|---|
| status | string | |
| token ✓ | string | Generated token string |
| user_id ✓ | string | |
| name ✓ | string | Friendly name for the token |
| Field | Type | Description |
|---|---|---|
| status | string | |
| target ✓ |
| Field | Type | Description |
|---|---|---|
| status | string | |
| id ✓ | integer | |
| name ✓ | string | Expert name |
| description ✓ | string | Expert description |
| Field | Type | Description |
|---|---|---|
| status | string | |
| expert_name ✓ | string | Expert name |
| expert_description ✓ | string | |
| expert_code ✓ | string | |
| createdAt ✓ | string(date-time) | |
| expert_prompt ✓ | string | |
| expert_params ✓ | object | Expert parameters with defaults |
| cspl ✓ | string | CSPL code type |
| Field | Type | Description |
|---|---|---|
| status | string | |
| id ✓ | integer | |
| key ✓ | string | Key name |
| value ✓ | string | Value |
| description ✓ | string | Description for semantic search |
| created_at ✓ | string(date-time) | |
| updated_at ✓ | string(date-time) |
| Field | Type | Description |
|---|---|---|
| status | string | |
| experts_db_available ✓ | boolean |
| Field | Type | Description |
|---|---|---|
| status | string | |
| valid | boolean |
| Field | Type | Description |
|---|---|---|
| status | string | |
| results ✓ | array[ListConceptResult] | |
| count ✓ | integer |
| Field | Type | Description |
|---|---|---|
| status | string | |
| results ✓ | array[ExpertResult] | |
| count ✓ | integer |
| Field | Type | Description |
|---|---|---|
| status | string | |
| results ✓ | array[ListKeyResult] | |
| count ✓ | integer |
| Field | Type | Description |
|---|---|---|
| status | string | |
| results ✓ | array[ListRuleResult] | |
| count ✓ | integer |
| Field | Type | Description |
|---|---|---|
| status | string | |
| results ✓ | array[ListTargetResult] | |
| count ✓ | integer |
| Field | Type | Description |
|---|---|---|
| status | string | |
| tokens ✓ | array[ListTokenResult] | |
| count ✓ | integer |
| Field | Type | Description |
|---|---|---|
| status | string | |
| removed ✓ | boolean |
| Field | Type | Description |
|---|---|---|
| status | string | |
| revoked ✓ | boolean |
| Field | Type | Description |
|---|---|---|
| status | string | |
| expert_name ✓ | string | Expert name |
| result ✓ | string | |
| task_id | ID of the deferred expert execution task | |
| execution_log ✓ | array[string] | Log messages generated during expert execution |
| run_time_ms | Expert runtime in milliseconds |
| Field | Type | Description |
|---|---|---|
| status | string | |
| expert_name ✓ | string | Expert name |
| user_id ✓ | string |
| Field | Type | Description |
|---|---|---|
| status | string | |
| matches ✓ | array[SearchBlockMatch] | |
| total ✓ | integer | |
| search_time_ms ✓ | number | Search time in milliseconds |
| Field | Type | Description |
|---|---|---|
| status | string | |
| results ✓ | array[SearchConcept] | |
| count ✓ | integer |
| Field | Type | Description |
|---|---|---|
| status | string | |
| experts ✓ | array[SearchExpertDbResult] | |
| count ✓ | integer |
| Field | Type | Description |
|---|---|---|
| status | string | |
| results ✓ | array[SearchKeyResult] | |
| count ✓ | integer |
| Field | Type | Description |
|---|---|---|
| status | string | |
| results ✓ | array[SearchTargetResult] | |
| count ✓ | integer |
| Field | Type | Description |
|---|---|---|
| status | string | |
| target ✓ | string(uuid) |
| Field | Type | Description |
|---|---|---|
| status | string | |
| key ✓ | string | Key name |
| value ✓ | string | Stored value |
| description ✓ | string | Description for semantic search |
| id ✓ | integer |
| Field | Type | Description |
|---|---|---|
| status | string | |
| id ✓ | integer | ID of updated concept |
| text ✓ | string | New text content |
| Field | Type | Description |
|---|---|---|
| status | string | |
| rule_id ✓ | string | ID of updated rule |
| rule ✓ | string | Rule text |
| Field | Type | Description |
|---|---|---|
| status | string | |
| id ✓ | string(uuid) | |
| target ✓ | string | |
| description ✓ | string | Target description |
| Field | Type | Description |
|---|---|---|
| status | string | |
| id ✓ | integer | |
| name ✓ | string | Expert name |
| description ✓ | string | Expert description |
| Field | Type | Description |
|---|---|---|
| status | string | |
| valid | boolean | |
| user_id ✓ | ||
| profile_id ✓ | ||
| agent_id ✓ | ||
| name ✓ | Friendly name for the token |
| Field | Type | Description |
|---|---|---|
| status | string | |
| message | string |
| Field | Type | Description |
|---|---|---|
| status | string | |
| message ✓ | string | Error message |
| Field | Type | Description |
|---|---|---|
| status | string | |
| message ✓ | string | Error message |
| Field | Type | Description |
|---|---|---|
| detail | array[ValidationError] |
| Field | Type | Description |
|---|---|---|
| status | string | |
| expert_name ✓ | string | Expert name |
| message ✓ | string | Error message |
| execution_log ✓ | array[string] | Log messages generated during expert execution |
| Field | Type | Description |
|---|---|---|
| loc ✓ | array[] | |
| msg ✓ | string | |
| type ✓ | string | |
| input | ||
| ctx | object |
| Field | Type | Description |
|---|---|---|
| id ✓ | integer | |
| name ✓ | string | Expert name |
| description ✓ | string | Expert description |
| created_at ✓ | string(date-time) | |
| updated_at ✓ | string(date-time) | |
| deleted_at |
| Field | Type | Description |
|---|---|---|
| concept_id ✓ | integer | ID of concept |
| concept_text ✓ | string | Concept text |
| created_at ✓ | string(date-time) | |
| updated_at ✓ | string(date-time) |
| Field | Type | Description |
|---|---|---|
| kv_id ✓ | integer | |
| kv_key ✓ | string | Key name |
| kv_value ✓ | string | Value |
| kv_description ✓ | string | Description for semantic search |
| created_at ✓ | string(date-time) | |
| updated_at ✓ | string(date-time) |
| Field | Type | Description |
|---|---|---|
| id ✓ | string | |
| rule ✓ | string | Rule text |
| created_at ✓ | string(date-time) | |
| updated_at ✓ | string(date-time) |
| Field | Type | Description |
|---|---|---|
| id ✓ | string(uuid) | |
| target ✓ | string | |
| description ✓ | string | Target description |
| created_at ✓ | string(date-time) | |
| updated_at ✓ | string(date-time) |
| Field | Type | Description |
|---|---|---|
| token ✓ | string | Token string |
| name ✓ | string | Friendly name for the token |
| created_at ✓ | string(date-time) |
| Field | Type | Description |
|---|---|---|
| name ✓ | string | Expert name |
| description ✓ | string | Expert description |
| score ✓ | integer | Percentage of match |
| kwargs ✓ | object | Expert parameters with defaults |
| code ✓ | string | Expert code |
| Field | Type | Description |
|---|---|---|
| concept_id ✓ | integer | ID of concept |
| concept_text ✓ | string | Concept text |
| similarity ✓ | number | Semantic similarity score (0.0 to 1.0) |
| created_at ✓ | string(date-time) |
| Field | Type | Description |
|---|---|---|
| id ✓ | integer | |
| name ✓ | string | Expert name |
| description ✓ | string | Expert description |
| code ✓ | string | Expert code |
| kwargs ✓ | object | Expert parameters with defaults |
| similarity ✓ | number | Semantic similarity score between the query and name+description (0.0 to 1.0) |
| Field | Type | Description |
|---|---|---|
| kv_id ✓ | integer | |
| kv_key ✓ | string | Key name |
| kv_value ✓ | string | Value |
| kv_description ✓ | string | Description for semantic search |
| similarity ✓ | number | Semantic similarity score between the query and key+value+description (0.0 to 1.0) |
| created_at ✓ | string(date-time) | |
| updated_at ✓ | string(date-time) |
| Field | Type | Description |
|---|---|---|
| id ✓ | string(uuid) | |
| target ✓ | string | |
| description ✓ | string | Target description |
| similarity ✓ | number | Semantic similarity score between query and target+description (0.0 to 1.0) |
| Field | Type | Description |
|---|---|---|
| type ✓ | string |
| Field | Type | Description |
|---|---|---|
| type ✓ | string |
| Field | Type | Description |
|---|---|---|
| type ✓ | string | |
| role ✓ | ||
| content ✓ |
| Field | Type | Description |
|---|---|---|
| temperature | openAI, azureOpenAI, google, anthropic, bedrock — controls determinism | |
| presence_penalty | openAI, azureOpenAI — penalty for repetitive tokens | |
| frequency_penalty | openAI, azureOpenAI — penalty for repeated tokens | |
| stop | openAI, azureOpenAI — stop tokens | |
| top_p | openAI, azureOpenAI — nucleus sampling (0-1) | |
| topP | google, anthropic — nucleus sampling | |
| topK | google, anthropic — limits next token selection to top K | |
| max_tokens | openAI, azureOpenAI — maximum tokens in model response | |
| maxOutputTokens | google, anthropic — maximum tokens in response | |
| promptCache | anthropic, bedrock — enables/disables built-in prompt caching | |
| reasoning_effort | openAI, azureOpenAI, bedrock — controls reasoning effort level | |
| reasoning_summary | openAI, azureOpenAI — sets reasoning summary preferences | |
| useResponsesApi | openAI, azureOpenAI — enables/disables responses API | |
| verbosity | openAI, azureOpenAI — controls verbosity level | |
| web_search | openAI, azureOpenAI, google, anthropic — enables/disables web search | |
| disableStreaming | openAI, azureOpenAI — disables streaming responses | |
| thinkingBudget | google, anthropic, bedrock — controls number of thinking tokens | |
| thinkingLevel | google Gemini 3+ — controls thinking effort level | |
| effort | anthropic, bedrock — controls Adaptive Thinking effort level | |
| thinkingDisplay | anthropic, bedrock — controls whether reasoning content is returned | |
| thinking | google, anthropic, bedrock — whether model should think before responding | |
| region | bedrock — AWS region for Amazon Bedrock endpoints | |
| maxTokens | bedrock — maximum output tokens for Amazon Bedrock | |
| resendFiles | Resend all previously attached files | |
| imageDetail | Vision requests resolution: low, auto, high | |
| fileTokenLimit | Set maximum token limit for file processing |
| Field | Type | Description |
|---|---|---|
| type ✓ | string | |
| name ✓ | string | |
| description ✓ | string | |
| parameters |
| Field | Type | Description |
|---|---|---|
| defer_loading | Defer tool loading until first use | |
| allowed_callers | Allowed caller types |
| Field | Type | Description |
|---|---|---|
| type ✓ | string | |
| properties | ||
| required |
| Field | Type | Description |
|---|---|---|
| type ✓ | string | |
| description |
Persistent AI agents embedded in your product without friction.
"stream": true and receive token-by-token output as it generates./agent/run. Clean 429 with retry_after_seconds.