> ## 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 accounts

> List active credit accounts for the authenticated account, including available and reserved credits.



## OpenAPI

````yaml /openapi.json get /credits
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:
  /credits:
    get:
      tags:
        - Billing
      summary: List credit accounts
      description: >-
        List active credit accounts for the authenticated account, including
        available and reserved credits.
      operationId: listCreditAccounts
      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 active credit accounts and their remaining balances.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginationModelOfUserCreditsModel'
        '401':
          description: Authentication required.
        '404':
          description: No credit owner was found.
      security:
        - ApiKey: []
components:
  schemas:
    PaginationModelOfUserCreditsModel:
      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/UserCreditsModel'
          description: The items on the current page.
      description: Represents a page of results.
    UserCreditsModel:
      type: object
      properties:
        userId:
          type:
            - 'null'
            - string
          description: The customer identifier, when the account belongs to a user.
          format: uuid
        accountId:
          type: string
          description: The credit account identifier.
        creditsBalance:
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
          description: The remaining credits in this account.
          format: int64
        creditsReserved:
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
          format: int64
        creditsAvailable:
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
          format: int64
        expiresAt:
          type:
            - 'null'
            - string
          description: The time when the account credits expire, if applicable.
          format: date-time
      description: Represents a customer credit account and its remaining balance.
  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.