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

# List Partners



## OpenAPI

````yaml /specs/bp-agent-ecosystem.openapi.json get /api/ecosystem/partners
openapi: 3.1.0
info:
  title: BP-Agent Ecosystem API
  description: BP-Agent 账号态生态服务接口：生态对接需求、服务商档案、上架状态、成员、服务、评价与资料文件。接口使用账号 JWT 鉴权，并按租户隔离。
  contact:
    name: BP Agent 开发团队
    email: support@bpagent.com
  license:
    name: MIT License
    url: https://opensource.org/licenses/MIT
  version: 1.0.0
servers:
  - url: https://bptest.mapleai.cc
    description: 测试环境（仅 relay 上传）
  - url: https://project.mapleai.cc
    description: 生产环境（OSS；STS 直传需服务端启用）
security: []
paths:
  /api/ecosystem/partners:
    get:
      tags:
        - 生态资源 / Ecosystem
      summary: List Partners
      operationId: list_partners_api_ecosystem_partners_get
      parameters:
        - name: tenant_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: 管理员可选租户范围
            title: Tenant Id
          description: 管理员可选租户范围
        - name: page
          in: query
          required: false
          schema:
            type: integer
            minimum: 1
            description: 页码
            default: 1
            title: Page
          description: 页码
        - name: page_size
          in: query
          required: false
          schema:
            type: integer
            maximum: 200
            minimum: 1
            description: 每页数量
            default: 50
            title: Page Size
          description: 每页数量
        - name: keyword
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: 关键词（名称/联系人/简介）
            title: Keyword
          description: 关键词（名称/联系人/简介）
        - name: category
          in: query
          required: false
          schema:
            anyOf:
              - $ref: '#/components/schemas/EcosystemPartnerCategory'
              - type: 'null'
            description: 资源方分类
            title: Category
          description: 资源方分类
        - name: service_type
          in: query
          required: false
          schema:
            anyOf:
              - $ref: '#/components/schemas/EcosystemServiceType'
              - type: 'null'
            description: 服务类型
            title: Service Type
          description: 服务类型
        - name: status
          in: query
          required: false
          schema:
            anyOf:
              - $ref: '#/components/schemas/EcosystemPartnerStatus'
              - type: 'null'
            description: 资源方状态
            title: Status
          description: 资源方状态
        - name: include_inactive
          in: query
          required: false
          schema:
            type: boolean
            description: 是否包含软删除资源方
            default: false
            title: Include Inactive
          description: 是否包含软删除资源方
        - name: include_records
          in: query
          required: false
          schema:
            type: boolean
            description: 是否附带服务记录
            default: false
            title: Include Records
          description: 是否附带服务记录
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/PaginatedResponse_EcosystemPartnerWithRecordsResponse_
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    EcosystemPartnerCategory:
      type: string
      enum:
        - compliance
        - growth
        - infrastructure
      title: EcosystemPartnerCategory
      description: 生态资源方分类枚举。
    EcosystemServiceType:
      type: string
      enum:
        - legal
        - finance_tax
        - policy
        - intellectual
        - order_match
        - fa_consultant
        - brand_pr
        - talent
        - data
        - cloud
      title: EcosystemServiceType
      description: 生态服务类型枚举。
    EcosystemPartnerStatus:
      type: string
      enum:
        - active
        - inactive
      title: EcosystemPartnerStatus
      description: 生态资源方状态枚举。
    PaginatedResponse_EcosystemPartnerWithRecordsResponse_:
      properties:
        code:
          type: integer
          title: Code
          description: 响应码，0表示成功，非0表示失败
          default: 0
        message:
          type: string
          title: Message
          description: 响应消息
          default: 操作成功
        data:
          items:
            $ref: '#/components/schemas/EcosystemPartnerWithRecordsResponse'
          type: array
          title: Data
          description: 当前页的数据列表
        timestamp:
          anyOf:
            - type: integer
            - type: 'null'
          title: Timestamp
          description: 响应时间戳（可选）
        total:
          type: integer
          minimum: 0
          title: Total
          description: 总记录数
        page:
          anyOf:
            - type: integer
              minimum: 1
            - type: 'null'
          title: Page
          description: 当前页码
        page_size:
          anyOf:
            - type: integer
              minimum: 1
            - type: 'null'
          title: Page Size
          description: 每页大小
        total_pages:
          anyOf:
            - type: integer
              minimum: 0
            - type: 'null'
          title: Total Pages
          description: 总页数
      type: object
      required:
        - data
        - total
      title: PaginatedResponse[EcosystemPartnerWithRecordsResponse]
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    EcosystemPartnerWithRecordsResponse:
      properties:
        name:
          type: string
          maxLength: 100
          title: Name
          description: 资源方名称
        category:
          $ref: '#/components/schemas/EcosystemPartnerCategory'
          description: 资源方分类
        service_type:
          $ref: '#/components/schemas/EcosystemServiceType'
          description: 服务类型
        contact_person:
          type: string
          maxLength: 50
          title: Contact Person
          description: 联系人
        phone:
          anyOf:
            - type: string
              maxLength: 20
            - type: 'null'
          title: Phone
          description: 联系电话
        email:
          anyOf:
            - type: string
              maxLength: 100
            - type: 'null'
          title: Email
          description: 邮箱
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
          description: 简介
        cooperation_start_date:
          type: string
          format: date
          title: Cooperation Start Date
          description: 合作开始日期
        last_active_date:
          anyOf:
            - type: string
              format: date
            - type: 'null'
          title: Last Active Date
          description: 最后活跃日期
        status:
          $ref: '#/components/schemas/EcosystemPartnerStatus'
          description: 资源方状态
          default: active
        id:
          type: string
          title: Id
        tenant_id:
          type: string
          title: Tenant Id
        total_revenue:
          type: integer
          minimum: 0
          title: Total Revenue
          description: 累计营收（分）
        total_profit:
          type: integer
          minimum: 0
          title: Total Profit
          description: 累计分润（分）
        service_count:
          type: integer
          minimum: 0
          title: Service Count
          description: 服务次数
        is_active:
          type: boolean
          title: Is Active
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
        created_by:
          anyOf:
            - type: string
            - type: 'null'
          title: Created By
        updated_by:
          anyOf:
            - type: string
            - type: 'null'
          title: Updated By
        category_label:
          anyOf:
            - type: string
            - type: 'null'
          title: Category Label
          description: 分类中文
        service_type_label:
          anyOf:
            - type: string
            - type: 'null'
          title: Service Type Label
          description: 服务类型中文
        status_label:
          anyOf:
            - type: string
            - type: 'null'
          title: Status Label
          description: 状态中文
        service_records:
          items:
            $ref: '#/components/schemas/EcosystemServiceRecordResponse'
          type: array
          title: Service Records
          description: 服务记录
      type: object
      required:
        - name
        - category
        - service_type
        - contact_person
        - cooperation_start_date
        - id
        - tenant_id
        - total_revenue
        - total_profit
        - service_count
        - is_active
        - created_at
        - updated_at
      title: EcosystemPartnerWithRecordsResponse
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    EcosystemServiceRecordResponse:
      properties:
        partner_id:
          type: string
          title: Partner Id
          description: 资源方ID
        connect_request_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Connect Request Id
          description: 关联需求ID
        project_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Project Id
          description: 关联项目ID
        project_name:
          type: string
          maxLength: 100
          title: Project Name
          description: 项目名称
        company_name:
          type: string
          maxLength: 100
          title: Company Name
          description: 企业名称
        service_type:
          $ref: '#/components/schemas/EcosystemServiceType'
          description: 服务类型
        service_detail:
          type: string
          title: Service Detail
          description: 服务详情
        service_date:
          type: string
          format: date
          title: Service Date
          description: 服务日期
        service_amount:
          type: integer
          minimum: 0
          title: Service Amount
          description: 服务金额（分）
        profit_share:
          type: integer
          minimum: 0
          title: Profit Share
          description: 分润金额（分）
        profit_rate:
          type: string
          title: Profit Rate
          description: 分润比例
          default: '0.1500'
        status:
          $ref: '#/components/schemas/EcosystemServiceRecordStatus'
          description: 服务状态
          default: in_progress
        notes:
          anyOf:
            - type: string
            - type: 'null'
          title: Notes
          description: 备注
        id:
          type: string
          title: Id
        tenant_id:
          type: string
          title: Tenant Id
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
        status_label:
          anyOf:
            - type: string
            - type: 'null'
          title: Status Label
          description: 状态中文
        service_type_label:
          anyOf:
            - type: string
            - type: 'null'
          title: Service Type Label
          description: 服务类型中文
        partner_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Partner Name
          description: 资源方名称
      type: object
      required:
        - partner_id
        - project_name
        - company_name
        - service_type
        - service_detail
        - service_date
        - service_amount
        - profit_share
        - id
        - tenant_id
        - created_at
        - updated_at
      title: EcosystemServiceRecordResponse
    EcosystemServiceRecordStatus:
      type: string
      enum:
        - in_progress
        - completed
        - canceled
      title: EcosystemServiceRecordStatus
      description: 生态服务记录状态枚举。
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````

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