1. Agent 管理
EMOO开放平台
  • 鉴权
    • 获取企业令牌
      GET
  • 通讯录
    • 角色管理
      • 获取角色列表
    • 获取通讯录成员
      GET
    • 更新成员信息
      PUT
  • 数据
    • 搜索数据
      POST
    • 获取数据
      POST
  • 对话
    • 获取用户对话列表
      GET
    • 创建对话
      POST
    • 发送对话消息
      POST
  • 消息
    • 主动推送消息给指定用户
      POST
  • Agent 管理
    • 创建 agent
      POST
    • 获取 agent 列表
      GET
    • 获取 agent 详情
      GET
    • 部分更新 agent
      PATCH
    • 删除 agent
      DELETE
  • EMOO Base
    • 表管理
      • 创建表
      • 获取表列表
      • 更新表
      • 删除表
      • 获取表详情
    • 列管理
      • 添加列
      • 更新列
      • 删除列
    • Record管理
      • 新建record
      • 批量更新record
      • 拉取record列表
      • 更新record
      • 删除record
  • 应用
    • 获取工作空间的应用列表
      GET
    • 获取应用的文档组列表
      GET
  • 数据模型
    • 常量
      • LANGUAGE
      • RESPONSE_CODE
      • WS_USER_TYPE
    • DocDetailInfo
    • DocFilterCondition
    • WsGroupBaseInfo
    • WsUserDetailInfo
    • WsUserUpdate
    • WsAppInfo
    • DocGroupInfo
    • TableIdentifier
    • AgentType
    • WsGroup
    • ColumnIdentifier
    • AgentScope
    • WsGroupListResponse
    • ColumnDef
    • Agent
    • ColumnInfo
    • CreateAgentRequest
    • TableBrief
    • UpdateAgentRequest
    • CreateTableRequest
    • WebhookConfig
    • UpdateTableRequest
    • DifyConfig
    • TableIdentifierRequest
    • CozeConfig
    • AddColumnRequest
    • TimusConfig
    • UpdateColumnRequest
    • AgentResponse
    • DeleteColumnRequest
    • AgentListResponse
    • TableWithColumns
    • EmptyDataResponse
    • TableBriefResponse
    • ErrorResponse
    • TableWithColumnsResponse
    • TableListResponse
    • ColumnResponse
    • DeleteResponse
  1. Agent 管理

创建 agent

POST
/agents
创建 agent。当前支持 4 种集成类型,通过 agent_type 指定,config 字段按类型有不同结构。

请求参数

Authorization
Bearer Token
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token
示例:
Authorization: Bearer ********************
or
Header 参数

Body 参数application/json必填

示例
{
    "title": "我的 webhook 助手",
    "agent_type": "webhook",
    "is_enabled": true,
    "config": {
        "webhook_url": "https://my-agent.example.com/webhook",
        "auth_type": "bearer",
        "bearer_token": "shared-secret-xxx",
        "response_mode": "sse",
        "timeout": 300
    }
}

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
cURL
curl --location 'https://app.emoosearch.com/open-api/v1/agents' \
--header 'Emoo-User-Id: ' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
    "title": "我的 webhook 助手",
    "agent_type": "webhook",
    "is_enabled": true,
    "config": {
        "webhook_url": "https://my-agent.example.com/webhook",
        "auth_type": "bearer",
        "bearer_token": "shared-secret-xxx",
        "response_mode": "sse",
        "timeout": 300
    }
}'

返回响应

🟢200
application/json
创建成功
Bodyapplication/json

示例
{
    "code": 200,
    "message": "success",
    "data": {
        "ws_agent_key": "a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6",
        "title": "我的 webhook 助手",
        "agent_type": "webhook",
        "is_enabled": true,
        "description": null,
        "created_at": "2026-07-04T10:00:00Z",
        "updated_at": "2026-07-04T10:00:00Z"
    }
}
修改于 2026-07-04 10:00:19
上一页
主动推送消息给指定用户
下一页
获取 agent 列表
Built with