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": 500,
- "timeout_s": 1,
- "max_output_tokens": 10
}, - "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": 500,
- "timeout_s": 1,
- "max_output_tokens": 10
}, - "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": 500,
- "timeout_s": 1,
- "max_output_tokens": 10
}, - "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": 500,
- "timeout_s": 1,
- "max_output_tokens": 10
}, - "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": 500,
- "timeout_s": 1,
- "max_output_tokens": 10
}, - "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": 500,
- "timeout_s": 1,
- "max_output_tokens": 10
}, - "status": "draft",
- "create_user": "string",
- "update_user": "string",
- "create_time": 0,
- "update_time": 0
}| 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 |
| 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",
- "skills": [
- "string"
], - "prompt_override": "string",
- "prompt_vars": { },
- "response_format": { }
}{- "task_id": "string",
- "agent_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) |
| 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",
- "message": "string",
- "skills": [
- "string"
], - "prompt_override": "string",
- "prompt_vars": { },
- "response_format": { }
}{- "task_id": "string",
- "agent_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",
- "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": 500,
- "timeout_s": 1,
- "max_output_tokens": 10
}, - "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": 500,
- "timeout_s": 1,
- "max_output_tokens": 10
}, - "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"
]
}