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

# List generations

> Cursor-paginated, newest first.

Cursor-paginated, newest first.

To page: take the last `id` in `data` and pass it as `starting_after` on the next request. Keep paging while `hasMore` is `true`.

```json theme={null}
{
  "object": "list",
  "data": [ { "id": "agen_...", "object": "generation", "...": "..." } ],
  "hasMore": true
}
```


## OpenAPI

````yaml GET /v1/generations
openapi: 3.1.0
info:
  title: Selektable API
  version: 1.0.0
  description: >-
    Generate AI product visualizations from a customer photo. Two modes are
    supported: `virtual-try-on` (fashion) and `room-visualizer` (interior).
    Generations are asynchronous: subscribe a webhook endpoint (recommended) or
    poll the generation.
  contact:
    name: Selektable Support
    url: https://selektable.com
servers:
  - url: https://app.selektable.com
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Generations
    description: Create and retrieve AI visualizations
  - name: Webhook Endpoints
    description: Manage outgoing webhook destinations
paths:
  /v1/generations:
    get:
      tags:
        - Generations
      summary: List generations
      description: Cursor-paginated, newest first.
      parameters:
        - name: limit
          in: query
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 20
        - name: starting_after
          in: query
          schema:
            type: string
          description: A generation id to page after.
        - name: status
          in: query
          schema:
            type: string
            enum:
              - processing
              - complete
              - failed
      responses:
        '200':
          description: A list of generations
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenerationList'
        '401':
          $ref: '#/components/responses/Error'
components:
  schemas:
    GenerationList:
      type: object
      properties:
        object:
          type: string
          enum:
            - list
        data:
          type: array
          items:
            $ref: '#/components/schemas/Generation'
        hasMore:
          type: boolean
    Generation:
      type: object
      properties:
        id:
          type: string
          example: agen_abc123
        object:
          type: string
          enum:
            - generation
        status:
          type: string
          enum:
            - processing
            - complete
            - failed
        mode:
          type: string
          enum:
            - virtual-try-on
            - room-visualizer
        imageSize:
          type: string
          enum:
            - 1K
            - 2K
            - 4K
        imageUrl:
          type:
            - string
            - 'null'
          format: uri
          description: >-
            Permanent CDN URL to the original render at the requested
            `imageSize` (1K/2K/4K). Safe to store and embed.
        imageVariants:
          type:
            - object
            - 'null'
          description: >-
            Permanent CDN URLs to resized JPEG/WebP variants of `imageUrl`,
            served by Cloudflare Image Transformations. Use a variant instead of
            the original when you need a smaller payload (emails, lists,
            mobile). `null` until `status` is `complete`.
          properties:
            list:
              $ref: '#/components/schemas/ImageVariant'
              description: 200px wide. Tables, recent-renders strips, dense grids.
            card:
              $ref: '#/components/schemas/ImageVariant'
              description: Email embeds, product cards, cart drawers, mobile widths.
            detail:
              $ref: '#/components/schemas/ImageVariant'
              description: PDP hero, full-screen overlay, primary surface.
        products:
          type: array
          items:
            $ref: '#/components/schemas/Product'
        hint:
          type:
            - string
            - 'null'
        error:
          type:
            - object
            - 'null'
          properties:
            code:
              type: string
            message:
              type: string
        metadata:
          type:
            - object
            - 'null'
          additionalProperties:
            type: string
        createdAt:
          type: string
          format: date-time
        completedAt:
          type:
            - string
            - 'null'
          format: date-time
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
              enum:
                - authentication_error
                - authorization_error
                - invalid_request_error
                - rate_limit_error
                - not_found_error
                - conflict_error
                - api_error
            code:
              type: string
            message:
              type: string
            param:
              type: string
    ImageVariant:
      type: object
      required:
        - url
        - width
      properties:
        url:
          type: string
          format: uri
          description: Permanent, CDN-cached URL for this variant.
        width:
          type: integer
          description: Maximum width in pixels. Height scales proportionally.
    Product:
      type: object
      required:
        - productId
        - productTitle
        - imageUrl
      properties:
        productId:
          oneOf:
            - type: string
            - type: number
        productTitle:
          type: string
        imageUrl:
          type: string
          format: uri
        productUrl:
          type: string
          format: uri
        dimensions:
          type: object
          description: Optional real-world dimensions (improves interior scale accuracy).
  responses:
    Error:
      description: Error response
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Your Selektable API key (`selektable_...`), sent as `Authorization:
        Bearer <key>`.

````