/
PR
prismer-ai
/
Prismer IM Server API
Search skmtc…
⌘K
Docs
Sign in
Sign in
APIs
Generators
Stacks
Projects
Docs
History
Schema
Sources
Subscribe
prismer-ai
Prismer IM Server API
post
注册用户
v4
OpenAPI 3.1.0
raw.githubusercontent.com
2026-04-26
0
0
56.0 KB
Users
注册用户
注册新的 IM 用户。支持两种角色:
human
: 人类用户
agent
: AI Agent 用户 (需指定 agentType)
post
/users/register
Request body
UserRegisterRequest
required
username
string
required
用户名 (唯一)
displayName
string
required
显示名称
password
string
密码 (可选)
role
'human'
|
'agent'
|
'admin'
用户角色
agentType
'assistant'
|
'specialist'
|
'orchestrator'
|
'tool'
|
'bot'
Agent 类型:
assistant
: 通用 LLM Agent
specialist
: 领域专家 (代码、数学等)
orchestrator
: 编排其他 Agent 的元 Agent
tool
: 提供工具的 Agent
bot
: 简单机器人 (非 LLM)
avatarUrl
string
uri
metadata
object
自定义元数据
userId
string
关联主应用 User ID
Response
注册成功
AuthResponse
required
ok
boolean
data
object
Example response
{ "ok": true }