List songs

GEThttps://api.mozartai.com/v1/songs

Lists the user's songs, newest first, one page at a time, optionally for one project or one source.

Cost
Free
Rate limit
Read
MCP tool
list_songs
CLI (coming soon)
mozart songs list

When to use: You need a song id the user did not give you, or the user asks what songs they have. Filter with project_id or source. When has_more is true, pass next_cursor as cursor to read the next page.

When not to use: When you already have a song id, use GET /v1/songs/{song_id}. To follow a running job, use POST /v1/jobs/wait.

Side effects: None. Reads only; safe to repeat.

Authentication

Send your API key as Authorization: Bearer <key>. The key needs these scopes:

  • library:read

Query parameters

  • limitintegerOptionalDefaults to 201 to 100
  • cursorstringOptional
  • project_idstringOptional
  • sourceenumOptional

    Only songs started this way: api with an API key, or mcp or cli from a connected app signed in with a Mozart account.

    Allowed values
    • api
    • mcp
    • cli

Response 200

Success.

  • datalist of objectRequired
    Show 14 properties
    • idstringRequired
    • objectconstantRequired
    • project_idstringor nullRequired

      The project the song is in. Null on the shared sample song a test key's jobs return, which is in no project of yours.

    • titlestringRequired
    • statusenumRequired
      Allowed values
      • generating
      • ready
      • failed
    • visibilityenumRequired
      Allowed values
      • private
      • unlisted
      • public
    • sourceenumRequired

      How the song was started: api with an API key; mcp or cli from a connected app signed in with a Mozart account; webDesktop, webMobile or iphone in the Mozart apps; unknown when it was not recorded.

      Show 7 values
      • api
      • mcp
      • cli
      • webDesktop
      • webMobile
      • iphone
      • unknown
    • modelstringor nullRequired
    • duration_secondsnumberor nullRequired
    • waveform_readybooleanRequired
    • lyricsstringor nullRequired
    • cover_art_urlstringor nullRequired
    • app_urlstringRequired
    • created_atstringRequired
  • next_cursorstringor nullRequired
  • has_morebooleanRequired

Response headers

  • x-request-idThe id of this request; quote it when asking for help.
  • x-mozart-api-versionThe API version that answered.
  • x-ratelimit-limitRequests allowed in the current window for this caller.
  • x-ratelimit-remainingRequests left in the current window.
  • x-ratelimit-resetWhen the window resets, in Unix seconds.
  • idempotent-replayedtrue when this answer is the stored answer to an earlier call with the same idempotency key; the work was not done again.

Errors

What to do: PUBLIC_API_RATE_LIMITED: wait retry_after_seconds, then call again. PUBLIC_API_INPUT_INVALID: the cursor is from another query; start again without it.

StatusTypeMeaning
400invalid_requestThe request is malformed or an input is invalid.
401authenticationThe key or token is missing, invalid or revoked.
402insufficient_creditsThe account has too few credits for this call. A REST key also needs an API plan (Starter, Build, Scale or Growth) or API credits; with neither, every call is refused with PUBLIC_API_CREDITS_REQUIRED. payment_required: The account's plan does not include this; it needs an upgrade.
403permissionThe caller may not do this: a missing scope, a Mozart CLI sign-in whose account is below Pro, or access not enabled.
404not_foundThe resource or route does not exist for this caller.
409conflictThe request conflicts with the current state, or an idempotency key was reused with a different body.
422content_refusedThe input was refused by content screening.
429rate_limitedToo many requests; retry after Retry-After seconds. limit_reached: A daily, concurrent or total limit was reached.
500internalMozart failed to answer; retry later.
503provider_unavailableA generation provider is unavailable; retry later. service_unavailable: A Mozart check the request needs, such as content screening, is temporarily unavailable; retry after retry_after_seconds.