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

# List tasks



## OpenAPI

````yaml /openapi.json get /tasks
openapi: 3.1.0
info:
  title: LuluLab API · First batch
  version: 1.0.0
  description: >-
    Image generation, video generation, product video planning, product image
    planning, and the common upload and task APIs.
servers:
  - url: https://customer.lululab.ai
    description: Production
security: []
tags:
  - name: Getting started
    description: Upload product photos and estimate credits.
  - name: Creative tasks
    description: Submit an asynchronous workflow task and retrieve its result.
paths:
  /tasks:
    get:
      tags:
        - Creative tasks
      summary: List tasks
      operationId: listTasks
      parameters:
        - name: page
          in: query
          schema:
            type: integer
            minimum: 1
            default: 1
        - name: pageSize
          in: query
          schema:
            type: integer
            minimum: 1
        - name: workflowId
          in: query
          schema:
            type: string
          description: Filter by workflow.
      responses:
        '200':
          description: A page of tasks.
          content:
            application/json:
              schema:
                type: object
                properties:
                  total:
                    type: integer
                  items:
                    type: array
                    items:
                      $ref: '#/components/schemas/Task'
        '401':
          description: >-
            Request rejected. The response body contains an error title and
            detail.
      security:
        - ApiKey: []
components:
  schemas:
    Task:
      type: object
      properties:
        id:
          type: string
          description: Save this id to query the result.
        workflowId:
          type: string
        status:
          type: string
          enum:
            - Created
            - Pending
            - Running
            - Succeeded
            - Failed
            - Cancelled
        output:
          type:
            - object
            - 'null'
          additionalProperties: true
          description: >-
            Generated result or plan when the task succeeds; null before
            completion.
        errorMessage:
          type:
            - string
            - 'null'
          description: Failure detail when available.
        credits:
          type:
            - integer
            - 'null'
          description: Credits charged when available.
  securitySchemes:
    ApiKey:
      type: apiKey
      in: header
      name: Authorization
      description: Send the raw luk- API key. Do not add Bearer.

````

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