# Get a music collection

Retrieve a single collection owned by the caller, including its populated track count.

Returns the collection with `track_count` populated. Returns `404` if the collection does not exist or is not owned by the caller (IDOR-safe — a non-owner and a non-existent collection are indistinguishable).

## Path parameters

**`organization_id`** string required

The organization that owns the collection.

**`collection_id`** string required

The collection id (`mcoll_`).

## Returns

The collection object with `id`, `name`, `description`, `cover_track_id`, `cover_image_url`, `track_count` (populated), `created_at`, and `updated_at`.

Example

```bash cURL
curl "https://api.aitronos.com/v1/music/org_abc123/collections/mcoll_4a1f9c7e2b8d" \
  -H "X-API-Key: $FREDDY_API_KEY"
```


```python Python SDK
from aitronos import Aitronos  # pip install aitronos-sdk

client = Aitronos(api_key="your-api-key")

collection = client.get("/v1/music/org_abc123/collections/mcoll_4a1f9c7e2b8d")
print(collection["name"], collection["track_count"])
```


```python Python
import os
import requests

api_key = os.environ["FREDDY_API_KEY"]

response = requests.get(
    "https://api.aitronos.com/v1/music/org_abc123/collections/mcoll_4a1f9c7e2b8d",
    headers={"X-API-Key": api_key},
)

print(response.json()["track_count"])
```


```javascript JavaScript
const apiKey = process.env.FREDDY_API_KEY;

const response = await fetch('https://api.aitronos.com/v1/music/org_abc123/collections/mcoll_4a1f9c7e2b8d', {
  headers: { 'X-API-Key': apiKey }
});

const collection = await response.json();
console.log(collection.name, collection.track_count);
```

**Response:**


```json 200 OK
{
  "id": "mcoll_4a1f9c7e2b8d",
  "name": "Focus Sessions",
  "description": "Instrumental tracks for deep work",
  "cover_track_id": "mtrack_8d2e1f6a3c9b",
  "cover_image_url": null,
  "track_count": 12,
  "created_at": "2026-06-28T10:30:00Z",
  "updated_at": "2026-06-28T11:15:00Z"
}
```

Errors

```json 401 Unauthorized
{
  "success": false,
  "error": {
    "code": "AUTHENTICATION_REQUIRED",
    "message": "Authentication required. Please provide a valid API key.",
    "system_message": "Missing or invalid authorization header",
    "type": "authentication_error",
    "status": 401,
    "details": {},
    "trace_id": "req_abc123xyz",
    "timestamp": "2026-06-28T10:30:00Z"
  }
}
```


```json 404 Not Found
{
  "success": false,
  "error": {
    "code": "RESOURCE_NOT_FOUND",
    "message": "The requested resource was not found.",
    "system_message": "Music collection not found or not owned by caller",
    "type": "client_error",
    "status": 404,
    "details": { "collection_id": "mcoll_4a1f9c7e2b8d" },
    "trace_id": "req_jkl012abc",
    "timestamp": "2026-06-28T10:30:00Z"
  }
}
```

## Related Resources

- [Update a collection](/docs/api-reference/music/update-collection)
- [List a collection's tracks](/docs/api-reference/music/list-collection-tracks)
- [Music Studio overview](/docs/api-reference/music/introduction)