Skip to main content
POST
/
tracks
/
{id}
/
generate-license
Generate a license certificate for a track
curl --request POST \
  --url https://open.beatpass.ca/api/v1/tracks/{id}/generate-license \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "license_type": "exclusive",
  "usage_terms": "Commercial use allowed"
}
'
{
  "status": "success",
  "license": {
    "uuid": "550e8400-e29b-41d4-a716-446655440000",
    "track_id": 1,
    "license_type": "exclusive"
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
integer
required

Track ID

Example:

1

Body

application/json
license_type
string

Type of license (exclusive, non-exclusive, etc.)

Example:

"exclusive"

usage_terms
string

Terms of usage for the license

Example:

"Commercial use allowed"

Response

License generated successfully

status
string
Example:

"success"

license
object
Last modified on November 29, 2025