GET
/
covers
JavaScript
import Weights from '@weights-ai/sdk';

const client = new Weights({
  bearerToken: 'My Bearer Token',
});

const covers = await client.covers.list();

console.log(covers.covers);
{
  "covers": [
    {
      "id": "cover_123456789",
      "createdAt": "2024-01-15T10:30:00Z",
      "outputUrl": "https://storage.example.com/covers/cover_123456789.mp3",
      "inputFileName": "original_song.wav",
      "status": "SUCCEEDED",
      "inputUrl": "https://storage.example.com/input/original_song.wav",
      "ttsText": "Hello world, this is a test",
      "stemOnly": false,
      "preStemmed": false,
      "pitch": 0,
      "queuePosition": 3
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

limit
number
default:25

Number of items to return per page

Required range: 1 <= x <= 50
Examples:

25

cursor
string | null

Cursor for pagination to get the next page of results - this is the last item's ID from the previous page

Examples:

"cmcz89fci00zr0dlt68klunpf"

Response

200
application/json

Returns a paginated list of covers for the authenticated user.

The response is of type object.