docs.sunoapi.org
language
language
  • 🇺🇸 English
  • 🇨🇳 Chinese
language
language
  • 🇺🇸 English
  • 🇨🇳 Chinese
Support
Suno API
Common APIFile Upload API
Suno API
Common APIFile Upload API
  1. Generate Music
  • Suno API Documentation
  • Suno API Quick Start
  • Generate Music
    • Music Generation Callbacks
    • Music Extension Callbacks
    • Upload and Cover Audio Callbacks
    • Upload and Extend Audio Callbacks
    • Add Instrumental Callbacks
    • Add Vocals Callbacks
    • Music Cover Generation Callbacks
    • Replace Music Section Callbacks
    • Generate Music
      POST
    • Extend Music
      POST
    • Upload And Cover Audio
      POST
    • Upload And Extend Audio
      POST
    • Add Instrumental
      POST
    • Add Vocals
      POST
    • Get Music Generation Details
      GET
    • Recovery Audio
      POST
    • Get Recovery Audio Details
      GET
    • Get Timestamped Lyrics
      POST
    • Boost Music Style
      POST
    • Generate Music Cover
      POST
    • Replace Music Section
      POST
    • Get Music Cover Details
      GET
    • Generate Persona
      POST
    • Generate Mashup
      POST
  • Suno Voice
    • Suno Voice Validation Phrase Callbacks
    • Suno Voice Generation Callbacks
    • Suno Voice Regenerate Phrase Callbacks
    • Suno Voice Generate Verification Phrase
      POST
    • Suno Voice Get Verification Phrase
      GET
    • Suno Voice Create Custom Voice
      POST
    • Suno Voice Get Custom Voice Record
      GET
    • Suno Voice Regenerate Verification Phrase
      POST
    • Suno Voice Check Availability
      POST
  • Generate Lyrics
    • Lyrics Generation Callbacks
    • Generate Lyrics
    • Get Lyrics Generation Details
  • Generate Sounds
    • Generate Sounds
  • WAV Conversion
    • WAV Format Conversion Callbacks
    • Convert to WAV Format
    • Get WAV Conversion Details
  • Vocal Removal
    • Audio Separation Callbacks
    • MIDI Generation Callbacks
    • Vocal & Instrument Stem Separation
    • Get Audio Separation Details
    • Generate MIDI from Audio
    • Get MIDI Generation Details
  • Music Video Generation
    • Music Video Generation Callbacks
    • Create Music Video
    • Get Music Video Details
  • Generate Speech
    • Generate Speech
  1. Generate Music

Recovery Audio

POST
/api/v1/suno/recovery
Recover playable audio links for an existing music generation task.
Used to recover playable audio links for a music generation task that has already completed. Submit the sunoTaskId of the original task and the service regenerates accessible audio URLs for every track that belongs to it.

🚀 User Guide#

Suno's original links are only valid for a limited period of time. Once they expire, the audio can no longer be played or downloaded from those URLs.
Submit the sunoTaskId of the original music generation task — all tracks of that task are recovered together.
This endpoint only creates the task: it returns a recovery task_id immediately and the recovery itself runs asynchronously.
The result is pushed to callBackUrl when the task finishes, and can also be read by polling Get Recovery Audio Details.
source_audio_url is deprecated.
source_audio_url in the generation responses and callbacks points to Suno's original file. That link expires after a period of time and is no longer maintained, so it must not be stored for long-term use. Call this endpoint to obtain a fresh playable link instead.

📌 Usage Scenarios#

🔗 Restoring playback for songs that were generated a long time ago
📦 Refreshing audio links before archiving or migrating your own library
🛠️ Repairing broken audio URLs reported by your end users

⚠️ Notes#

sunoTaskId in the request body is the music generation task ID (for example the one returned by Generate Music), not the ID returned by this endpoint.
The task_id in the response is the recovery task ID and is only accepted by Get Recovery Audio Details.
callBackUrl is required. The recovery result is pushed to it once the task finishes.
Creating the task successfully does not guarantee that every track can be recovered — check the final result for the per-track status.

📩 Callback#

Once the recovery task finishes, a POST request is sent to callBackUrl:
{
  "code": 200,
  "msg": "success",
  "task_id": "bbbb****0f7b",
  "data": [
    {
      "id": "3bc3****48fc",
      "audio_url": "https://example.com/****.m4a",
      "title": "Sunrise Love",
      "status": "success",
      "error": ""
    }
  ]
}
The task level code is 200 when at least one track was recovered, and 500 when all of them failed. The order of data matches the tracks of the original task.

Request

Authorization
Bearer Token
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
or
Body Params application/jsonRequired

Examples

Responses

🟢200Success
application/json
Request successful
Bodyapplication/json

🔴500Server Error
Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'https://apibox.erweima.ai/api/v1/suno/recovery' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
    "sunoTaskId": "5c79****be8e",
    "callBackUrl": "https://api.example.com/callback"
}'
Response Response Example
{
    "code": 200,
    "msg": "success",
    "data": {
        "task_id": "dc19****18b3"
    }
}
Previous
Get Music Generation Details
Next
Get Recovery Audio Details
Built with