Collections
Collections are containers for organizing your audio tracks. You can create, update, retrieve, and delete collection information.
GET
/v1/collection Returns a list of collections for an organization
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
limit | number | Optional | Maximum number of collections to return |
offset | number | Optional | Number of collections to skip |
Example Request
curl -X GET "https://api.audiodelivery.net/v1/collection" \
-H "Authorization: Bearer YOUR_API_KEY" Response
{
"ok": true,
"api_request_id": "uuid",
"count": 0,
"collections": [
{
"id": "uuid",
"organization_id": "uuid",
"creator_id": "uuid | null",
"title": "string",
"organization_index": "string | null",
"metadata": {},
"image_colors": [],
"player_color": "string | null",
"player_subtitle": "string | null",
"is_cover_overridable": true,
"is_theme_overridable": true
}
]
} GET
/v1/collection/:collection_id Returns details about a specific collection
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
collection_id | uuid | Required | The ID of the collection to retrieve (path parameter) |
Response
{
"ok": true,
"api_request_id": "uuid",
"collection_id": "uuid",
"collection": {
"id": "uuid",
"organization_id": "uuid",
"creator_id": "uuid | null",
"title": "string",
"organization_index": "string | null",
"metadata": {},
"image_colors": [],
"player_color": "string | null",
"player_subtitle": "string | null",
"is_cover_overridable": true,
"is_theme_overridable": true
}
} POST
/v1/collection Creates a new collection
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
title | string | Required | Title of the collection |
creator_id | uuid | Optional | ID of the creator that owns the collection |
organization_index | string | Optional | Organization Identifier |
metadata | object | Optional | Organization metadata for the collection |
image_colors | array of objects | Optional | Colors extracted from cover images |
is_cover_overridable | boolean | Optional | Whether collection cover can be overridden at the track level |
is_theme_overridable | boolean | Optional | Whether collection image colors can be overridden at the track level |
player_color | string | Optional | Player color (hex color) |
player_subtitle | string | Optional | Player subtitle |
Example Request
curl -X POST "https://api.audiodelivery.net/v1/collection" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"title": "My Collection", "player_subtitle": "Artist Name"}' Response
{
"ok": true,
"api_request_id": "uuid",
"collection_id": "uuid",
"collection": {
"id": "uuid",
"organization_id": "uuid",
"creator_id": "uuid | null",
"title": "string",
"organization_index": "string | null",
"metadata": {},
"image_colors": [],
"player_color": "string | null",
"player_subtitle": "string | null",
"is_cover_overridable": true,
"is_theme_overridable": true
},
"collection_cover_upload": {
"method": "POST",
"upload_url": "string",
"ttl": 3600,
"expires_at": "string"
}
} PUT
/v1/collection/:collection_id Updates an existing collection
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
collection_id | uuid | Required | The ID of the collection to update (path parameter) |
creator_id | uuid | Optional | ID of the creator |
organization_index | string | Optional | Organization Identifier |
title | string | Optional | Title of the collection |
metadata | object | Optional | Organization metadata |
image_colors | array of objects | Optional | Colors extracted from cover images |
is_cover_overridable | boolean | Optional | Whether collection cover can be overridden at the track level |
is_theme_overridable | boolean | Optional | Whether collection image colors can be overridden at the track level |
player_color | string | Optional | Player color (hex color) |
player_subtitle | string | Optional | Player subtitle |
Response
{
"ok": true,
"api_request_id": "uuid",
"collection_id": "uuid",
"collection": {
"id": "uuid",
"organization_id": "uuid",
"creator_id": "uuid | null",
"title": "string",
"organization_index": "string | null",
"metadata": {},
"image_colors": [],
"player_color": "string | null",
"player_subtitle": "string | null",
"is_cover_overridable": true,
"is_theme_overridable": true
}
} DELETE
/v1/collection/:collection_id Deletes a collection
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
collection_id | uuid | Required | The ID of the collection to delete (path parameter) |
Example Request
curl -X DELETE "https://api.audiodelivery.net/v1/collection/COLLECTION_ID" \
-H "Authorization: Bearer YOUR_API_KEY" Response
{
"ok": true,
"api_request_id": "uuid",
"collection_id": "uuid",
"deleted_collection": {
"id": "uuid",
"organization_id": "uuid",
"creator_id": "uuid | null",
"title": "string",
"organization_index": "string | null",
"metadata": {},
"image_colors": [],
"player_color": "string | null",
"player_subtitle": "string | null"
}
}