LangBot HTTP API
  1. adapters
LangBot HTTP API
  • logs
    • 获取日志
      GET
  • stats
    • 获取基本统计数据
      GET
  • system
    • 获取系统信息
      GET
    • 获取异步任务列表
      GET
    • 获取指定任务的信息
      GET
    • 执行调试代码
      POST
    • 执行热重载
      POST
  • settings
    • 获取已注册的配置管理器列表
      GET
    • 获取配置管理器详细信息
      GET
    • 修改配置管理器内容
      PUT
  • plugins
    • 获取已加载的插件列表
      GET
    • 获取已加载的插件的信息
      GET
    • 获取插件配置
      GET
    • 修改插件配置
      PUT
    • 切换插件启用/禁用状态
      PUT
    • 重新排序(修改优先级)
      PUT
    • 更新插件
      POST
    • 从 GitHub 仓库安装插件
      POST
    • 删除插件
      DELETE
    • 获取插件市场插件列表
      POST
  • user
    • 获取是否已经初始化
    • 创建初始账户
    • 检查账户并签发token
    • 检查并刷新token
  • provider
    • models
      • llm
        • 获取 LLM 模型列表
        • 添加 LLM 模型
        • 获取 LLM 模型详细信息
        • 删除 LLM 模型
        • 修改 LLM 模型信息
        • 临时测试 LLM 模型
        • 测试 LLM 模型
      • embedding
        • 获取嵌入模型列表
        • 添加嵌入模型
        • 获取嵌入模型详细信息
        • 删除嵌入模型
        • 修改嵌入模型信息
        • 临时测试嵌入模型
        • 测试 LLM 模型
    • requesters
      • 获取可用的请求器列表
      • 获取指定请求器信息
      • 请求器图标
  • pipelines
    • chat
      • 发送消息
      • 获取指定session的历史消息
    • 获取流水线配置元数据
    • 获取流水线列表
    • 新建流水线
    • 获取流水线信息
    • 删除流水线
    • 修改流水线信息
  • platform
    • bots
      • 获取机器人列表
      • 获取指定机器人信息
      • 创建机器人
      • 删除机器人
      • 修改机器人配置
      • 拉取机器人事件日志
    • adapters
      • 获取可用的适配器列表
        GET
      • 获取指定适配器信息
        GET
      • 适配器图标
        GET
  • files
    • 下载图片文件
    • 上传文件
  • knowledge
    • bases
      • 获取所有知识库
      • 获取单个知识库信息
      • 创建空知识库
      • 上传并解析文件
      • 获取知识库中的文件列表
      • 删除文件
      • 删除知识库
  1. adapters

获取可用的适配器列表

测试中
GET
/api/v1/platform/adapters

请求参数

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

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET '/api/v1/platform/adapters'

返回响应

🟢200成功
application/json
Body
object {0}
示例
{
    "code": 0,
    "data": {
        "adapters": [
            {
                "description": {
                    "en_US": "Discord Adapter",
                    "zh_CN": "Discord 适配器,请查看文档了解使用方式"
                },
                "icon": "discord.svg",
                "label": {
                    "en_US": "Discord",
                    "zh_CN": "Discord"
                },
                "name": "discord",
                "spec": {
                    "config": [
                        {
                            "default": "",
                            "label": {
                                "en_US": "Client ID",
                                "zh_CN": "客户端ID"
                            },
                            "name": "client_id",
                            "required": true,
                            "type": "string"
                        },
                        {
                            "default": "",
                            "label": {
                                "en_US": "Token",
                                "zh_CN": "令牌"
                            },
                            "name": "token",
                            "required": true,
                            "type": "string"
                        }
                    ]
                }
            },
            {
                "description": {
                    "en_US": "QQ Official API (Webhook)",
                    "zh_CN": "QQ 官方 API (Webhook),请查看文档了解使用方式"
                },
                "icon": "qqofficial.svg",
                "label": {
                    "en_US": "QQ Official API",
                    "zh_CN": "QQ 官方 API"
                },
                "name": "qqofficial",
                "spec": {
                    "config": [
                        {
                            "default": "",
                            "label": {
                                "en_US": "App ID",
                                "zh_CN": "应用ID"
                            },
                            "name": "appid",
                            "required": true,
                            "type": "string"
                        },
                        {
                            "default": "",
                            "label": {
                                "en_US": "Secret",
                                "zh_CN": "密钥"
                            },
                            "name": "secret",
                            "required": true,
                            "type": "string"
                        },
                        {
                            "default": 2284,
                            "label": {
                                "en_US": "Port",
                                "zh_CN": "监听端口"
                            },
                            "name": "port",
                            "required": true,
                            "type": "integer"
                        },
                        {
                            "default": "",
                            "label": {
                                "en_US": "Token",
                                "zh_CN": "令牌"
                            },
                            "name": "token",
                            "required": true,
                            "type": "string"
                        }
                    ]
                }
            },
            {
                "description": {
                    "en_US": "Telegram Adapter",
                    "zh_CN": "电报适配器,请查看文档了解使用方式"
                },
                "icon": "telegram.svg",
                "label": {
                    "en_US": "Telegram",
                    "zh_CN": "电报"
                },
                "name": "telegram",
                "spec": {
                    "config": [
                        {
                            "default": "",
                            "label": {
                                "en_US": "Token",
                                "zh_CN": "令牌"
                            },
                            "name": "token",
                            "required": true,
                            "type": "string"
                        }
                    ]
                }
            },
            {
                "description": {
                    "en_US": "WeCom Adapter",
                    "zh_CN": "企业微信适配器,请查看文档了解使用方式"
                },
                "icon": "wecom.png",
                "label": {
                    "en_US": "WeCom",
                    "zh_CN": "企业微信"
                },
                "name": "wecom",
                "spec": {
                    "config": [
                        {
                            "default": "0.0.0.0",
                            "description": {
                                "en_US": "Webhook host, unless you know what you're doing, please write 0.0.0.0",
                                "zh_CN": "Webhook 监听主机,除非你知道自己在做什么,否则请写 0.0.0.0"
                            },
                            "label": {
                                "en_US": "Host",
                                "zh_CN": "监听主机"
                            },
                            "name": "host",
                            "required": true,
                            "type": "string"
                        },
                        {
                            "default": 2290,
                            "label": {
                                "en_US": "Port",
                                "zh_CN": "监听端口"
                            },
                            "name": "port",
                            "required": true,
                            "type": "integer"
                        },
                        {
                            "default": "",
                            "label": {
                                "en_US": "Corpid",
                                "zh_CN": "企业ID"
                            },
                            "name": "corpid",
                            "required": true,
                            "type": "string"
                        },
                        {
                            "default": "",
                            "label": {
                                "en_US": "Secret",
                                "zh_CN": "密钥"
                            },
                            "name": "secret",
                            "required": true,
                            "type": "string"
                        },
                        {
                            "default": "",
                            "label": {
                                "en_US": "Token",
                                "zh_CN": "令牌"
                            },
                            "name": "token",
                            "required": true,
                            "type": "string"
                        },
                        {
                            "default": "",
                            "label": {
                                "en_US": "EncodingAESKey",
                                "zh_CN": "消息加解密密钥"
                            },
                            "name": "EncodingAESKey",
                            "required": true,
                            "type": "string"
                        },
                        {
                            "default": "",
                            "label": {
                                "en_US": "Contacts Secret",
                                "zh_CN": "通讯录密钥"
                            },
                            "name": "contacts_secret",
                            "required": true,
                            "type": "string"
                        }
                    ]
                }
            },
            {
                "description": {
                    "en_US": "GeWeChat Adapter",
                    "zh_CN": "GeWeChat 适配器,请查看文档了解使用方式"
                },
                "icon": "gewechat.png",
                "label": {
                    "en_US": "GeWeChat",
                    "zh_CN": "GeWeChat(个人微信)"
                },
                "name": "gewechat",
                "spec": {
                    "config": [
                        {
                            "default": "",
                            "label": {
                                "en_US": "GeWeChat URL",
                                "zh_CN": "GeWeChat URL"
                            },
                            "name": "gewechat_url",
                            "required": true,
                            "type": "string"
                        },
                        {
                            "default": "",
                            "label": {
                                "en_US": "GeWeChat file download URL",
                                "zh_CN": "GeWeChat 文件下载URL"
                            },
                            "name": "gewechat_file_url",
                            "required": true,
                            "type": "string"
                        },
                        {
                            "default": 2286,
                            "label": {
                                "en_US": "Port",
                                "zh_CN": "端口"
                            },
                            "name": "port",
                            "required": true,
                            "type": "integer"
                        },
                        {
                            "default": "",
                            "label": {
                                "en_US": "Callback URL",
                                "zh_CN": "回调URL"
                            },
                            "name": "callback_url",
                            "required": true,
                            "type": "string"
                        },
                        {
                            "default": "",
                            "label": {
                                "en_US": "App ID",
                                "zh_CN": "应用ID"
                            },
                            "name": "app_id",
                            "required": true,
                            "type": "string"
                        },
                        {
                            "default": "",
                            "label": {
                                "en_US": "Token",
                                "zh_CN": "令牌"
                            },
                            "name": "token",
                            "required": true,
                            "type": "string"
                        }
                    ]
                }
            },
            {
                "description": {
                    "en_US": "OneBot v11 Adapter",
                    "zh_CN": "OneBot v11 适配器,请查看文档了解使用方式"
                },
                "icon": "onebot.png",
                "label": {
                    "en_US": "OneBot v11 Adapter",
                    "zh_CN": "OneBot v11 适配器"
                },
                "name": "aiocqhttp",
                "spec": {
                    "config": [
                        {
                            "default": "0.0.0.0",
                            "description": {
                                "en_US": "The host that OneBot v11 listens on for reverse WebSocket connections. Unless you know what you're doing, use 0.0.0.0",
                                "zh_CN": "OneBot v11 监听的反向 WS 主机,除非你知道自己在做什么,否则请写 0.0.0.0"
                            },
                            "label": {
                                "en_US": "Host",
                                "zh_CN": "主机"
                            },
                            "name": "host",
                            "required": true,
                            "type": "string"
                        },
                        {
                            "default": 2280,
                            "description": {
                                "en_US": "Port",
                                "zh_CN": "监听的端口"
                            },
                            "label": {
                                "en_US": "Port",
                                "zh_CN": "端口"
                            },
                            "name": "port",
                            "required": true,
                            "type": "integer"
                        },
                        {
                            "default": "",
                            "description": {
                                "en_US": "Custom connection token for the protocol endpoint. If the protocol endpoint is not set, don't fill it",
                                "zh_CN": "自定义的与协议端的连接令牌,若协议端未设置,则不填"
                            },
                            "label": {
                                "en_US": "Access Token",
                                "zh_CN": "访问令牌"
                            },
                            "name": "access-token",
                            "required": false,
                            "type": "string"
                        }
                    ]
                }
            },
            {
                "description": {
                    "en_US": "Official Account Adapter",
                    "zh_CN": "微信公众号适配器,请查看文档了解使用方式"
                },
                "icon": "officialaccount.png",
                "label": {
                    "en_US": "Official Account",
                    "zh_CN": "微信公众号"
                },
                "name": "officialaccount",
                "spec": {
                    "config": [
                        {
                            "default": "",
                            "label": {
                                "en_US": "Token",
                                "zh_CN": "令牌"
                            },
                            "name": "token",
                            "required": true,
                            "type": "string"
                        },
                        {
                            "default": "",
                            "label": {
                                "en_US": "EncodingAESKey",
                                "zh_CN": "消息加解密密钥"
                            },
                            "name": "EncodingAESKey",
                            "required": true,
                            "type": "string"
                        },
                        {
                            "default": "",
                            "label": {
                                "en_US": "App ID",
                                "zh_CN": "应用ID"
                            },
                            "name": "AppID",
                            "required": true,
                            "type": "string"
                        },
                        {
                            "default": "",
                            "label": {
                                "en_US": "App Secret",
                                "zh_CN": "应用密钥"
                            },
                            "name": "AppSecret",
                            "required": true,
                            "type": "string"
                        },
                        {
                            "default": "0.0.0.0",
                            "label": {
                                "en_US": "Host",
                                "zh_CN": "监听主机"
                            },
                            "name": "host",
                            "required": true,
                            "type": "string"
                        },
                        {
                            "default": 2287,
                            "label": {
                                "en_US": "Port",
                                "zh_CN": "监听端口"
                            },
                            "name": "port",
                            "required": true,
                            "type": "integer"
                        }
                    ]
                }
            },
            {
                "description": {
                    "en_US": "Nakuru Adapter",
                    "zh_CN": "Nakuru 适配器(go-cqhttp),请查看文档了解使用方式"
                },
                "icon": "nakuru.png",
                "label": {
                    "en_US": "Nakuru",
                    "zh_CN": "Nakuru"
                },
                "name": "nakuru",
                "spec": {
                    "config": [
                        {
                            "default": "127.0.0.1",
                            "label": {
                                "en_US": "Host",
                                "zh_CN": "主机"
                            },
                            "name": "host",
                            "required": true,
                            "type": "string"
                        },
                        {
                            "default": 5700,
                            "label": {
                                "en_US": "HTTP Port",
                                "zh_CN": "HTTP端口"
                            },
                            "name": "http_port",
                            "required": true,
                            "type": "integer"
                        },
                        {
                            "default": 8080,
                            "label": {
                                "en_US": "WebSocket Port",
                                "zh_CN": "WebSocket端口"
                            },
                            "name": "ws_port",
                            "required": true,
                            "type": "integer"
                        },
                        {
                            "default": "",
                            "label": {
                                "en_US": "Token",
                                "zh_CN": "令牌"
                            },
                            "name": "token",
                            "required": true,
                            "type": "string"
                        }
                    ]
                }
            },
            {
                "description": {
                    "en_US": "QQ Official API (WebSocket)",
                    "zh_CN": "QQ 官方 API (WebSocket),请查看文档了解使用方式"
                },
                "icon": "qqbotpy.svg",
                "label": {
                    "en_US": "QQBotPy",
                    "zh_CN": "QQBotPy"
                },
                "name": "qq-botpy",
                "spec": {
                    "config": [
                        {
                            "default": "",
                            "label": {
                                "en_US": "App ID",
                                "zh_CN": "应用ID"
                            },
                            "name": "appid",
                            "required": true,
                            "type": "string"
                        },
                        {
                            "default": "",
                            "label": {
                                "en_US": "Secret",
                                "zh_CN": "密钥"
                            },
                            "name": "secret",
                            "required": true,
                            "type": "string"
                        },
                        {
                            "default": [],
                            "items": {
                                "type": "string"
                            },
                            "label": {
                                "en_US": "Intents",
                                "zh_CN": "权限"
                            },
                            "name": "intents",
                            "required": true,
                            "type": "array"
                        }
                    ]
                }
            },
            {
                "description": {
                    "en_US": "DingTalk Adapter",
                    "zh_CN": "钉钉适配器,请查看文档了解使用方式"
                },
                "icon": "dingtalk.svg",
                "label": {
                    "en_US": "DingTalk",
                    "zh_CN": "钉钉"
                },
                "name": "dingtalk",
                "spec": {
                    "config": [
                        {
                            "default": "",
                            "label": {
                                "en_US": "Client ID",
                                "zh_CN": "客户端ID"
                            },
                            "name": "client_id",
                            "required": true,
                            "type": "string"
                        },
                        {
                            "default": "",
                            "label": {
                                "en_US": "Client Secret",
                                "zh_CN": "客户端密钥"
                            },
                            "name": "client_secret",
                            "required": true,
                            "type": "string"
                        },
                        {
                            "default": "",
                            "label": {
                                "en_US": "Robot Code",
                                "zh_CN": "机器人代码"
                            },
                            "name": "robot_code",
                            "required": true,
                            "type": "string"
                        },
                        {
                            "default": "",
                            "label": {
                                "en_US": "Robot Name",
                                "zh_CN": "机器人名称"
                            },
                            "name": "robot_name",
                            "required": true,
                            "type": "string"
                        }
                    ]
                }
            },
            {
                "description": {
                    "en_US": "Lark Adapter",
                    "zh_CN": "飞书适配器,请查看文档了解使用方式"
                },
                "icon": "lark.svg",
                "label": {
                    "en_US": "Lark",
                    "zh_CN": "飞书"
                },
                "name": "lark",
                "spec": {
                    "config": [
                        {
                            "default": "",
                            "label": {
                                "en_US": "App ID",
                                "zh_CN": "应用ID"
                            },
                            "name": "app_id",
                            "required": true,
                            "type": "string"
                        },
                        {
                            "default": "",
                            "label": {
                                "en_US": "App Secret",
                                "zh_CN": "应用密钥"
                            },
                            "name": "app_secret",
                            "required": true,
                            "type": "string"
                        },
                        {
                            "default": "",
                            "label": {
                                "en_US": "Bot Name",
                                "zh_CN": "机器人名称"
                            },
                            "name": "bot_name",
                            "required": true,
                            "type": "string"
                        },
                        {
                            "default": false,
                            "description": {
                                "en_US": "If enabled, the bot will use webhook mode to receive messages. Otherwise, it will use WS long connection mode",
                                "zh_CN": "如果启用,机器人将使用 Webhook 模式接收消息。否则,将使用 WS 长连接模式"
                            },
                            "label": {
                                "en_US": "Enable Webhook Mode",
                                "zh_CN": "启用Webhook模式"
                            },
                            "name": "enable-webhook",
                            "required": true,
                            "type": "boolean"
                        },
                        {
                            "default": 2285,
                            "description": {
                                "en_US": "Only valid when webhook mode is enabled, please fill in the webhook port",
                                "zh_CN": "仅在启用 Webhook 模式时有效,请填写 Webhook 端口"
                            },
                            "label": {
                                "en_US": "Webhook Port",
                                "zh_CN": "Webhook端口"
                            },
                            "name": "port",
                            "required": true,
                            "type": "integer"
                        },
                        {
                            "default": "",
                            "description": {
                                "en_US": "Only valid when webhook mode is enabled, please fill in the encrypt key",
                                "zh_CN": "仅在启用 Webhook 模式时有效,请填写加密密钥"
                            },
                            "label": {
                                "en_US": "Encrypt Key",
                                "zh_CN": "加密密钥"
                            },
                            "name": "encrypt-key",
                            "required": true,
                            "type": "string"
                        }
                    ]
                }
            }
        ]
    },
    "msg": "ok"
}
修改于 2025-03-26 16:55:28
上一页
拉取机器人事件日志
下一页
获取指定适配器信息
Built with