# Re-archive for fresh download links

> Suno v1 has its own task system, different from Suno v2: a submit returns a numeric taskId and results come from the v1 query endpoints; task IDs and result formats are not interchangeable between the two. For the OpenAI-style entry use /v1/audio/generations (model suno_v1).

**What**：Audio URLs of older songs expire. This endpoint re-archives songs by ID and returns fresh, expiring links you can download or play.

**When**：Use it when an older song cannot be downloaded or played. A taskId is expanded to all songs of that task; you can also pass ids / urls directly. No credits are charged.

## Endpoints
- Call (synchronous): POST `/api/cqt/suno/v1/audioArchive`

> This endpoint does not consume credits.
> Pick one of the inputs above; other fields are passed through to the upstream as is. At most 12 items per call.
> After expiresAt, call this endpoint again to get a new link. sunoInfo also swaps audio_url for a fresh link automatically once a task has succeeded.

## Request params
| Param | Type | Required | Description |
| --- | --- | --- | --- |
| taskId | string | — | Task ID submitted through a v1 create endpoint; it is expanded to the song IDs the system recorded (the result must have been queried at least once so the IDs are recorded). |
| ids | array<string> | — | List of song clip IDs, up to 12. |
| urls | array<string> | — | List of song audio URLs, up to 12. |
| audio_id | string | — | A single song clip ID. |
| clip_id | string | — | Alias of audio_id. |
| items | array | — | A mixed list of IDs and URLs, up to 12 items. |

## Request example
```bash
curl -X POST https://api.novapi.ai/api/cqt/suno/v1/audioArchive \
  -H 'Authorization: Bearer <API_KEY>' \
  -H 'Content-Type: application/json' \
  -d '{"taskId":"1234567890"}'
# -> { "code":200, "msg":"success", "data":{ "results":[ … ] } }
```

## Response example
```json
{
  "code": 200,
  "msg": "success",
  "data": {
    "results": [
      {
        "ok": true,
        "songId": "<clipId>",
        "url": "https://<cdn>/xxxx.mp3",
        "expiresAt": "2026-01-01T08:00:00.000Z",
        "cached": false,
        "bytes": 1234567,
        "contentType": "audio/mpeg",
        "duration": 123.4
      }
    ]
  }
}
```

## Response fields
| Field | Type | Description |
| --- | --- | --- |
| data.results | array | Result list in the same order as the request. |
| ok | boolean | Whether this item succeeded; failed items carry input and error and no url. |
| songId | string | Song clip ID. |
| url | string | Fresh downloadable / playable link. |
| expiresAt | string | Link expiry time (ISO-8601). |
| cached | boolean | Whether the cache was hit. |
| bytes | number | File size in bytes. |
| contentType | string | Content type, e.g. audio/mpeg. |
| duration | number | Duration in seconds. |

## Common errors
| msg | Meaning |
| --- | --- |
| suno archive 上游返回错误: … | The upstream rejected the archive (for example the song ID does not exist); the reason from the upstream follows the colon. |
