Download OpenAPI specification:
Agent Id (string) or Agent Id (null) (Agent Id) | |
| name required | string (Name) [ 1 .. 100 ] characters ^[0-9A-Za-z_一-鿿]+$ |
| mode | string (Mode) Default: "chat" Enum: "chat" "task" |
Prompt Id (string) or Prompt Id (null) (Prompt Id) | |
Prompt Vars Schema (object) or Prompt Vars Schema (null) (Prompt Vars Schema) | |
| model | string (Model) Default: "" |
Array of any (Tools) | |
| skills | Array of strings (Skills) |
AgentLimits (object) or null | |
| status | string (Status) Default: "draft" Enum: "draft" "published" |
{- "agent_id": "string",
- "name": "string",
- "mode": "chat",
- "prompt_id": "string",
- "prompt_vars_schema": { },
- "model": "",
- "tools": [
- {
- "name": "string",
- "description": "string",
- "type": "mcp",
- "url": "string"
}
], - "skills": [
- "string"
], - "limits": {
- "max_turns": 1,
- "max_tool_calls": 0,
- "timeout_s": 1,
- "max_output_tokens": 10,
- "keep_tool_results": 1,
- "data_result_chars": 500,
- "schema_result_chars": 500,
- "summarize_after_tokens": 4000
}, - "status": "draft"
}{- "agent_id": "string",
- "name": "string",
- "mode": "chat",
- "prompt_id": "string",
- "prompt_vars_schema": { },
- "model": "",
- "tools": [
- null
], - "skills": [
- "string"
], - "limits": {
- "max_turns": 1,
- "max_tool_calls": 0,
- "timeout_s": 1,
- "max_output_tokens": 10,
- "keep_tool_results": 1,
- "data_result_chars": 500,
- "schema_result_chars": 500,
- "summarize_after_tokens": 4000
}, - "status": "draft",
- "create_user": "string",
- "update_user": "string",
- "create_time": 0,
- "update_time": 0
}| page | integer (Page) >= 1 Default: 1 |
| size | integer (Size) [ 1 .. 100 ] Default: 20 |
{- "items": [
- {
- "agent_id": "string",
- "name": "string",
- "mode": "chat",
- "prompt_id": "string",
- "prompt_vars_schema": { },
- "model": "",
- "tools": [
- null
], - "skills": [
- "string"
], - "limits": {
- "max_turns": 1,
- "max_tool_calls": 0,
- "timeout_s": 1,
- "max_output_tokens": 10,
- "keep_tool_results": 1,
- "data_result_chars": 500,
- "schema_result_chars": 500,
- "summarize_after_tokens": 4000
}, - "status": "draft",
- "create_user": "string",
- "update_user": "string",
- "create_time": 0,
- "update_time": 0
}
], - "total": 0,
- "page": 0,
- "size": 0
}{- "agent_id": "string",
- "name": "string",
- "mode": "chat",
- "prompt_id": "string",
- "prompt_vars_schema": { },
- "model": "",
- "tools": [
- null
], - "skills": [
- "string"
], - "limits": {
- "max_turns": 1,
- "max_tool_calls": 0,
- "timeout_s": 1,
- "max_output_tokens": 10,
- "keep_tool_results": 1,
- "data_result_chars": 500,
- "schema_result_chars": 500,
- "summarize_after_tokens": 4000
}, - "status": "draft",
- "create_user": "string",
- "update_user": "string",
- "create_time": 0,
- "update_time": 0
}| agent_id required | string (Agent Id) |
Agent Id (string) or Agent Id (null) (Agent Id) | |
| name required | string (Name) [ 1 .. 100 ] characters ^[0-9A-Za-z_一-鿿]+$ |
| mode | string (Mode) Default: "chat" Enum: "chat" "task" |
Prompt Id (string) or Prompt Id (null) (Prompt Id) | |
Prompt Vars Schema (object) or Prompt Vars Schema (null) (Prompt Vars Schema) | |
| model | string (Model) Default: "" |
Array of any (Tools) | |
| skills | Array of strings (Skills) |
AgentLimits (object) or null | |
| status | string (Status) Default: "draft" Enum: "draft" "published" |
{- "agent_id": "string",
- "name": "string",
- "mode": "chat",
- "prompt_id": "string",
- "prompt_vars_schema": { },
- "model": "",
- "tools": [
- {
- "name": "string",
- "description": "string",
- "type": "mcp",
- "url": "string"
}
], - "skills": [
- "string"
], - "limits": {
- "max_turns": 1,
- "max_tool_calls": 0,
- "timeout_s": 1,
- "max_output_tokens": 10,
- "keep_tool_results": 1,
- "data_result_chars": 500,
- "schema_result_chars": 500,
- "summarize_after_tokens": 4000
}, - "status": "draft"
}{- "agent_id": "string",
- "name": "string",
- "mode": "chat",
- "prompt_id": "string",
- "prompt_vars_schema": { },
- "model": "",
- "tools": [
- null
], - "skills": [
- "string"
], - "limits": {
- "max_turns": 1,
- "max_tool_calls": 0,
- "timeout_s": 1,
- "max_output_tokens": 10,
- "keep_tool_results": 1,
- "data_result_chars": 500,
- "schema_result_chars": 500,
- "summarize_after_tokens": 4000
}, - "status": "draft",
- "create_user": "string",
- "update_user": "string",
- "create_time": 0,
- "update_time": 0
}Read a pinning receipt under the existing Agent-read boundary.
This performs no task creation, version publication, configuration change or Prompt-body disclosure. Project owners do not need shared-admin access merely to pin the published task configuration they are about to invoke.
| agent_id required | string (Agent Id) |
{- "agent_id": "string",
- "agent_version": 1,
- "prompt_version": 1,
- "tool_free": true
}| agent_id required | string (Agent Id) |
Thread Id (string) or Thread Id (null) (Thread Id) | |
| message required | string (Message) non-empty |
| skills | Array of strings (Skills) |
Prompt Override (string) or Prompt Override (null) (Prompt Override) | |
object (Prompt Vars) | |
Response Format (object) or Response Format (null) (Response Format) |
{- "agent_id": "string",
- "thread_id": "string",
- "message": "string",
- "skills": [
- "string"
], - "prompt_override": "string",
- "prompt_vars": { },
- "response_format": { }
}nullRun once synchronously and return only when the task reaches a terminal state.
Only a published agent may be called; a draft answers exactly like a missing one. Both chat and task modes are accepted. Execution is a single stateless turn and no thread is persisted, while the task record is still stored so the run stays observable.
| agent_id required | string (Agent Id) |
| message required | string (Message) non-empty |
Agent Version (integer) or Agent Version (null) (Agent Version) Run this existing agent version; omitted uses the current configuration. | |
| skills | Array of strings (Skills) |
Prompt Override (string) or Prompt Override (null) (Prompt Override) | |
object (Prompt Vars) | |
Response Format (object) or Response Format (null) (Response Format) |
{- "message": "string",
- "agent_version": 1,
- "skills": [
- "string"
], - "prompt_override": "string",
- "prompt_vars": { },
- "response_format": { }
}{- "task_id": "string",
- "agent_id": "string",
- "agent_version": 0,
- "prompt_version": 0,
- "model": "string",
- "model_id": "string",
- "status": "pending",
- "input": { },
- "output": "string",
- "failure_detail": "string",
- "parent_thread_id": "string",
- "create_time": 0,
- "update_time": 0
}| agent_id required | string (Agent Id) |
Agent Version (integer) or Agent Version (null) (Agent Version) Run this existing agent version; omitted uses the current configuration. | |
| message required | string (Message) non-empty |
| skills | Array of strings (Skills) |
Prompt Override (string) or Prompt Override (null) (Prompt Override) | |
object (Prompt Vars) | |
Response Format (object) or Response Format (null) (Response Format) |
{- "agent_id": "string",
- "agent_version": 1,
- "message": "string",
- "skills": [
- "string"
], - "prompt_override": "string",
- "prompt_vars": { },
- "response_format": { }
}{- "task_id": "string",
- "agent_id": "string",
- "agent_version": 0,
- "prompt_version": 0,
- "model": "string",
- "model_id": "string",
- "status": "pending",
- "input": { },
- "output": "string",
- "failure_detail": "string",
- "parent_thread_id": "string",
- "create_time": 0,
- "update_time": 0
}{- "task_id": "string",
- "agent_id": "string",
- "agent_version": 0,
- "prompt_version": 0,
- "model": "string",
- "model_id": "string",
- "status": "pending",
- "input": { },
- "output": "string",
- "failure_detail": "string",
- "parent_thread_id": "string",
- "create_time": 0,
- "update_time": 0
}Prompt Id (string) or Prompt Id (null) (Prompt Id) | |
| name required | string (Name) [ 1 .. 100 ] characters |
| content required | string (Content) non-empty |
Vars Schema (object) or Vars Schema (null) (Vars Schema) |
{- "prompt_id": "string",
- "name": "string",
- "content": "string",
- "vars_schema": { }
}{- "prompt_id": "string",
- "name": "string",
- "current_version": 0,
- "content": "string",
- "vars_schema": { },
- "update_user": "string",
- "update_time": 0
}| page | integer (Page) >= 1 Default: 1 |
| size | integer (Size) [ 1 .. 100 ] Default: 20 |
{- "items": [
- {
- "prompt_id": "string",
- "name": "string",
- "current_version": 0,
- "content": "string",
- "vars_schema": { },
- "update_user": "string",
- "update_time": 0
}
], - "total": 0,
- "page": 0,
- "size": 0
}Publish a new version: write t_agent_prompt_version, advance current_version, take effect globally at once.
| prompt_id required | string (Prompt Id) |
| content required | string (Content) non-empty |
Vars Schema (object) or Vars Schema (null) (Vars Schema) |
{- "content": "string",
- "vars_schema": { }
}{- "prompt_id": "string",
- "name": "string",
- "current_version": 0,
- "content": "string",
- "vars_schema": { },
- "update_user": "string",
- "update_time": 0
}| prompt_id required | string (Prompt Id) |
| version required | integer (Version) >= 1 |
{- "version": 1
}{- "prompt_id": "string",
- "name": "string",
- "current_version": 0,
- "content": "string",
- "vars_schema": { },
- "update_user": "string",
- "update_time": 0
}| agent_id required | string (Agent Id) |
| content required | string (Content) non-empty |
{- "content": "string"
}{- "agent_id": "string",
- "account_id": "string",
- "source": "override"
}| agent_ids required | Array of strings (Agent Ids) non-empty |
{- "agent_ids": [
- "string"
]
}{- "format": "bkn-agent/v1",
- "exported_at": 0,
- "items": [
- {
- "agent_id": "string",
- "spec": {
- "agent_id": "string",
- "name": "string",
- "mode": "chat",
- "prompt_id": "string",
- "prompt_vars_schema": { },
- "model": "",
- "tools": [
- {
- "name": "string",
- "description": "string",
- "type": "mcp",
- "url": "string"
}
], - "skills": [
- "string"
], - "limits": {
- "max_turns": 1,
- "max_tool_calls": 0,
- "timeout_s": 1,
- "max_output_tokens": 10,
- "keep_tool_results": 1,
- "data_result_chars": 500,
- "schema_result_chars": 500,
- "summarize_after_tokens": 4000
}, - "status": "draft"
}, - "prompt": {
- "prompt_id": "string",
- "name": "string",
- "content": "string",
- "vars_schema": { }
}
}
]
}{- "package": {
- "format": "bkn-agent/v1",
- "exported_at": 0,
- "items": [
- {
- "agent_id": "string",
- "spec": {
- "agent_id": "string",
- "name": "string",
- "mode": "chat",
- "prompt_id": "string",
- "prompt_vars_schema": { },
- "model": "",
- "tools": [
- {
- "name": "string",
- "description": "string",
- "type": "mcp",
- "url": "string"
}
], - "skills": [
- "string"
], - "limits": {
- "max_turns": 1,
- "max_tool_calls": 0,
- "timeout_s": 1,
- "max_output_tokens": 10,
- "keep_tool_results": 1,
- "data_result_chars": 500,
- "schema_result_chars": 500,
- "summarize_after_tokens": 4000
}, - "status": "draft"
}, - "prompt": {
- "prompt_id": "string",
- "name": "string",
- "content": "string",
- "vars_schema": { }
}
}
]
}
}{- "results": [
- {
- "agent_id": "string",
- "name": "string",
- "action": "created",
- "prompt_action": "created",
- "error": "string"
}
], - "warnings": [
- "string"
]
}{- "run_id": "string",
- "agent_id": "string",
- "thread_id": "string",
- "status": "pending",
- "result": { },
- "error": {
- "property1": "string",
- "property2": "string"
}
}| agent_id required | string (Agent Id) [ 1 .. 50 ] characters ^[0-9A-Za-z_.-]+$ |
| message required | string (Message) [ 1 .. 100000 ] characters |
| client_request_id required | string (Client Request Id) [ 1 .. 100 ] characters ^[0-9A-Za-z_.-]+$ |
Thread Id (string) or Thread Id (null) (Thread Id) | |
required | object (ExecutionScope) |
{- "agent_id": "string",
- "message": "string",
- "client_request_id": "string",
- "thread_id": "string",
- "context": {
- "kn_id": "string",
- "canvas": { }
}
}{- "code": "string",
- "description": "string",
- "detail": "string",
- "solution": "string",
- "trace_id": "string",
- "link": ""
}| agent_id required | string (Agent Id) [ 1 .. 50 ] characters ^[0-9A-Za-z_.-]+$ |
{- "agent_id": "string",
- "setting": {
- "instruction": "string",
- "allowed_tools": [
- "string"
], - "limits": {
- "max_turns": 1,
- "max_tool_calls": 0,
- "timeout_s": 1,
- "max_output_tokens": 10,
- "keep_tool_results": 1,
- "data_result_chars": 500,
- "schema_result_chars": 500,
- "summarize_after_tokens": 4000
}
}, - "version": 0,
- "update_time": 0
}| agent_id required | string (Agent Id) [ 1 .. 50 ] characters ^[0-9A-Za-z_.-]+$ |
Instruction (string) or Instruction (null) (Instruction) | |
Array of Allowed Tools (strings) or Allowed Tools (null) (Allowed Tools) | |
AgentLimits (object) or null |
{- "instruction": "string",
- "allowed_tools": [
- "string"
], - "limits": {
- "max_turns": 1,
- "max_tool_calls": 0,
- "timeout_s": 1,
- "max_output_tokens": 10,
- "keep_tool_results": 1,
- "data_result_chars": 500,
- "schema_result_chars": 500,
- "summarize_after_tokens": 4000
}
}{- "agent_id": "string",
- "setting": {
- "instruction": "string",
- "allowed_tools": [
- "string"
], - "limits": {
- "max_turns": 1,
- "max_tool_calls": 0,
- "timeout_s": 1,
- "max_output_tokens": 10,
- "keep_tool_results": 1,
- "data_result_chars": 500,
- "schema_result_chars": 500,
- "summarize_after_tokens": 4000
}
}, - "version": 0,
- "update_time": 0
}| agent_id required | string (Agent Id) [ 1 .. 50 ] characters ^[0-9A-Za-z_.-]+$ |
{- "agent_id": "string",
- "setting": {
- "instruction": "string",
- "allowed_tools": [
- "string"
], - "limits": {
- "max_turns": 1,
- "max_tool_calls": 0,
- "timeout_s": 1,
- "max_output_tokens": 10,
- "keep_tool_results": 1,
- "data_result_chars": 500,
- "schema_result_chars": 500,
- "summarize_after_tokens": 4000
}
}, - "version": 0,
- "update_time": 0
}| kn_id required | string (Kn Id) [ 1 .. 128 ] characters ^[0-9A-Za-z_.-]+$ |
| agent_id required | string (Agent Id) [ 1 .. 50 ] characters ^[0-9A-Za-z_.-]+$ |
{- "agent_id": "string",
- "setting": {
- "instruction": "string",
- "allowed_tools": [
- "string"
], - "limits": {
- "max_turns": 1,
- "max_tool_calls": 0,
- "timeout_s": 1,
- "max_output_tokens": 10,
- "keep_tool_results": 1,
- "data_result_chars": 500,
- "schema_result_chars": 500,
- "summarize_after_tokens": 4000
}
}, - "version": 0,
- "update_time": 0
}| kn_id required | string (Kn Id) [ 1 .. 128 ] characters ^[0-9A-Za-z_.-]+$ |
| agent_id required | string (Agent Id) [ 1 .. 50 ] characters ^[0-9A-Za-z_.-]+$ |
Instruction (string) or Instruction (null) (Instruction) | |
Array of Allowed Tools (strings) or Allowed Tools (null) (Allowed Tools) | |
AgentLimits (object) or null |
{- "instruction": "string",
- "allowed_tools": [
- "string"
], - "limits": {
- "max_turns": 1,
- "max_tool_calls": 0,
- "timeout_s": 1,
- "max_output_tokens": 10,
- "keep_tool_results": 1,
- "data_result_chars": 500,
- "schema_result_chars": 500,
- "summarize_after_tokens": 4000
}
}{- "agent_id": "string",
- "setting": {
- "instruction": "string",
- "allowed_tools": [
- "string"
], - "limits": {
- "max_turns": 1,
- "max_tool_calls": 0,
- "timeout_s": 1,
- "max_output_tokens": 10,
- "keep_tool_results": 1,
- "data_result_chars": 500,
- "schema_result_chars": 500,
- "summarize_after_tokens": 4000
}
}, - "version": 0,
- "update_time": 0
}| kn_id required | string (Kn Id) [ 1 .. 128 ] characters ^[0-9A-Za-z_.-]+$ |
| agent_id required | string (Agent Id) [ 1 .. 50 ] characters ^[0-9A-Za-z_.-]+$ |
{- "agent_id": "string",
- "setting": {
- "instruction": "string",
- "allowed_tools": [
- "string"
], - "limits": {
- "max_turns": 1,
- "max_tool_calls": 0,
- "timeout_s": 1,
- "max_output_tokens": 10,
- "keep_tool_results": 1,
- "data_result_chars": 500,
- "schema_result_chars": 500,
- "summarize_after_tokens": 4000
}
}, - "version": 0,
- "update_time": 0
}| agent_id required | string (Agent Id) [ 1 .. 50 ] characters ^[0-9A-Za-z_.-]+$ |
| kn_id required | string (Kn Id) [ 1 .. 128 ] characters ^[0-9A-Za-z_.-]+$ |
{- "agent_id": "string",
- "name": "string",
- "model": "string",
- "status": "string",
- "shared": {
- "limits": {
- "max_turns": 1,
- "max_tool_calls": 0,
- "timeout_s": 1,
- "max_output_tokens": 10,
- "keep_tool_results": 1,
- "data_result_chars": 500,
- "schema_result_chars": 500,
- "summarize_after_tokens": 4000
}, - "allowed_tools": [
- "string"
]
}, - "network": {
- "agent_id": "string",
- "setting": {
- "instruction": "string",
- "allowed_tools": [
- "string"
], - "limits": {
- "max_turns": 1,
- "max_tool_calls": 0,
- "timeout_s": 1,
- "max_output_tokens": 10,
- "keep_tool_results": 1,
- "data_result_chars": 500,
- "schema_result_chars": 500,
- "summarize_after_tokens": 4000
}
}, - "version": 0,
- "update_time": 0
}, - "user": {
- "agent_id": "string",
- "setting": {
- "instruction": "string",
- "allowed_tools": [
- "string"
], - "limits": {
- "max_turns": 1,
- "max_tool_calls": 0,
- "timeout_s": 1,
- "max_output_tokens": 10,
- "keep_tool_results": 1,
- "data_result_chars": 500,
- "schema_result_chars": 500,
- "summarize_after_tokens": 4000
}
}, - "version": 0,
- "update_time": 0
}, - "effective": {
- "limits": {
- "max_turns": 1,
- "max_tool_calls": 0,
- "timeout_s": 1,
- "max_output_tokens": 10,
- "keep_tool_results": 1,
- "data_result_chars": 500,
- "schema_result_chars": 500,
- "summarize_after_tokens": 4000
}, - "allowed_tools": [
- "string"
]
}, - "mcp_profile": "string",
- "can_edit_network": true,
- "can_edit_shared": true
}List configuration history with Prompt bodies in the negotiated request language.
Missing translations fall back to canonical content; raw Prompt history is unchanged.
| agent_id required | string (Agent Id) [ 1 .. 50 ] characters ^[0-9A-Za-z_.-]+$ |
[- {
- "version": 0,
- "model": "string",
- "mcp_profile": "string",
- "limits": { },
- "prompt_version": 0,
- "prompt_content": "string",
- "changes": [ ],
- "initial": true,
- "current": true,
- "create_user": "string",
- "create_time": 0
}
]Make a version current: its model, tools, limits and Prompt version go back onto the Agent. No new version is written.
| version required | integer (Version) >= 1 |
| agent_id required | string (Agent Id) [ 1 .. 50 ] characters ^[0-9A-Za-z_.-]+$ |
{- "agent_id": "string",
- "name": "string",
- "model": "string",
- "status": "string",
- "limits": {
- "max_turns": 1,
- "max_tool_calls": 0,
- "timeout_s": 1,
- "max_output_tokens": 10,
- "keep_tool_results": 1,
- "data_result_chars": 500,
- "schema_result_chars": 500,
- "summarize_after_tokens": 4000
}, - "mcp_profile": "string",
- "uses_context_loader": true,
- "tools": [ ],
- "layered": true,
- "can_edit": true,
- "prompt_version": 0,
- "version": 0,
- "initial_version": 0,
- "restorable": true,
- "modified": true,
- "update_user": "string",
- "update_time": 0
}Remove a version from the history. The current and the initial version stay; a deleted number is never handed out again.
| version required | integer (Version) >= 1 |
| agent_id required | string (Agent Id) [ 1 .. 50 ] characters ^[0-9A-Za-z_.-]+$ |
[- {
- "version": 0,
- "model": "string",
- "mcp_profile": "string",
- "limits": { },
- "prompt_version": 0,
- "prompt_content": "string",
- "changes": [ ],
- "initial": true,
- "current": true,
- "create_user": "string",
- "create_time": 0
}
]| client_request_id required | string (Client Request Id) [ 1 .. 100 ] characters ^[0-9A-Za-z_.-]+$ |
Thread Id (string) or Thread Id (null) (Thread Id) | |
Model Id (string) or Model Id (null) (Model Id) Optional caller-visible chat model; fixed for the metric-design thread. | |
required | object (MetricDesignScope) |
| base_form_revision required | string (Base Form Revision) [ 1 .. 100 ] characters |
required | object (Form Snapshot) |
required | object (MetricDesignCandidates) |
MetricDesignDiagnostic (object) or null | |
| message required | string (Message) [ 1 .. 4000 ] characters |
{- "client_request_id": "string",
- "thread_id": "string",
- "model_id": "string",
- "scope": {
- "kn_id": "string",
- "owner_object_type_id": "string",
- "metric_type": "atomic",
- "mode": "create",
- "metric_id": "string",
- "draft_version": 1
}, - "base_form_revision": "string",
- "form_snapshot": { },
- "candidates": {
- "properties": [
- {
- "name": "string",
- "label": "string",
- "type": "string"
}
], - "published_metrics": [
- {
- "id": "string",
- "version": 1,
- "name": "string",
- "type": "atomic",
- "object_type_id": "string"
}
]
}, - "diagnostic": {
- "kind": "validation",
- "form_revision": "string",
- "status": "valid",
- "issues": [
- {
- "code": "string",
- "field": "string",
- "message": "string"
}
], - "warnings": [
- "string"
], - "output_shape": "string",
- "physical_type": "string",
- "unit_code": "string",
- "entry_count": 0,
- "overall_ms": 0
}, - "message": "string"
}{- "code": "string",
- "description": "string",
- "detail": "string",
- "solution": "string",
- "trace_id": "string",
- "link": ""
}