> ## Documentation Index
> Fetch the complete documentation index at: https://adp-doc.laiye.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 查询业务工作流模板

> 查询业务工作流模板、稳定公开应用 ID 以及当前账号的运行就绪状态。



## OpenAPI

````yaml api-reference/adp-api.yaml GET /open/agentic_engine/laiye/v1/app/templates
openapi: 3.1.0
info:
  title: ADP API
  version: 1.0.0
  description: >-
    Laiye ADP 官方 OpenAPI
    接口规范，覆盖文档抽取、解析与转换，抽取应用管理、Webhook、人机协同、积分查询，以及工作流发现、运行、导出和文件管理。
  license:
    name: MIT
    identifier: MIT
servers:
  - url: https://adp.laiye.com
    description: ADP 生产环境
security: []
tags:
  - name: 文档抽取
    description: 从上传的文档中抽取结构化字段。
  - name: 文档解析
    description: 识别上传文档中的文字、版面块和位置信息。
  - name: 文档转换
    description: 将 PDF、Office、OFD 和图片转换为页面图片或电子表格结构。
  - name: 应用管理
    description: 创建、修改、删除和查询抽取应用及配置。
  - name: Webhook
    description: 查询事件目录并管理事件回调。
  - name: 账户
    description: 查询账户积分和使用情况。
  - name: 工作流
    description: 查询业务工作流模板、运行工作流应用并查询执行结果。
  - name: 工作流文件
    description: 上传和管理工作流应用使用的文件。
  - name: 人机协同
    description: 配置审核触发规则，查询协同任务并提交人工修正。
paths:
  /open/agentic_engine/laiye/v1/app/templates:
    get:
      tags:
        - 工作流
      summary: 查询业务工作流模板
      description: >
        查询可用的业务工作流模板，以及当前 API Key 所属账号是否已添加、是否已发布和当前能否运行。


        `application_id` 是面向 OpenAPI 的稳定公开 ID，可固定写入接口文档和集成配置：


        - `finance_payable`: `wftp_app_n8q4v2m7x5p1r9t6c3a0b8d2`

        - `expense_reimbursement`: `wftp_app_h3k9s1v6p4x8q2m7c5t0a9r1`

        - `financial_report_extraction`: `wftp_app_y6p2m8q4v1c9t3x7n5r0h2k6`


        这些固定 ID 不是添加模板后生成的账号应用 ID；本接口不返回后者。运行接口会按当前 API Key 关联已添加的对应应用。仅当
        `can_run` 为 `true` 时，该固定 ID
        才可用于运行接口；模板未添加、对应应用尚未发布，或没有当前可用的已发布版本时，`can_run` 为 `false`。
      operationId: listBusinessWorkflowTemplates
      parameters:
        - name: search
          in: query
          required: false
          description: 按模板名称搜索。
          schema:
            type: string
        - name: offset
          in: query
          required: false
          description: 分页偏移量。
          schema:
            type: integer
            default: 0
            minimum: 0
        - name: size
          in: query
          required: false
          description: 每页数量。
          schema:
            type: integer
            default: 20
            minimum: 1
            maximum: 100
      responses:
        '200':
          $ref: '#/components/responses/BusinessWorkflowTemplateListResponse'
        '422':
          $ref: '#/components/responses/ValidationError'
      security:
        - EngineApiKeyAuth: []
components:
  responses:
    BusinessWorkflowTemplateListResponse:
      description: 业务工作流模板及当前账号的运行就绪状态。
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/BusinessWorkflowTemplateListResponse'
          example:
            code: success
            message: ''
            tips: null
            data:
              range:
                offset: 0
                size: 20
                total: 3
              list:
                - template_key: finance_payable
                  name: 财务应付
                  description: 识别付款申请、合同、发票、入库、结算和验收材料，完成财务应付审核与业务结果交付。
                  template_version: 1.0.2
                  application_id: wftp_app_n8q4v2m7x5p1r9t6c3a0b8d2
                  is_added: true
                  application_status: published
                  can_run: true
                - template_key: expense_reimbursement
                  name: 费用报销
                  description: 识别报销申请、票据、出差审批、网约车行程和餐饮小票，按差旅或业务招待类型分别审核。
                  template_version: 1.0.1
                  application_id: wftp_app_h3k9s1v6p4x8q2m7c5t0a9r1
                  is_added: true
                  application_status: draft
                  can_run: false
                - template_key: financial_report_extraction
                  name: 金融财报
                  description: 拆分财务报告后，分别抽取基础信息、利润表、资产负债表和现金流量表，并在任务中集中查看结果。
                  template_version: 1.0.26
                  application_id: wftp_app_y6p2m8q4v1c9t3x7n5r0h2k6
                  is_added: false
                  application_status: null
                  can_run: false
    ValidationError:
      description: 参数校验错误。
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/HTTPValidationError'
          example:
            detail:
              - type: greater_than
                loc:
                  - query
                  - limit
                msg: Input should be greater than 0
                input: 0
                ctx:
                  gt: 0
  schemas:
    BusinessWorkflowTemplateListResponse:
      allOf:
        - $ref: '#/components/schemas/SimpleResponse'
        - type: object
          properties:
            data:
              type: object
              properties:
                range:
                  type: object
                  properties:
                    offset:
                      type: integer
                      minimum: 0
                    size:
                      type: integer
                      minimum: 1
                      maximum: 100
                    total:
                      type: integer
                      minimum: 0
                  required:
                    - offset
                    - size
                    - total
                list:
                  type: array
                  items:
                    $ref: '#/components/schemas/BusinessWorkflowTemplate'
              required:
                - range
                - list
          required:
            - data
    HTTPValidationError:
      type: object
      description: FastAPI/Pydantic 请求参数校验错误。
      properties:
        detail:
          type: array
          items:
            $ref: '#/components/schemas/ValidationErrorItem'
      required:
        - detail
    SimpleResponse:
      type: object
      properties:
        code:
          oneOf:
            - type: string
            - type: integer
          description: 业务码。成功通常为 success 或 200。
        message:
          type: string
          description: 返回信息。
        tips:
          type:
            - string
            - 'null'
          description: 详细信息，默认为空。
    BusinessWorkflowTemplate:
      type: object
      additionalProperties: false
      properties:
        template_key:
          type: string
          description: 业务工作流模板标识。
        name:
          type: string
          description: 模板名称。
        description:
          type:
            - string
            - 'null'
          description: 模板描述。
        template_version:
          type: string
          description: 当前模板版本。版本可能随模板更新而变化。
        application_id:
          type: string
          description: 可用于工作流运行接口的稳定公开 ID，不是添加模板后生成的账号应用 ID。
        is_added:
          type: boolean
          description: 当前 API Key 所属账号是否已添加该模板。
        application_status:
          oneOf:
            - type: string
              enum:
                - draft
                - published
            - type: 'null'
          description: 当前账号中对应应用的状态；未添加时为 null。
        can_run:
          type: boolean
          description: 固定 application_id 当前是否可用于运行接口。只有当前账号已添加对应应用，且该应用存在当前可用的已发布版本时为 true。
      required:
        - template_key
        - name
        - template_version
        - application_id
        - is_added
        - can_run
    ValidationErrorItem:
      type: object
      additionalProperties: true
      properties:
        type:
          type: string
          description: 校验错误类型。
        loc:
          type: array
          description: 错误字段在请求中的位置。
          items:
            oneOf:
              - type: string
              - type: integer
        msg:
          type: string
          description: 可读的错误说明。
        input:
          description: 导致校验失败的输入值。
        ctx:
          type: object
          additionalProperties: true
          description: 校验器提供的补充上下文。
        url:
          type: string
          format: uri
          description: Pydantic 错误说明链接。
      required:
        - type
        - loc
        - msg
  securitySchemes:
    EngineApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: 用于调用工作流接口的 API Key。

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.