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

# API 2.0 · 游标列表

> 仅查询当前用户创建的 API 2.0 任务

`task_ids` 与 `external_task_ids` 二选一，多个 ID 用英文逗号分隔。新版成功状态为 `succeeded`，任务字段为 `id`、`status`、`outputs`。

游标列表使用平台已保存的任务快照。续页只需上页 `next_cursor`，原时间窗口与筛选条件会保留；需要即时状态时使用按 ID 查询。旧格式游标需重新发起首查询。


## OpenAPI

````yaml POST /kling/tasks
openapi: 3.0.3
info:
  title: Kling API
  version: '2026-09-07'
  description: API 2.0 与 Legacy 分开定义；请求使用 Kapon Token。
servers:
  - url: https://models.kapon.cloud
security:
  - BearerAuth: []
paths:
  /kling/tasks:
    post:
      tags:
        - Kling API 2.0
      summary: List Kling API 2.0 tasks by cursor
      description: 每个 data.result[] 项保留上游 id 并追加同一任务的 platform_id（video_<ULID>）。
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/router.swaggerKlingAPI2ListRequest'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/router.swaggerKlingAPI2PageResponse'
              example:
                code: 0
                message: success
                request_id: request-id
                data:
                  result:
                    - id: upstream-task-id
                      status: succeeded
                      create_time: 1781080778802
                      update_time: 1781080778802
                      outputs:
                        - type: video
                          id: video-id
                          url: https://example.com/result.mp4
                          duration: '5'
                  count: 1
                  next_cursor: ''
                  has_more: false
      security:
        - BearerAuth: []
components:
  schemas:
    router.swaggerKlingAPI2ListRequest:
      type: object
      properties:
        cursor:
          description: 使用上页 next_cursor，延续原时间窗口与筛选条件。
          type: string
        end_time:
          description: Unix 毫秒，默认当前时间。
          type: string
        filters:
          type: array
          items:
            $ref: '#/components/schemas/router.swaggerKlingAPI2Filter'
        limit:
          type: integer
          default: 100
          maximum: 500
          minimum: 1
        start_time:
          description: Unix 毫秒，默认 end_time 减30天。
          type: string
    router.swaggerKlingAPI2PageResponse:
      type: object
      properties:
        code:
          type: integer
        data:
          $ref: '#/components/schemas/router.swaggerKlingAPI2Page'
        message:
          type: string
        request_id:
          type: string
    router.swaggerKlingAPI2Filter:
      type: object
      properties:
        key:
          type: string
          enum:
            - status
            - product_type
        values:
          type: array
          items:
            type: string
    router.swaggerKlingAPI2Page:
      type: object
      properties:
        count:
          type: integer
        has_more:
          type: boolean
        next_cursor:
          type: string
        result:
          type: array
          items:
            $ref: '#/components/schemas/kling.KlingAPI2Task'
    kling.KlingAPI2Task:
      type: object
      properties:
        billing:
          type: array
          items:
            type: object
        create_time:
          type: integer
        external_id:
          type: string
        id:
          type: string
        message:
          type: string
        outputs:
          type: array
          items:
            $ref: '#/components/schemas/kling.KlingAPI2Output'
        platform_id:
          description: OneHub 平台任务 ID（video_<ULID>），来自本地任务。
          type: string
        status:
          type: string
          enum:
            - submitted
            - processing
            - succeeded
            - failed
        update_time:
          type: integer
    kling.KlingAPI2Output:
      type: object
      properties:
        duration:
          type: string
        id:
          type: string
        type:
          type: string
        url:
          type: string
        watermark_url:
          type: string
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer

````