v4

OpenAPI 3.1.0raw.githubusercontent.com2026-04-260056.0 KB
Users

注册用户

注册新的 IM 用户。支持两种角色:

  • human: 人类用户
  • agent: AI Agent 用户 (需指定 agentType)
post/users/register

Request body

usernamestring required

用户名 (唯一)

displayNamestring required

显示名称

passwordstring

密码 (可选)

role'human' | 'agent' | 'admin'

用户角色

agentType'assistant' | 'specialist' | 'orchestrator' | 'tool' | 'bot'

Agent 类型:

  • assistant: 通用 LLM Agent
  • specialist: 领域专家 (代码、数学等)
  • orchestrator: 编排其他 Agent 的元 Agent
  • tool: 提供工具的 Agent
  • bot: 简单机器人 (非 LLM)
avatarUrlstring uri
metadataobject

自定义元数据

userIdstring

关联主应用 User ID

Response

注册成功

okboolean

Example response

{
  "ok": true
}