LangBot HTTP API
  1. pipelines
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的历史消息
    • 获取流水线配置元数据
      GET
    • 获取流水线列表
      GET
    • 新建流水线
      POST
    • 获取流水线信息
      GET
    • 删除流水线
      DELETE
    • 修改流水线信息
      PUT
  • platform
    • bots
      • 获取机器人列表
      • 获取指定机器人信息
      • 创建机器人
      • 删除机器人
      • 修改机器人配置
      • 拉取机器人事件日志
    • adapters
      • 获取可用的适配器列表
      • 获取指定适配器信息
      • 适配器图标
  • files
    • 下载图片文件
    • 上传文件
  • knowledge
    • bases
      • 获取所有知识库
      • 获取单个知识库信息
      • 创建空知识库
      • 上传并解析文件
      • 获取知识库中的文件列表
      • 删除文件
      • 删除知识库
  1. pipelines

获取流水线信息

测试中
GET
/api/v1/pipelines/{uuid}

请求参数

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

示例代码

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/pipelines/'

返回响应

🟢200成功
application/json
Body
object {0}
示例
{
    "code": 0,
    "data": {
        "pipeline": {
            "config": {
                "ai": {
                    "dashscope-app-api": {
                        "api-key": "your-api-key",
                        "app-id": "your-app-id",
                        "app-type": "agent",
                        "references-quote": "参考资料来自:"
                    },
                    "dify-service-api": {
                        "api-key": "your-api-key",
                        "app-type": "chat",
                        "base-url": "https://api.dify.ai/v1",
                        "thinking-convert": "plain",
                        "timeout": 30
                    },
                    "local-agent": {
                        "max-round": 10,
                        "model": "1e16773d-a47c-4f5e-acac-764fa27b75b8",
                        "prompt": [
                            {
                                "content": "You are a helpful assistant.",
                                "role": "system"
                            }
                        ]
                    },
                    "runner": {
                        "runner": "local-agent"
                    }
                },
                "output": {
                    "force-delay": {
                        "max": 0,
                        "min": 0
                    },
                    "long-text-processing": {
                        "font-path": "",
                        "strategy": "forward",
                        "threshold": 1000
                    },
                    "misc": {
                        "at-sender": true,
                        "hide-exception": true,
                        "quote-origin": true,
                        "track-function-calls": false
                    }
                },
                "safety": {
                    "content-filter": {
                        "check-sensitive-words": true,
                        "scope": "all"
                    },
                    "rate-limit": {
                        "limitation": 60,
                        "strategy": "drop",
                        "window-length": 60
                    }
                },
                "trigger": {
                    "access-control": {
                        "blacklist": [],
                        "mode": "blacklist",
                        "whitelist": []
                    },
                    "group-respond-rules": {
                        "at": true,
                        "prefix": [
                            "ai"
                        ],
                        "random": 0.0,
                        "regexp": []
                    },
                    "ignore-rules": {
                        "prefix": [],
                        "regexp": []
                    }
                }
            },
            "created_at": "2025-04-16T05:54:08",
            "description": "默认对话配置流水线",
            "for_version": "v4.0.0",
            "is_default": true,
            "name": "Chat Pipeline",
            "stages": [
                "GroupRespondRuleCheckStage",
                "BanSessionCheckStage",
                "PreContentFilterStage",
                "PreProcessor",
                "ConversationMessageTruncator",
                "RequireRateLimitOccupancy",
                "MessageProcessor",
                "ReleaseRateLimitOccupancy",
                "PostContentFilterStage",
                "ResponseWrapper",
                "LongTextProcessStage",
                "SendResponseBackStage"
            ],
            "updated_at": "2025-04-27T13:59:30",
            "uuid": "5291f2a0-e8a1-4d4b-8cce-b6131c491aa6"
        }
    },
    "msg": "ok"
}
修改于 2025-03-26 15:41:03
上一页
新建流水线
下一页
删除流水线
Built with