> ## 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 Background Music

> The background music tracks for a type of voice over, newest first.

Needs **Read** on **Voice overs** (`voice_overs:read`).



## OpenAPI

````yaml /api-reference/openapi.json get /v2/voice-overs/backgrounds-music
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:
  /v2/voice-overs/backgrounds-music:
    get:
      tags: []
      summary: List background music
      description: |-
        The background music tracks for a type of voice over, newest first.

        Needs **Read** on **Voice overs** (`voice_overs:read`).
      parameters:
        - in: query
          name: type
          required: true
          description: The kind of voice over.
          schema:
            type: string
            enum:
              - POETRY
              - COMMERCIAL
              - RELIGIOUS
              - STORIES
            example: COMMERCIAL
      responses:
        '200':
          description: The tracks (an empty list when the type has none).
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  message:
                    type: string
                    example: success
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          format: uuid
                          example: 9a1f3b5c-7d2e-4f6a-8b0c-1d3e5f7a9b24
                        nameEn:
                          type: string
                          example: Warm Piano
                        nameAr:
                          type: string
                          example: بيانو دافئ
                        descriptionEn:
                          type: string
                          example: Soft, slow piano
                        descriptionAr:
                          type: string
                          example: بيانو هادئ وبطيء
                        mediaUrl:
                          type: string
                          description: >-
                            Link to listen to the track. It expires after a
                            while.
                          example: >-
                            https://cdn.example.com/music/warm-piano.mp3?Signature=...
        '400':
          description: Missing or invalid `type`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorSchema'
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorSchema'
        '403':
          description: The key's scopes don't allow this (it needs `voice_overs:read`).
          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:
    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.