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

# List generations

> Paginated list of music generations for the authenticated user.

Returns music generations for the authenticated user, newest first.

**`GET /music-generations/all`**

## Query parameters

<ParamField query="page" type="integer" default="1">
  Page number (1-based).
</ParamField>

<ParamField query="limit" type="integer" default="12">
  Items per page. Min `1`, max `100`.
</ParamField>

## Response

```json theme={null}
{
  "success": true,
  "generations": [
    {
      "id": "cm123abc",
      "status": "COMPLETED",
      "lyrics": "[Verse]\nNeon rain falls...",
      "prompt": "r&b, slow, passionate, male vocal",
      "model": "mureka-v9",
      "outputFormat": "mp3",
      "error": null,
      "createdAt": "2026-06-10T12:00:00.000Z",
      "updatedAt": "2026-06-10T12:02:30.000Z",
      "outputAsset": { "url": "https://files.tryunsora.com/....mp3" }
    }
  ],
  "pagination": {
    "currentPage": 1,
    "totalPages": 1,
    "totalCount": 3,
    "limit": 12,
    "hasNextPage": false,
    "hasPreviousPage": false
  }
}
```

## Example

```bash theme={null}
curl "https://mvp.tryunsora.com/api/v1/music-generations/all?page=1&limit=12" \
  -H "Authorization: Bearer uns_live_YOUR_API_KEY"
```

Poll completion with [Poll music status](/api-reference/music/poll-status). Fetch one record with [Get music generation](/api-reference/music-generations/get).


## OpenAPI

````yaml GET /music-generations/all
openapi: 3.1.0
info:
  title: Unsora API
  version: 1.2.0
  description: >-
    Public API for Unsora integrations. Authenticate with Clerk JWT or
    uns_live_* API key. API keys are rate-limited to 60 requests/minute and
    support idempotency keys. Async jobs complete via polling GET
    /image/status/{id}.
servers:
  - url: https://mvp.tryunsora.com/api/v1
    description: Versioned API (recommended)
security: []
tags:
  - name: Clippings
  - name: Connect
  - name: Image Generations
  - name: Music Generations
  - name: Influencer Studio
  - name: Posts
  - name: Thumbnails
  - name: User
  - name: Video Generations
paths:
  /music-generations/all:
    get:
      tags:
        - Music Generations
      summary: List music generations (paginated)
      parameters:
        - name: page
          in: query
          schema:
            type: integer
            default: 1
        - name: limit
          in: query
          schema:
            type: integer
            default: 12
            maximum: 100
      responses:
        '200':
          description: Paginated list
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MusicGenerationListResponse'
      security:
        - bearerAuth: []
components:
  schemas:
    MusicGenerationListResponse:
      type: object
      properties:
        success:
          type: boolean
        generations:
          type: array
          items:
            $ref: '#/components/schemas/MusicGenerationRecord'
        pagination:
          $ref: '#/components/schemas/PaginationMeta'
      required:
        - success
        - generations
        - pagination
    MusicGenerationRecord:
      type: object
      additionalProperties: true
      properties:
        id:
          type: string
        status:
          type: string
        lyrics:
          type: string
        prompt:
          type: string
        model:
          type: string
        outputFormat:
          type: string
        error:
          anyOf:
            - type: string
            - type: 'null'
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        outputAsset:
          type: object
          additionalProperties: true
      required:
        - id
        - status
        - createdAt
    PaginationMeta:
      type: object
      properties:
        currentPage:
          type: integer
        totalPages:
          type: integer
        totalCount:
          type: integer
        limit:
          type: integer
        hasNextPage:
          type: boolean
        hasPreviousPage:
          type: boolean
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Clerk session JWT or Unsora API key (uns_live_*)

````