> ## 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 credit usage

> List completed credit deductions for the authenticated account.



## OpenAPI

````yaml /openapi.json get /usages
openapi: 3.1.0
info:
  title: LuluLab API
  version: 1.0.0
  description: >-
    Create images and videos, recreate videos from a reference, manage source
    assets, and track tasks and credits.
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.
  - name: Billing
  - name: Models and references
  - name: Files and assets
paths:
  /usages:
    get:
      tags:
        - Billing
      summary: List credit usage
      description: List completed credit deductions for the authenticated account.
      operationId: listCreditUsage
      parameters:
        - name: page
          in: query
          description: The one-based page index.
          schema:
            pattern: ^-?(?:0|[1-9]\d*)$
            type:
              - integer
              - string
            format: int32
        - name: pageSize
          in: query
          description: The maximum number of items to return on a page.
          schema:
            pattern: ^-?(?:0|[1-9]\d*)$
            type:
              - integer
              - string
            format: int32
      responses:
        '200':
          description: A page of workflow usage records.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginationModelOfUsageRecordModel'
        '401':
          description: Authentication required.
        '502':
          description: Credit usage is temporarily unavailable.
      security:
        - ApiKey: []
components:
  schemas:
    PaginationModelOfUsageRecordModel:
      type: object
      properties:
        total:
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
          description: The total number of matching items across all pages.
          format: int32
        items:
          type: array
          items:
            $ref: '#/components/schemas/UsageRecordModel'
          description: The items on the current page.
      description: Represents a page of results.
    UsageRecordModel:
      type: object
      properties:
        transactionId:
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
          description: The settled Ledger transaction ID.
          format: int64
        workflowId:
          type:
            - 'null'
            - string
          description: The identifier of the workflow that was run.
        credits:
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - 'null'
            - integer
            - string
          description: The credits consumed by the workflow.
          format: int64
        startedAt:
          type:
            - 'null'
            - string
          description: The time when the workflow started.
          format: date-time
        endedAt:
          type:
            - 'null'
            - string
          description: The time when the workflow finished.
          format: date-time
      description: Summarizes workflow execution usage and consumed credits.
  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.