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

# Search music

> The tracks a video's `music` can name, from one `library`. `lumisreach` (the default) is the built-in library of royalty-free background tracks, cleared for every platform we post to, listed whole. `epidemic` searches Epidemic Sound (`q`), browses a `mood` or `collection` from `GET /v1/videos/music/catalog`, or with neither lists its most popular tracks, a page at a time (`meta.cursor`); a premium track shows its `price_cents`. `generated` is your workspace's AI tracks (`POST /v1/videos/music/generated`), newest first. `commercial` is popular songs from TikTok's charts, by `category` or `q`, once your workspace confirmed in the dashboard that it holds the rights (`403` until then); a listing not fetched in the last day is looked up live and charged at what it costs (about $0.07 for a search, $0.12 for a category) on the plans that pay for API usage. Choose one with `music: { library, track_id }` on `POST /v1/videos` or `PUT /v1/videos/{id}/music`. Free.



## OpenAPI

````yaml /openapi.json get /v1/videos/music
openapi: 3.1.0
info:
  title: LumisReach v1 API
  version: 1.0.0
  description: >-
    Programmatic access to the LumisReach voice platform — calls, numbers,
    caller trust, and brands.
  contact:
    name: LumisReach
    email: founders@lumisreach.com
servers:
  - url: https://api.lumisreach.com/api
security:
  - bearerAuth: []
tags:
  - name: Contacts
  - name: Calls
  - name: Messages
  - name: Emails
  - name: Phone Numbers
  - name: Caller IDs
  - name: Enterprise Registration
  - name: Branded Calling
  - name: Dialer Calls
  - name: SMS
  - name: WebRTC
  - name: Reputation
  - name: Usage
  - name: Account
  - name: Billing
  - name: Documents
  - name: Lincoln AI
  - name: Optimized posts
  - name: Predictions
  - name: Quick Agent Actions
  - name: Sub-entities
  - name: Video schedules
  - name: Videos
paths:
  /v1/videos/music:
    get:
      tags:
        - Videos
      summary: Search music
      description: >-
        The tracks a video's `music` can name, from one `library`. `lumisreach`
        (the default) is the built-in library of royalty-free background tracks,
        cleared for every platform we post to, listed whole. `epidemic` searches
        Epidemic Sound (`q`), browses a `mood` or `collection` from `GET
        /v1/videos/music/catalog`, or with neither lists its most popular
        tracks, a page at a time (`meta.cursor`); a premium track shows its
        `price_cents`. `generated` is your workspace's AI tracks (`POST
        /v1/videos/music/generated`), newest first. `commercial` is popular
        songs from TikTok's charts, by `category` or `q`, once your workspace
        confirmed in the dashboard that it holds the rights (`403` until then);
        a listing not fetched in the last day is looked up live and charged at
        what it costs (about $0.07 for a search, $0.12 for a category) on the
        plans that pay for API usage. Choose one with `music: { library,
        track_id }` on `POST /v1/videos` or `PUT /v1/videos/{id}/music`. Free.
      operationId: v1_videos_music_get
      parameters:
        - name: library
          in: query
          required: true
          schema:
            default: lumisreach
            description: >-
              `lumisreach` (the built-in library, all of it), `epidemic` (search
              or browse Epidemic Sound), `generated` (your workspace's AI
              tracks, newest first) or `commercial` (popular songs; needs the
              workspace's confirmed rights)
            type: string
            enum:
              - lumisreach
              - epidemic
              - generated
              - commercial
        - name: q
          in: query
          required: false
          schema:
            description: >-
              `epidemic` and `commercial`: a search, e.g. `upbeat summer pop` or
              an artist
            type: string
            minLength: 2
            maxLength: 200
        - name: mood
          in: query
          required: false
          schema:
            description: '`epidemic`: a mood id from `GET /v1/videos/music/catalog`'
            type: string
            minLength: 1
            maxLength: 100
        - name: collection
          in: query
          required: false
          schema:
            description: >-
              `epidemic`: a collection id from `GET /v1/videos/music/catalog`
              (trending ones are marked)
            type: string
            minLength: 1
            maxLength: 100
        - name: category
          in: query
          required: false
          schema:
            description: >-
              `lumisreach`: a category id to keep to; `commercial`: `viral`,
              `top`, `rap` or `background`. See `GET /v1/videos/music/catalog`
            type: string
            minLength: 1
            maxLength: 50
        - name: cursor
          in: query
          required: false
          schema:
            description: '`epidemic`: `meta.cursor` from the previous page'
            type: string
            pattern: ^\d{1,5}$
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $schema: http://json-schema.org/draft-07/schema#
                type: object
                properties:
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        library:
                          type: string
                          enum:
                            - lumisreach
                            - epidemic
                            - generated
                            - commercial
                        track_id:
                          type: string
                          description: Pass as `music.track_id`, with this `library`
                        title:
                          type: string
                        artist:
                          type: string
                        category:
                          description: >-
                            The built-in library's category, e.g. "Lo-fi",
                            "Hype"
                          type:
                            - string
                            - 'null'
                        length_seconds:
                          type:
                            - number
                            - 'null'
                        bpm:
                          type:
                            - number
                            - 'null'
                        moods:
                          type: array
                          items:
                            type: string
                        genres:
                          type: array
                          items:
                            type: string
                        has_vocals:
                          type: boolean
                        price_cents:
                          type: integer
                          minimum: -9007199254740991
                          maximum: 9007199254740991
                          description: >-
                            What using it costs, once per video: a premium
                            Epidemic Sound track's price (send it as
                            `music.accept_price_cents`), 0 for every other track
                        premium:
                          type: boolean
                          description: In Epidemic Sound's premium library
                        usable:
                          type: boolean
                          description: >-
                            False for a generated track that is still being made
                            or failed: it cannot go on a video yet
                      required:
                        - library
                        - track_id
                        - title
                        - artist
                        - category
                        - length_seconds
                        - bpm
                        - moods
                        - genres
                        - has_vocals
                        - price_cents
                        - premium
                        - usable
                      additionalProperties: false
                  meta:
                    type: object
                    properties:
                      cursor:
                        type: string
                      page_size:
                        type: integer
                        minimum: -9007199254740991
                        maximum: 9007199254740991
                    required:
                      - page_size
                    additionalProperties: false
                required:
                  - data
                  - meta
                additionalProperties: false
        '400':
          description: Validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '409':
          description: Conflict (incl. idempotency conflicts)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
components:
  schemas:
    ErrorEnvelope:
      type: object
      properties:
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
            message:
              type: string
            fields:
              type: object
              additionalProperties:
                type: string
            doc_url:
              type: string
              format: uri
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````

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