API Docs
Distribution API

Claim Artist

This endpoint receives an artist_id to claim the Artist associated with the specified email fields.

It will then create an Invitation and send an email to the Artist, inviting them to join EVEN.

Note: Only one Artist can be claimed per HTTP Request.

HTTP Request

  • Production: POST https://api.even.biz/api/v1/distribution/artists/:artist_id/claim
  • Stage: POST https://api-staging.even.biz/api/v1/distribution/artists/:artist_id/claim

Body Parameters

ParameterDescriptionRequired
artistArtist object containing the fields to be edited.Yes
artists[].emailThe email address of the artist.Yes

Example Request

uri = URI("https://api-staging.even.biz/api/v1/distribution/artists/:artist_id/claim")

# Prepare HTTP request
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true

request = Net::HTTP::Post.new(uri.path, 'Content-Type' => 'application/json')

# Generate required headers
date = Time.now.utc.httpdate
signed_auth_header = sign_headers(method: :post, endpoint: uri.path, date: date)

# Set custom headers
request['Authorization'] = signed_auth_header
request['Date'] = date

body = {
  artist: {
    email: "artist@music.com"
  }
}
request.body = body.to_json

# Send request
response = http.request(request)

# Handle response
if response.is_a?(Net::HTTPSuccess)
  puts "Success: #{response.body}"
else
  puts "Error: #{response.code} #{response.message}"
end

The above command returns JSON structured like this:

{
  "data": {
    "id": "1",
    "type": "artist",
    "attributes": {
      "id": 1,
      "name": "updated name",
      "slug": "updated-name",
      "username": "artist-53f58fa7-4cc4-4925-b261-0ecd16e85c0b",
      "external_link": null,
      "bio": "some cool bio",
      "about": null,
      "links": null,
      "published": true,
      "country": "US",
      "city": null,
      "private": true,
      "hidden": true,
      "verified": false,
      "onboarded": false,
      "created_at": "2024-10-07T05:59:46.957Z",
      "updated_at": "2024-10-07T05:59:46.957Z",
      "upload_status": "approved"
    },
    "relationships": {
      "releases": {
        "data": []
      }
    }
  },
  "included": []
}

On this page