# Identifiers and artists

> Every release a store sells needs a GTIN, every recording needs an ISRC, and every release needs to appear on the right artist page. ReleaseAPI assigns codes from number ranges you register, or uses codes you already own, and helps you find each artist’s Spotify and Apple Music id.

Source: https://docs.releaseapi.com/identifiers.html

**At a glance**

- You always bring your own GS1 prefix and ISRC registrant code, in sandbox too. A new tenant has no ranges.
- If you leave codes empty, acceptance assigns them from your ranges. If your ranges have run out, the draft is `REJECTED` with `PROVIDER_OUT_OF_GTIN` or `PROVIDER_OUT_OF_ISRC`.
- GTINs are 13 digits (pad a 12-digit UPC with a leading zero). ISRC ranges are per calendar year, so register next year’s range before 1 January.
- Ranges must not overlap any range in ReleaseAPI, and should cover only numbers you’ve never used.
- A store artist id on a contributor (`spotifyId`, `appleId`) puts the release on that artist’s page. Every `ARTIST` also needs your own `providerArtistId`.
- For a new artist on Apple Music, create the artist first and send the `appleId` you get back. Spotify writes its ids back after ingesting a release.

## The two codes

- **GTIN** — The barcode of a **release**, often called UPC or EAN. Stores use it to identify the product. ReleaseAPI stores and issues every GTIN as a 13-digit EAN-13, such as `4063361000047`. A 12-digit UPC-A becomes an EAN-13 by adding a leading zero: UPC `724384960650` is GTIN `0724384960650`, with the same check digit.
- **ISRC** — The International Standard Recording Code of a **recording**, meaning one track. It follows the recording onto every release it appears on, and streams and royalties are counted against it. It has 12 characters, such as `DEXW92600042`.

You always bring your own codes: a GS1 company prefix for GTINs and an ISRC registrant code from your national ISRC agency. That holds for tenants under RecordJet and client accounts alike, in sandbox and in production. Neither ReleaseAPI nor RecordJet sells or lends codes. ReleaseAPI manages the ranges you register.

If you haven’t used these before, both are blocks of numbers your company gets once, outside ReleaseAPI:

- **GS1 company prefix** — A number block your company licenses from GS1, the barcode organisation, through its national member (for example GS1 Germany or GS1 US). It forms the first digits of every GTIN you issue, and you number the rest. If your label already prints barcodes on physical products, it has one.
- **ISRC registrant code** — A three-character code from your national ISRC agency. With the two-letter country code it forms the first five characters of every ISRC you issue (`DE` + `XW9` in `DEXW92600042`), followed by the year and a five-digit recording number you choose.

## Three ways to get codes onto a release

| Approach | How | Use it when |
| --- | --- | --- |
| **Automatic** | Leave `identifiers.gtin` and the tracks' `identifiers.isrc` empty. Acceptance fills them from your ranges. | The default. You don’t need the codes before the release is accepted. |
| **Allocate up front** | Call the allocate endpoints and write the codes into the draft. | You need the codes earlier, for artwork, pre-sales, or to share with a partner. |
| **Bring your own** | Write codes you manage elsewhere into the draft. | You’re migrating a catalog that already has codes, or reusing an ISRC for a recording that was released before. |

The first two need ranges registered with ReleaseAPI. With the third, ReleaseAPI uses the codes as you send them.

> **Ranges belong to a tenant:** Each range is registered for one tenant, and codes are only issued to that tenant’s releases. With a client key, every range and allocation call needs a `tenantId`. Without it you get `TENANT_ID_NEEDED_FOR_CLIENT_REQUEST`. A tenant key always works on its own tenant. See [Your account](https://docs.releaseapi.com/account.html).
>
> If you run many small tenants, for example one per artist, each one that relies on automatic assignment needs its own slice of your GS1 and ISRC numbering. The alternative is to keep one pool in your own system and [write the codes into each draft](https://docs.releaseapi.com/identifiers.html#bring-your-own) yourself.

**In sandbox,** tenants also start without ranges. Register one before your first submission, or acceptance fails as described in [Automatic assignment](https://docs.releaseapi.com/identifiers.html#automatic). Use a block from your own GS1 prefix and ISRC registrant code there too. The overlap check covers every range registered in the environment, so your own numbers are the least likely to collide. Don’t copy the example values on this page, because they may already be taken.

## Register your ranges

Register a GTIN block once per tenant and an ISRC block once per tenant and year. After that, acceptance can assign codes on its own. cURL examples use `$BASE` (`https://api-sandbox.releaseapi.com/v1`) and `$RELEASEAPI_KEY` from the [Quickstart setup](https://docs.releaseapi.com/quickstart.html#before-you-start).

**Endpoints**

- `POST /v1/distribution/identifiers/gtin-ranges` — Register a GTIN range
- `GET /v1/distribution/identifiers/gtin-ranges` — List ranges
- `GET /v1/distribution/identifiers/gtin-ranges/{id}` — Read a range
- `DELETE /v1/distribution/identifiers/gtin-ranges/{id}` — Remove a range
- `POST /v1/distribution/identifiers/isrc-ranges` — Register an ISRC range
- `GET /v1/distribution/identifiers/isrc-ranges` — List ranges
- `GET /v1/distribution/identifiers/isrc-ranges/{id}` — Read a range
- `DELETE /v1/distribution/identifiers/isrc-ranges/{id}` — Remove a range
- `POST /v1/distribution/identifiers/gtin-ranges/allocate` — Allocate GTINs
- `POST /v1/distribution/identifiers/isrc-ranges/allocate` — Allocate ISRCs

### GTIN ranges

A GTIN range is your GS1 prefix and a span of article numbers. ReleaseAPI builds each code as the 2-digit `countryCode`, the 5-digit `companyNumber` and the 5-digit article number, then appends the check digit.

*Diagram: GTIN 4063361000047 split into country code 40, company number 63361, article 00004 and check digit 7.* Every GTIN ReleaseAPI issues is a 13-digit EAN-13.

`POST /v1/distribution/identifiers/gtin-ranges`

**cURL**

```bash
curl -X POST "$BASE/distribution/identifiers/gtin-ranges" \
  -H "X-API-KEY: $RELEASEAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "countryCode": 40,
    "companyNumber": 63361,
    "articleFrom": 0,
    "articleTo": 9999
  }'
```

**Response**

```json
{
  "clientId": "7c4a91e2-5d3b-4f08-a6e1-93b2c0d4e517",
  "tenantId": "b55ec853-f63b-4cb3-9c2f-868b4eb42f95",
  "countryCode": 40,
  "companyNumber": 63361,
  "articleFrom": 0,
  "articleTo": 9999,
  "articleNext": 0,
  "id": "6d2e8f41-3b7a-4c09-9e15-a8b7c6d5e4f3",
  "createdAt": "2026-10-05T07:20:44Z"
}
```

- `countryCode` (integer 0–99, required) — The first two digits of your GS1 prefix.
- `companyNumber` (integer 0–99999, required) — The next five digits of your GS1 prefix.
- `articleFrom · articleTo` (integer 0–99999, required) — The first and last article numbers ReleaseAPI may issue, inclusive. `articleNext` starts at `articleFrom` and counts up.
- `tenantId` (uuid) — The tenant the range belongs to. Required with a client key.

A range that overlaps any range already registered in ReleaseAPI, whether it’s yours, another tenant’s or another account’s, is rejected with `GTIN_RANGE_OVERLAPS_EXISTING`. Two tenants can’t share a block of numbers, so split your prefix into separate ranges, one per tenant. Invalid values return `COUNTRY_CODE_INVALID`, `COMPANY_NUMBER_INVALID`, `ARTICLE_FROM_INVALID`, `ARTICLE_TO_INVALID` or `ARTICLE_FROM_NOT_SMALLER_TO`.

### ISRC ranges

An ISRC is the 2-letter `countryKey`, the 3-character `ownerKey` (your registrant code), the two-digit year and a 5-digit recording number. Because the year is part of the code, an ISRC range is registered for **one year**.

`POST /v1/distribution/identifiers/isrc-ranges`

**cURL**

```bash
curl -X POST "$BASE/distribution/identifiers/isrc-ranges" \
  -H "X-API-KEY: $RELEASEAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "countryKey": "DE",
    "ownerKey": "XW9",
    "year": 2026,
    "recordingFrom": 0,
    "recordingTo": 99999
  }'
```

**Response**

```json
{
  "clientId": "7c4a91e2-5d3b-4f08-a6e1-93b2c0d4e517",
  "tenantId": "b55ec853-f63b-4cb3-9c2f-868b4eb42f95",
  "countryKey": "DE",
  "ownerKey": "XW9",
  "year": 2026,
  "recordingFrom": 0,
  "recordingTo": 99999,
  "recordingNext": 0,
  "id": "a41b7c2d-95e0-4f38-8d6a-1c2b3d4e5f60",
  "createdAt": "2026-10-05T07:21:10Z"
}
```

- `countryKey` (string, 2 letters, required) — Upper-case country code from your ISRC registration, for example `DE`.
- `ownerKey` (string, 3 characters, required) — Your registrant code, made of digits and upper-case letters.
- `year` (integer, required) — The year this range issues codes for. Codes carry its last two digits.
- `recordingFrom · recordingTo` (integer 0–99999, required) — The first and last recording numbers, inclusive.
- `tenantId` (uuid) — Required with a client key.

The validation errors are `COUNTRY_KEY_INVALID`, `OWNER_KEY_INVALID`, `YEAR_INVALID`, `RECORDING_FROM_INVALID`, `RECORDING_TO_INVALID`, `RECORDING_FROM_NOT_SMALLER_TO` and `ISRC_RANGE_OVERLAPS_EXISTING`. As with GTINs, the overlap check covers every ISRC range in ReleaseAPI for the same country, owner and year, not only yours.

> **Register next year’s ISRC range before January:** Automatic assignment always uses the range for the *current calendar year*. On 1 January, a tenant with no range for the new year can’t accept releases that need ISRCs. Acceptance fails with `PROVIDER_OUT_OF_ISRC` until you add one.

## Automatic assignment on acceptance

When a draft is accepted, ReleaseAPI fills in whatever codes are missing:

- If the release has no `identifiers.gtin`, it takes the next GTIN from the tenant’s ranges.
- If a track has no `identifiers.isrc`, it takes the next ISRC from the tenant’s range for the current year.
- If a Dolby Atmos track has no `identifiers.dolbyIsrc`, it takes a separate ISRC for the Atmos version.

If several ranges have space, the oldest is used first. If none has space, acceptance fails. The draft becomes `REJECTED` with `PROVIDER_OUT_OF_GTIN` or `PROVIDER_OUT_OF_ISRC` and nothing reaches the catalog. Add a range (or write the codes into the draft) and submit again ([When acceptance fails](https://docs.releaseapi.com/review.html#acceptance-failures)). Codes are assigned once, and later edits keep them.

*Diagram: A GTIN range is used in order: articles 1 to 4 are taken, the next acceptance takes 5. Article 7 was already used on a release you entered by hand, so automatic assignment would hand it out again. ISRC ranges are per year: with no range for the new year, acceptance fails with PROVIDER_OUT_OF_ISRC.* ReleaseAPI only tracks the next free number in each range, not which codes exist on your releases. Register ranges you have never used, and add next year’s ISRC range before January.

> **Register only numbers you have never used:** ReleaseAPI hands out codes from a range in order and doesn’t check whether a code is already on one of your releases. Validation runs before the code is assigned, so it can’t catch a repeat either. If a range overlaps codes you entered by hand, for example on releases you migrated:
>
> - a repeated GTIN is claimed by the new release, and the older release is no longer delivered (see [How uniqueness is checked](https://docs.releaseapi.com/identifiers.html#uniqueness));
> - a repeated ISRC is booked by the ledger’s shared-ISRC rules.
>
> Set `articleFrom` and `recordingFrom` past the last number you ever used.

## Allocate codes up front

The examples use a tenant key, which always works on its own tenant. With a client key, add `"tenantId"` to the body of every range and allocate call.

To know a code before acceptance, allocate it (up to 999 per call) and write it into the draft. Allocation is all or nothing: if the ranges can’t supply every code, none are issued and you get `OUT_OF_GTINS` or `OUT_OF_ISRCS`.

`POST /v1/distribution/identifiers/isrc-ranges/allocate`

**cURL**

```bash
curl -X POST "$BASE/distribution/identifiers/isrc-ranges/allocate" \
  -H "X-API-KEY: $RELEASEAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "batchSize": 3, "year": 2026 }'
```

**Node.js**

```javascript
// api() is the helper from the Quickstart setup (BASE ends in /v1)
const { isrcs } = await api("POST", "/distribution/identifiers/isrc-ranges/allocate", {
  batchSize: 3,
  year: 2026,
});
```

**Python**

```python
# api() is the helper from the Quickstart setup (BASE ends in /v1)
body = {"batchSize": 3, "year": 2026}
isrcs = api("POST", "/distribution/identifiers/isrc-ranges/allocate", body)["isrcs"]
```

**Response**

```json
{
  "isrcs": ["DEXW92600042", "DEXW92600043", "DEXW92600044"]
}
```

`POST /v1/distribution/identifiers/gtin-ranges/allocate`

**cURL**

```bash
curl -X POST "$BASE/distribution/identifiers/gtin-ranges/allocate" \
  -H "X-API-KEY: $RELEASEAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "batchSize": 1 }'
```

**Response**

```json
{
  "gtins": ["4063361000047"]
}
```

| Field | Default | Notes |
| --- | --- | --- |
| `batchSize` | `1` | 1 to 999 (`N_MUST_BE_POSITIVE`, `N_TOO_BIG`). |
| `year` | Current year | ISRC only. Picks the range for that year (`INVALID_YEAR` outside 2001–2099). |
| `tenantId` | – | Required with a client key. |

> **An allocated code is used up.** The counter moves forward and there is no way to give a code back. Allocate codes when you are about to use them, not speculatively.

Then write the codes into the draft:

**Draft fragments**

```json
// release
{ "identifiers": { "gtin": "4063361000047", "catalogNumber": "LOW-026" } }

// track
{ "identifiers": { "isrc": "DEXW92600042" } }
```

## Bring your own codes

Write any valid GTIN and ISRC into the draft, the same way as allocated codes. Codes you send don’t need a range. The typical cases are:

- **Catalog migrations.** Keep the original GTIN and ISRCs so stores match the release to its existing page and play counts.
- **Compilations and re-releases.** A recording keeps its ISRC on every release it appears on. Only the new release gets a new GTIN.

Tracks also accept `iswc` (the musical work), `secondaryIsrcs` and `dolbyIsrc`. Releases accept `grid` and `catalogNumber`. The full field list is on [Identifier fields](https://docs.releaseapi.com/drafts.html#identifiers).

### How uniqueness is checked

Validation compares your codes with every release and video in your **client**, across all of its tenants. It doesn’t look at other ReleaseAPI clients, so a copy of the release held by another account doesn’t block you.

| Situation | Result |
| --- | --- |
| The same ISRC twice on one release | `TRACK_IDENTIFIERS_ISRC_DUPLICATION` (critical). The check is within the release only. |
| An ISRC that’s already on another release | This is allowed, because that’s how compilations and re-releases work. If title, contributors or duration differ, you get the warning `TRACK_WITH_SAME_ISRC_BUT_DIFFERENT_METADATA`. |
| A GTIN or ISRC already used on a music video | `RELEASE_GTIN_WAS_USED_ON_VIDEO_RELEASE`, `RELEASE_ISRC_WAS_USED_ON_VIDEO_RELEASE` (critical). |
| A GTIN that another release in the client still uses, and that release isn’t taken down | `RELEASE_WITH_SAME_GTIN_EXISTS` (critical), unless your draft selects no stores. |
| A GTIN whose other release is taken down | This is allowed, but the new release must be the same product: same track count, volumes, ISRCs, Dolby ISRCs, GRids and booklet (`RELEASE_WITH_SAME_GTIN_BUT_*`, critical). |

So a GTIN only moves to a new release after the old one is taken down, for example when you rebuild a release under a new id. When the new release is accepted, it claims the GTIN:

- Every other release in the client with that GTIN gets `generated.gtinClaimedBy` set to the new release and is no longer delivered, so stores never receive two products with one barcode.
- The old release keeps its status (normally `TAKEDOWN`), so `gtinClaimedBy` is the field to check.
- Taking the new release down later doesn’t hand the GTIN back. The older releases keep their `gtinClaimedBy`.

This claim only decides delivery. Which release a statement line pays is a separate ledger rule, explained in [Splits and the ledger](https://docs.releaseapi.com/ledger.html#takedowns-and-shared-isrcs).

## Artist profiles

Codes identify the product and the recording. The artist is identified separately on each store, and you want a release to appear on the artist’s existing page on Spotify and Apple Music, not on a new, empty duplicate. You link each contributor to the store’s artist id, and ReleaseAPI helps you find that id.

Stores keep their own artist pages, each with an id. From the delivered metadata, a store decides which page a release belongs on:

- **With a store artist id on the contributor**, the release goes onto that artist’s page.
- **Without one**, the store matches by name or creates a new artist page. For a new artist this is what you want. For an established artist with a common name, it’s how releases end up on someone else’s page.

Contributors live in the `contributions` array on the release and each track. Each has a `name` and a `role`, and can carry store ids:

**Draft fragment — contributions**

```json
{
  "contributions": [
    {
      "role": "ARTIST",
      "name": "Nova Reyes",
      "providerArtistId": "artist-nova-reyes",
      "spotifyId": "4Zq7hYcUu9Wk2BfN3mLxPa",
      "appleId": "1748392051"
    },
    {
      "role": "FEATURING",
      "name": "Kito Lane",
      "providerArtistId": "artist-kito-lane"
    }
  ]
}
```

- `role` (string, required) — An upper-case code: `ARTIST` for the main artist, `FEATURING` or `WITH` for featured artists, and credits such as `REMIXER`, `PRODUCER`, `COMPOSER` or `LYRICIST`. Any other casing fails to decode. The full list comes from `GET /v1/core/data/contributors`. See [Reference data](https://docs.releaseapi.com/reference-data.html).
- `name` (string, required) — The name as it should appear on stores.
- `spotifyId` (string) — The 22-character Spotify artist id, for example `4Zq7hYcUu9Wk2BfN3mLxPa`.
- `appleId` (string) — The numeric Apple Music artist id.
- `deezerId · audiomackId` — Artist ids for Deezer and Audiomack.
- `soundCloudProfile` (string) — The SoundCloud profile name.
- `isni` (string) — The International Standard Name Identifier, when the artist has one.
- `providerArtistId` (string, required on artist) — Your own stable id for this artist, such as the primary key of your artist table. “Provider” here means you, the content provider, not a store. Every `ARTIST` contributor needs one, on the release and on every track. It goes out in the delivery as your proprietary artist id, which lets stores keep every release of the artist together, and [Spotify for Artists onboarding](https://docs.releaseapi.com/identifiers.html#spotify-for-artists) uses it to find the artist’s releases. Keep it the same across releases and never reuse it for another person.
- `customTenantId` (string) — A second id of your own, for filtering the catalog by contributor. It isn’t sent to stores.
- `localization` (array) — The artist’s name in other languages and scripts.

*Diagram: Your artist record holds providerArtistId and store ids; you write them onto the contributors of every release; a store with an id puts the release on that artist page, without one it matches by name or creates a new page; Spotify writes its id back after ingesting, which you store on your artist record.* Artist ids belong on your own artist record, not on each release. Write them onto every release, and keep the ids Spotify sends back so the next release goes straight to the right page.

> **Ask artists once and store the ids.** Ask artists for their Spotify and Apple Music pages during onboarding, check the ids with the endpoints below, and write them onto every release automatically.

## Find a Spotify artist

**Spotify artist endpoints**

- `POST /v1/distribution/artists/spotify/query` — Search by name
- `GET /v1/distribution/artists/spotify/{spotifyId}` — Read one artist
- `POST /v1/distribution/artists/spotify/batch` — Read up to 50 artists

All artist endpoints work with client and tenant keys, and need the `ARTIST_READ` permission (`ARTIST_WRITE` to create artists).

### Search by name

This searches Spotify live, so you can use it for an artist picker. Show the image, follower count and genres so your user can tell same-named artists apart.

`POST /v1/distribution/artists/spotify/query`

**cURL**

```bash
curl -X POST "$BASE/distribution/artists/spotify/query" \
  -H "X-API-KEY: $RELEASEAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "searchString": "Nova Reyes" }'
```

**Node.js**

```javascript
// api() is the helper from the Quickstart setup (BASE ends in /v1)
const { foundArtists } = await api("POST", "/distribution/artists/spotify/query", {
  searchString: "Nova Reyes",
});
```

**Python**

```python
# api() is the helper from the Quickstart setup (BASE ends in /v1)
found = api("POST", "/distribution/artists/spotify/query",
            {"searchString": "Nova Reyes"})["foundArtists"]
```

**Response**

```json
{
  "foundArtists": [
    {
      "name": "Nova Reyes",
      "details": {
        "genres": ["indie pop", "bedroom pop"],
        "isCurated": false,
        "followers": 48210,
        "popularity": 41,
        "imageUrl": "https://i.scdn.co/image/ab6761610000e5eb…"
      },
      "id": "4Zq7hYcUu9Wk2BfN3mLxPa",
      "createdAt": "2026-10-05T08:14:02Z"
    }
  ]
}
```

`searchString` must be shorter than 100 characters (`SEARCH_STRING_TOO_LONG`).

### Read one artist

`GET /v1/distribution/artists/spotify/{spotifyId}` returns the same artist object. Artists are cached for 7 days, so it’s cheap to call whenever a user pastes an id. If Spotify is down and the cache is older than 7 days, it answers `404` even for a real artist. Retry later, or use the batch call, which reports `SPOTIFY_UNAVAILABLE` instead.

### Read many artists at once *(New)*

Look up as many as 50 artists in one call, for example to validate the ids you store for a roster or to show artist images. The response keeps your order. An unknown id comes back as a row with `notFound: true`, so one bad id doesn’t fail the batch. In that row, `name` repeats the id and every field in `details` is `null`. If you send the same id twice, it appears twice in the response, and an empty `ids` list returns an empty list. Ids can be bare (`4Zq7hYcUu9Wk2BfN3mLxPa`) or URIs (`spotify:artist:4Zq7hYcUu9Wk2BfN3mLxPa`).

`POST /v1/distribution/artists/spotify/batch`

**cURL**

```bash
curl -X POST "$BASE/distribution/artists/spotify/batch" \
  -H "X-API-KEY: $RELEASEAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "ids": ["4Zq7hYcUu9Wk2BfN3mLxPa", "spotify:artist:0000000000000000000000"] }'
```

**Response**

```json
{
  "artists": [
    {
      "name": "Nova Reyes",
      "details": {
        "genres": ["indie pop"],
        "isCurated": false,
        "followers": 48210,
        "popularity": 41,
        "imageUrl": "https://i.scdn.co/image/ab6761610000e5eb…"
      },
      "lastCrawled": "2026-10-05T08:14:02Z",
      "notFound": false,
      "id": "4Zq7hYcUu9Wk2BfN3mLxPa",
      "createdAt": "2026-10-05T08:14:02Z"
    },
    {
      "name": "0000000000000000000000",
      "details": { "genres": null, "isCurated": null, "followers": null, "popularity": null, "imageUrl": null },
      "lastCrawled": "2026-10-05T08:20:11Z",
      "notFound": true,
      "id": "0000000000000000000000",
      "createdAt": "2026-10-05T08:20:11Z"
    }
  ]
}
```

| Error | Status | Meaning |
| --- | --- | --- |
| `INVALID_SPOTIFY_ID` | 400 | An id isn’t a Spotify id or URI. |
| `SPOTIFY_BATCH_TOO_LARGE` | 400 | More than 50 ids. |
| `SPOTIFY_RATE_LIMITED` | 429 | Spotify is throttling. Back off and try again. |
| `SPOTIFY_UNAVAILABLE` | 502 | Spotify didn’t answer. Try again later. |

The [API reference](https://docs.releaseapi.com/openapi/index.html#post-/distribution/artists/spotify/batch) has the full schemas for the batch endpoint and the [Spotify catalog lookups](https://docs.releaseapi.com/identifiers.html#spotify-catalog).

## Find or create an Apple Music artist

Apple prefers a new artist’s release to point to an existing artist page, so search first and create the page through the API if there’s no match.

> **Create new Apple artists first:** For an artist not yet on Apple Music, [create the artist](https://docs.releaseapi.com/identifiers.html#apple-create) before you submit and send the returned `appleId` on every `ARTIST` contributor. This keeps the release off someone else’s page or a duplicate. Validation doesn’t require an `appleId`. It only rejects a malformed one (`RELEASE_CONTRIBUTOR_APPLE_ID_FORMAT_INVALID`).

**Apple Music artist endpoints**

- `POST /v1/distribution/artists/apple/query` — Search by name
- `GET /v1/distribution/artists/apple/{appleId}` — Read one artist
- `POST /v1/distribution/artists/apple/create` — Create an artist
- `POST /v1/distribution/artists/apple/create-async-start` — Create in the background
- `POST /v1/distribution/artists/apple/create-async-status` — Poll a background create
- `POST /v1/distribution/artists/apple/connect/query` — Search (Connect API)
- `POST /v1/distribution/artists/apple/connect/create` — Create (Connect API)
- `POST /v1/distribution/artists/apple/connect/{appleId}` — Read (Connect API)

Search and create run through Apple’s Transporter with the Apple delivery account behind your account. Tenants under RecordJet use RecordJet’s account and need nothing else. Tenant keys can call every endpoint above. A client account needs its own `APPLE` delivery profile.

### Search

`POST /v1/distribution/artists/apple/query`

**cURL**

```bash
curl -X POST "$BASE/distribution/artists/apple/query" \
  -H "X-API-KEY: $RELEASEAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "searchString": "Nova Reyes", "artistLocale": "en-US" }'
```

**Response**

```json
{
  "foundArtists": [
    {
      "name": "Nova Reyes",
      "details": {
        "genre": "Pop",
        "locale": "en-US",
        "isCurated": false,
        "storeUrl": "https://music.apple.com/us/artist/1748392051",
        "alsoDistributedBy": []
      },
      "id": "1748392051",
      "createdAt": "2026-10-05T08:15:40Z"
    }
  ]
}
```

`details.alsoDistributedBy` lists other distributors that deliver to this artist page. It’s a useful hint that you’ve found the right artist, or that someone else is also delivering for them.

### Create an artist

Creation takes two steps, so you don’t create a duplicate by accident. The first call checks for similar artists. If Apple finds any, nothing is created. Instead, you get `foundArtists` and a `forceCreateToken`. Show the matches to your user. If none of them is right, call again with the token to create the artist.

*Diagram: Apple artist creation: the create call either creates the artist straight away when nothing similar exists, or returns similar artists and a forceCreateToken; you either use one of the matches or call again with the token; either way you end with an appleId to put on every ARTIST contributor.* The first call only creates the artist when Apple finds nothing similar. Otherwise, your user picks a match or confirms with the token.

1. **Ask to create**

   `POST /v1/distribution/artists/apple/create`

   **cURL**

   ```bash
   curl -X POST "$BASE/distribution/artists/apple/create" \
     -H "X-API-KEY: $RELEASEAPI_KEY" \
     -H "Content-Type: application/json" \
     -d '{ "artistName": "Nova Reyes", "artistLocale": "en-US" }'
   ```

   **Response**

   ```json
   {
     "foundArtists": [
       { "name": "Nova Reyes", "details": { "locale": "en-US", "isCurated": false }, "id": "1600213377", "createdAt": "2026-10-05T08:16:01Z" }
     ],
     "forceCreateToken": "f3a9c2e1d0b84c7a9e6f5d4c3b2a1908"
   }
   ```

   If Apple finds nothing similar, this first call creates the artist and returns `createdArtist` straight away.

2. **Confirm with the token**

   `POST /v1/distribution/artists/apple/create`

   **cURL**

   ```bash
   curl -X POST "$BASE/distribution/artists/apple/create" \
     -H "X-API-KEY: $RELEASEAPI_KEY" \
     -H "Content-Type: application/json" \
     -d '{
       "artistName": "Nova Reyes",
       "artistLocale": "en-US",
       "forceCreateToken": "f3a9c2e1d0b84c7a9e6f5d4c3b2a1908"
     }'
   ```

   **Response**

   ```json
   {
     "createdArtist": {
       "name": "Nova Reyes",
       "details": { "locale": "en-US", "isCurated": false },
       "id": "1748392051",
       "createdAt": "2026-10-05T08:16:30Z"
     }
   }
   ```

   Write `createdArtist.id` into the contributor’s `appleId`.

### Create in the background

Apple can take a while to answer. To avoid holding a request open, start the creation and poll for it. A background creation always creates the artist, like a call that sends a `forceCreateToken`, so search first.

**Background creation**

```http
POST /v1/distribution/artists/apple/create-async-start
{ "artistName": "Nova Reyes", "artistLocale": "en-US" }
→ { "createAsyncToken": "0d6b1f2e-8c4a-4e9b-a3d7-5f6e7a8b9c01" }

POST /v1/distribution/artists/apple/create-async-status
{ "createAsyncToken": "0d6b1f2e-8c4a-4e9b-a3d7-5f6e7a8b9c01" }
→ { "status": "SUCCESS", "createdArtist": { "name": "Nova Reyes", "id": "1748392051", … } }
```

`status` is `PENDING`, `SUCCESS`, `FAILURE` or `CONFLICT`. `CONFLICT` means Apple reports that the artist already exists. Search again and use the existing id.

### Apple Music Connect API

A second set of endpoints uses Apple’s Connect API instead of Transporter. `connect/query` takes only `searchString`. `connect/create` takes `artistName` and `artistLocale`, plus optional `hometown` and `dateOfBirth` (`YYYY-MM-DD`), which help Apple tell artists apart. It has no `forceCreateToken`. `POST /v1/distribution/artists/apple/connect/{appleId}` reads one artist through the Connect API. It needs `ARTIST_WRITE`.

Name, locale, hometown and search strings must be shorter than 100 characters (`ARTIST_NAME_TOO_LONG`, `ARTIST_LOCALE_TOO_LONG`, `HOMETOWN_TOO_LONG`, `SEARCH_STRING_TOO_LONG`).

## Deezer

`GET /v1/distribution/artists/deezer/{deezerId}` returns a Deezer artist with `details.albums`, `details.fans` and `details.imageUrl`. Use it to check a `deezerId` before you write it to a contributor.

## Ids written back after release

You don’t have to know every id before the first release. Once Spotify has ingested a release, ReleaseAPI receives Spotify’s feedback and writes the Spotify album id, the track ids and each contributor’s `spotifyId` onto the catalog release. Contributors are matched by name and role, and none are ever added. Spotify’s id takes precedence and replaces a `spotifyId` you set yourself on a contributor with the same name. A `FULL_RELEASE_SPOTIFY_FEEDBACK_APPLIED` event tells you it happened.

Read the new `spotifyId` off the catalog release and store it on your artist record. The artist’s next release then goes straight to the right page, including on the first delivery to stores that don’t send feedback.

Store ids for the release and its tracks (Spotify, Apple Music, Deezer, Tidal and others) are fetched once, when the daily status job moves the release to `RELEASED`, and written to `generated.storeReferences`. A release accepted with a release date that has already passed starts out `RELEASED` and skips that step, so call `POST /v1/distribution/catalog/full-releases/{releaseId}/request-store-id-crawl` once the stores have it. In sandbox the daily job never fetches store ids, but a manual crawl works there. See [Release status and store links](https://docs.releaseapi.com/delivery.html#release-status).

## Look up Spotify albums and tracks *(New)*

These endpoints read Spotify’s catalog, so they return any album or track, not only yours. Use them to check a catalog you’re about to migrate (the ISRCs, UPC and track order of what’s live), or to show what’s already on Spotify for an artist. They need `ARTIST_READ` and work with client and tenant keys. Results are cached for 7 days.

**Spotify catalog endpoints**

- `POST /v1/integrations/spotify/albums/query` — Search albums
- `GET /v1/integrations/spotify/albums/{spotifyAlbumId}` — Album with tracks
- `POST /v1/integrations/spotify/tracks/query` — Search tracks
- `GET /v1/integrations/spotify/tracks/{spotifyTrackId}` — One track
- `POST /v1/integrations/spotify/tracks/batch` — Up to 50 tracks

Searches take `{ "searchString": "…" }` and return up to 20 results in `foundAlbums` or `foundTracks`. The search string must be shorter than 100 characters (`SEARCH_STRING_TOO_LONG`). Search results carry less than a direct read:

- An album hit has only `albumType`, `releaseDate`, `imageUrl` and `artists` in `details`. Read the album by id for its label, UPC, copyrights and tracks.
- A track hit never includes `isrc`, because Spotify’s search doesn’t return it. Read the track by id, or use the track batch, to get the ISRC.

The track batch takes `{ "ids": [...] }` and returns `tracks` in your order, the same way as the artist batch. Ids can be bare or URIs (`spotify:album:…`, `spotify:track:…`). An unknown album or track id never causes a `404`. Both the single reads and the batch return `200` with a row that has `notFound: true`, whose `name` repeats the id. Other errors are the same as for the [artist batch](https://docs.releaseapi.com/identifiers.html#spotify-batch). Reading an album also fails with `502 SPOTIFY_UNAVAILABLE` if Spotify doesn’t return its full track list. Unlike the artist batch, these responses leave out fields that Spotify doesn’t provide instead of sending them as `null`.

`GET /v1/integrations/spotify/albums/{spotifyAlbumId}`

**cURL**

```bash
curl "$BASE/integrations/spotify/albums/2nLhD10Z7Sb4RFyCX2ZCyx" \
  -H "X-API-KEY: $RELEASEAPI_KEY"
```

**Response**

```json
{
  "name": "Midnight Static",
  "details": {
    "albumType": "single",
    "releaseDate": "2026-03-13",
    "label": "Lowtide Records",
    "upc": "4063361000047",
    "imageUrl": "https://i.scdn.co/image/ab67616d0000b273…",
    "artists": [{ "id": "4Zq7hYcUu9Wk2BfN3mLxPa", "name": "Nova Reyes" }],
    "copyrights": [{ "text": "2026 Lowtide Records", "type": "P" }],
    "tracks": [
      {
        "id": "6rqhFgbbKwnb9MLmUQDhG6",
        "name": "Midnight Static",
        "discNumber": 1,
        "trackNumber": 1,
        "explicit": false,
        "artists": [{ "id": "4Zq7hYcUu9Wk2BfN3mLxPa", "name": "Nova Reyes" }]
      }
    ]
  },
  "lastCrawled": "2026-10-05T08:30:12Z",
  "notFound": false,
  "id": "2nLhD10Z7Sb4RFyCX2ZCyx",
  "createdAt": "2026-10-05T08:30:12Z"
}
```

A track (`TrackSpotify`) has `name` and `details` with `explicit`, `isrc` (not in search results), `discNumber`, `trackNumber`, `durationMs`, `artists` and `album` (`id`, `name`, `imageUrl`), plus `lastCrawled`, `notFound`, `id` and `createdAt`.

## Spotify for Artists onboarding

ReleaseAPI can send an artist straight into Spotify for Artists with their releases already matched. Call `POST /v1/distribution/artists/spotify/s4a/init`, then redirect the artist to the `url` it returns. Spotify asks them to sign in, and ReleaseAPI then hands Spotify the albums whose contributor has that `providerArtistId`.

| Field | What it is | Rule | Error |
| --- | --- | --- | --- |
| `spotifyArtistId` | The artist’s Spotify id. | Under 100 characters | `SPOTIFY_ARTIST_ID_TOO_LONG` |
| `contributorId` | The `providerArtistId` you set on the contributor. | Under 100 characters | `CONTRIBUTOR_ID_TOO_LONG` |
| `fallbackRedirectUrl` | Where the artist is sent if the hand-over can’t complete. | `https://`, under 1,000 characters | `FALLBACK_REDIRECT_URL_MUST_BE_HTTPS` — `FALLBACK_REDIRECT_URL_TOO_LONG` |

This needs Spotify for Artists credentials that ReleaseAPI configures for your account. Without them, the call fails with `S4A_SECRET_MISSING`. Ask your RecordJet contact to enable it. On a client account, ask ReleaseAPI.

## Events

Creating and deleting ranges produces `ASSIGNABLE_GTIN_RANGE` and `ASSIGNABLE_ISRC_RANGE` events on the [journal](https://docs.releaseapi.com/events.html). Allocation updates the range’s `articleNext` or `recordingNext`. To warn before a range runs out, compare those counters with `articleTo` and `recordingTo`.

## Next steps

- [Build a release](https://docs.releaseapi.com/drafts.html): See where codes and contributors go on the release and its tracks.
- [Submit and review](https://docs.releaseapi.com/review.html): Find out what happens when a range runs out at acceptance.
- [Deliver to stores](https://docs.releaseapi.com/delivery.html): Check when store ids appear on a live release.
