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

# List Audio Tracks

> Returns the on-hold music or ambient sound tracks your agents can use: Hamsa's system tracks first, then your project's own, newest first.



## OpenAPI

````yaml /api-reference/openapi.json get /v1/voice-agents/audio-assets
openapi: 3.0.1
info:
  title: Hamsa API
  description: >-
    The Hamsa API: voice agents and their calls, phone numbers, batch calls and
    knowledge bases; speech to text, text to speech, voices and AI content.
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.tryhamsa.com
security: []
paths:
  /v1/voice-agents/audio-assets:
    get:
      summary: List audio tracks
      description: >-
        Returns the on-hold music or ambient sound tracks your agents can use:
        Hamsa's system tracks first, then your project's own, newest first.
      parameters:
        - in: query
          name: type
          required: true
          description: >-
            Kind of track. `ON_HOLD_MUSIC`: played to the caller while a call is
            on hold or being transferred. `AMBIENT_SOUND`: background sound
            played during the call.
          schema:
            type: string
            enum:
              - ON_HOLD_MUSIC
              - AMBIENT_SOUND
            example: ON_HOLD_MUSIC
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  message:
                    type: string
                    example: success
                  data:
                    type: object
                    properties:
                      tracks:
                        type: array
                        items:
                          $ref: '#/components/schemas/AudioAsset'
        '400':
          description: Invalid or missing `type`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorSchema'
        '401':
          description: 'Unauthorized: missing or invalid API key.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorSchema'
        '500':
          description: Server Side Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorSchema'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    AudioAsset:
      type: object
      properties:
        id:
          type: string
          format: uuid
          description: Track ID.
          example: 3b9d2f6e-7a41-4c8e-9f05-1e6a2c4d8b70
        name:
          type: string
          description: Track name.
          example: Calm piano
        url:
          type: string
          format: uri
          description: >-
            Signed URL to play or download the track. It expires, so do not
            store it.
          example: >-
            https://d15zjcysdf8w17.cloudfront.net/on-hold-music/2026/11/02/hold-music.mp3?Expires=1762128000&Key-Pair-Id=K2983LOILPPCUR&Signature=abc123
        duration:
          type: integer
          nullable: true
          description: Length of the track in seconds.
          example: 94
        isSystem:
          type: boolean
          description: >-
            `true` for tracks Hamsa provides to every project (read-only).
            `false` for your project's own tracks.
          example: false
        createdAt:
          type: string
          format: date-time
          example: '2026-11-02T09:15:00.000Z'
    ErrorSchema:
      type: object
      properties:
        code:
          type: integer
          description: >-
            Service error code: the HTTP status with a service prefix (for
            example `8404`). Missing when the service has no code for that
            status.
          example: 8404
        message:
          type: string
          description: >-
            What went wrong. Some services (calls and recordings) put the error
            key here, for example `CallNotFoundOrUnavailable`, and send no
            `messageKey`.
          example: Policy not found!
        messageKey:
          type: string
          description: >-
            Stable key for the error, safe to match on in code. Not returned by
            every service.
          example: PolicyNotFound
        params:
          type: object
          additionalProperties: true
          description: >-
            Details for some errors (for example `reason`). Not returned by
            every service.
          example:
            reason: NO_DRAFT
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: >-
        Pass the API key in the Authorization header, You need to put Token
        keyword before the API key. e.g. 'Authorization: Token <api-key>'

````

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