Skip to main content
POST
/
albums
Create a new album
curl --request POST \
  --url https://open.beatpass.ca/api/v1/albums \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "My New Album",
  "description": "A collection of great songs",
  "release_date": "2024-01-01",
  "artist_id": 1
}
'
{
  "status": "success",
  "album": {
    "id": 123,
    "name": "Coda",
    "image": "https://example.com/image1.jpg",
    "release_date": "1982-11-19",
    "description": "<string>",
    "tracks": [
      {
        "id": 123,
        "name": "Hey Hey What Can I Do",
        "release_date": "1982-11-19",
        "image": "https://example.com/image1.jpg",
        "duration": 5645848548,
        "description": "<string>",
        "artists": [
          {
            "id": 123,
            "name": "Led Zeppelin",
            "image_small": "https://example.com/image1.jpg",
            "verified": true
          }
        ]
      }
    ],
    "artists": [
      {
        "id": 123,
        "name": "Led Zeppelin",
        "image_small": "https://example.com/image1.jpg",
        "verified": true
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

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

Body

application/json
name
string
Example:

"My New Album"

description
string
Example:

"A collection of great songs"

release_date
string<date>
Example:

"2024-01-01"

artist_id
integer
Example:

1

Response

Album created successfully

status
string
Example:

"success"

album
object
Last modified on November 29, 2025