# Client accounts

> A client account is for companies with their own store deals. You get the same API as a tenant under RecordJet, plus the operational work RecordJet would otherwise do for you.

Source: https://docs.releaseapi.com/client-accounts.html

> **Tenant under RecordJet?** You can skip this page. Everything you need is in the other guides, and most endpoints here need a client key. The exception is reading your own tenant. If you’re unsure which you are, see [Two ways to use ReleaseAPI](https://docs.releaseapi.com/concepts.html#two-ways).

**At a glance**

- You run a client when you hold your own store contracts and DDEX party id. Clients are set up with ReleaseAPI at onboarding.
- Client keys see every tenant. Writes with a client key need `tenantId`, and a call with the wrong scope answers `401`.
- You create tenants yourself, which needs `TENANT_WRITE` and therefore an `ADMIN` key. Each new tenant’s contact gets an admin invitation.
- You review your tenants’ releases.
- Deciding reviews is covered at the end of [Submit and review](https://docs.releaseapi.com/review.html), under “Client accounts: decide reviews”.

## Who runs a client account

The client is the account that holds the store contracts. Every release delivered from a client goes out under the client’s agreements and DDEX party id, through delivery profiles that carry the client’s store credentials. If your company signs its own deals with Spotify, Apple Music, an aggregator and the rest, and receives the stores’ statements itself, you run a client. Clients are set up with ReleaseAPI during onboarding, and there is no API to create one.

A client contains [tenants](https://docs.releaseapi.com/client-accounts.html#tenants), one catalog per label, imprint or client of yours. Your tenants work exactly like tenants under RecordJet: they upload files, write drafts, submit, manage payees and read analytics with tenant keys. The difference is who does the work around them. Under RecordJet, RecordJet does that work. On a client account, you do it yourself.

## What you take on

The API is the same either way. Only the operational work around it moves from RecordJet to you.

*Diagram: Who runs each layer: as a tenant under RecordJet, RecordJet runs store deals, delivery profiles, review, statements and store reporting, and you run your tenant and product. With your own client account you run every layer below the stores.* The API is the same in both models. What changes is who does the work between your tenants and the stores. The two middle rows show the difference. Under RecordJet, RecordJet does that work (blue). On a client account, you do it, and this page explains how.

| Job | Under RecordJet | In your client account | Guide |
| --- | --- | --- | --- |
| Store deals and delivery profiles | RecordJet’s | Your own contracts, DDEX party id and credentials | [Deliver to stores › Stores and providers](https://docs.releaseapi.com/delivery.html#stores-and-providers) |
| Tenants | Created by RecordJet on request | You create and structure them | [Create and manage tenants](https://docs.releaseapi.com/client-accounts.html#tenants) |
| Release review | RecordJet’s review team | You accept or reject every new release and every edit that needs a decision | [Submit and review › Decide reviews](https://docs.releaseapi.com/review.html#client-review) |
| Extra barcodes in the ledger | Mapped by RecordJet | You add manual GTIN mappings and resolve lines yourself | [Splits and the ledger › Map an extra GTIN](https://docs.releaseapi.com/ledger.html#manual-mappings) |
| GTIN and ISRC ranges | Always your own, per tenant, in both models | [Identifiers and artists](https://docs.releaseapi.com/identifiers.html) |  |

## Client keys

A client key is issued at the client level. It sees every tenant of the client, and it is the only kind of key that can call the [client-only endpoints](https://docs.releaseapi.com/client-accounts.html#client-only-endpoints). Everything else in the API works with either kind of key.

- **Name the tenant when you write.** A client key that creates something tenant-owned (a draft, a file upload, a customer, a range) must say which tenant it belongs to, usually as `tenantId` in the body. The error codes for a missing tenant are listed in [API basics](https://docs.releaseapi.com/api-basics.html#tenant-id-rules).
- **Filter when you read.** Lists return objects from every tenant. Pass `tenantId` to narrow them, and make sure the value is valid. A filter that can’t be parsed is ignored, so a broken `tenantId` returns every tenant’s objects.
- **Keep client keys few.** Give each system the narrowest key that works. Product code that serves one label should hold that tenant’s key. Reserve client keys for the operations on this page.
- **Your journal covers more.** A client key reads events for every tenant, plus events that only exist at client level: statement imports, statement and trend reports, trend imports and exports ordered with a client key. See [Events and webhooks](https://docs.releaseapi.com/events.html).

A tenant key on a client-only endpoint gets `401 UNAUTHORIZED`, which looks like a revoked key. See [API basics](https://docs.releaseapi.com/api-basics.html#scope-only-endpoints) for how scope and permission checks combine.

## Create and manage tenants

A client account creates its own tenants: one catalog per label, imprint or client of yours, each with its own keys, payees and event stream. Creating and listing tenants needs a client key, and creating also needs `TENANT_WRITE`, which only `ADMIN` holds. Under RecordJet, you don’t call these endpoints. RecordJet creates your tenant, and [Your account](https://docs.releaseapi.com/account.html) covers everything a tenant manages.

### Structure your account

A tenant is the unit of separation. Its data never leaks into another tenant, its keys can’t see anything else, and its fees and billing are set independently. Create one whenever a group of releases needs that boundary.

| You are | Create a tenant for |
| --- | --- |
| A distributor serving other labels | Each label you sign. Give the label its own tenant key if it integrates directly. |
| A platform for independent artists | Usually one tenant for the whole platform (or one per brand or plan), with a [customer](https://docs.releaseapi.com/royalties.html#customers-and-wallets) per artist. See [One tenant per artist, or one tenant with many customers?](https://docs.releaseapi.com/account.html#tenant-or-customer) |
| A label group | Each imprint that has its own accounting or its own team. |

Before its first release, every tenant needs its own customers and wallets, and its own GTIN and ISRC ranges, because a range belongs to a single tenant (see [Identifiers and artists](https://docs.releaseapi.com/identifiers.html)).

### Create a tenant

`POST /v1/tenants` — Client key · TENANT_WRITE

Send a contact email, a display name and the two default fees. The email must not belong to any other tenant on ReleaseAPI. The person behind that address becomes the tenant’s first `ADMIN` member. ReleaseAPI creates a user for them if they don’t have one yet and emails them: an invitation if they’re new, or a notice if they already have a login. The email is always sent, and you can’t turn it off.

> **Choose the contact address deliberately:** Whoever owns the address can sign in as the tenant’s `ADMIN`, which means they can issue keys, add members and take releases down. If the tenant’s owner shouldn’t have that, or shouldn’t hear from ReleaseAPI at all, use an address your own team controls. Because each tenant needs a unique address, a plus-addressed mailbox works well: `ops+lowtide@yourcompany.example`, `ops+harbor@yourcompany.example`.

`POST /v1/tenants`

**cURL**

```bash
curl https://api-sandbox.releaseapi.com/v1/tenants \
  -H "X-API-KEY: $RELEASEAPI_CLIENT_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "email": "label@lowtide.example",
    "displayName": "Lowtide Records",
    "webHookUrl": "https://hooks.lowtide.example/releaseapi",
    "clientDefaultFeePercentage": 0.15,
    "tenantDefaultFeePercentage": 0.2
  }'
```

**Node.js**

```javascript
const res = await fetch(`${BASE}/tenants`, {
  method: "POST",
  headers: { "X-API-KEY": process.env.RELEASEAPI_CLIENT_KEY, "Content-Type": "application/json" },
  body: JSON.stringify({
    email: "label@lowtide.example",
    displayName: "Lowtide Records",
    webHookUrl: "https://hooks.lowtide.example/releaseapi",
    clientDefaultFeePercentage: 0.15,
    tenantDefaultFeePercentage: 0.2,
  }),
});
const tenant = await res.json();
```

**Python**

```python
r = requests.post(f"{BASE}/tenants",
    headers={"X-API-KEY": os.environ["RELEASEAPI_CLIENT_KEY"]},
    json={
        "email": "label@lowtide.example",
        "displayName": "Lowtide Records",
        "webHookUrl": "https://hooks.lowtide.example/releaseapi",
        "clientDefaultFeePercentage": 0.15,
        "tenantDefaultFeePercentage": 0.2,
    })
tenant = r.json()
```

**Response**

```json
{
  "clientId": "7c4a91e2-5d3b-4f08-a6e1-93b2c0d4e517",
  "email": "label@lowtide.example",
  "displayName": "Lowtide Records",
  "webHookUrl": "https://hooks.lowtide.example/releaseapi",
  "accounting": {
    "clientDefaultFeePercentage": 0.15,
    "tenantDefaultFeePercentage": 0.2,
    "billingStatus": "UNBILLED",
    "monthlyFeeEur": 0,
    "insertedTrackEur": 0,
    "insertedVideoEur": 0,
    "hostedGbEur": 0,
    "priorityReviewEur": 0,
    "exportScannedGbEur": 0
  },
  "id": "b55ec853-f63b-4cb3-9c2f-868b4eb42f95",
  "createdAt": "2026-10-05T09:14:22.418Z"
}
```

The create response carries a few extra internal fields (journal watermarks, an internal number) that later reads leave out. Store the `id`, and re-read the tenant with `GET /v1/tenants/{tenantId}` if you keep a copy of the object.

- `email` (string, required) — The tenant’s contact address, which is also the first admin’s login. It must be unique across all tenants (`400 EMAIL_ALREADY_DEFINED`).
- `displayName` (string, required) — The name shown in the dashboard and on reports.
- `clientDefaultFeePercentage` (number, 0–1, required) — The share of this tenant’s revenue the client keeps. `0.15` means 15%.
- `tenantDefaultFeePercentage` (number, 0–1, required) — The share the tenant keeps of what remains, before paying its own customers.
- `webHookUrl` (string) — A public `http` or `https` URL that receives a ping when this tenant has new events. See [Events and webhooks](https://docs.releaseapi.com/events.html).

**Creating a tenant is not idempotent.** There is no idempotency key. If a create call times out, list tenants and look for the email before retrying. A second attempt with the same email fails with `EMAIL_ALREADY_DEFINED`, which also makes a blind retry safe.

### List and read tenants

List every tenant on your client, or read one by id.

**Endpoints**

- `GET /v1/tenants` — List tenants · client key
- `GET /v1/tenants/{tenantId}` — Read one tenant · client or own tenant key

Listing is for client keys. The list is paginated with `limit` (up to 100) and `offset`, sorted by creation time, oldest first. `q` filters by display name, matching any part of it regardless of case. A tenant key can read only its own tenant.

`GET /v1/tenants`

**cURL**

```bash
curl "https://api-sandbox.releaseapi.com/v1/tenants?q=lowtide&limit=20" \
  -H "X-API-KEY: $RELEASEAPI_CLIENT_KEY"
```

**Response**

```json
{
  "items": [
    {
      "clientId": "7c4a91e2-5d3b-4f08-a6e1-93b2c0d4e517",
      "email": "label@lowtide.example",
      "displayName": "Lowtide Records",
      "accounting": {
        "clientDefaultFeePercentage": 0.15,
        "tenantDefaultFeePercentage": 0.2,
        "billingStatus": "UNBILLED"
      },
      "id": "b55ec853-f63b-4cb3-9c2f-868b4eb42f95",
      "createdAt": "2026-10-05T09:14:22.418Z"
    }
  ],
  "hasMore": false,
  "limit": 20,
  "offset": 0
}
```

### Fees across your account

Each tenant carries two default fees, set when you create it: `clientDefaultFeePercentage`, your share as the client, and `tenantDefaultFeePercentage`, the tenant’s share of what remains. When a draft is accepted, the tenant’s current defaults are copied onto the release unless the draft sets its own `accounting.clientFeePercentage` or `accounting.tenantFeePercentage`. Changing a default affects releases accepted afterwards, not the ones already live.

*Diagram: Fees flow from the tenant defaults onto each release when it is accepted, and from the release into the ledger from the first of the next month. Changing a default only affects later acceptances; to change a live release, submit a fees-only edit.* A release keeps the fees it was accepted with. Changing a tenant default never affects live releases. An edit that changes the fees does, and the ledger uses the new fees from the first day of the next month.

To move live releases to new fees, edit each release: open an edit draft, set `accounting.clientFeePercentage` and `accounting.tenantFeePercentage`, and submit. An edit that changes only accounting is accepted automatically, without a reviewer, and the ledger applies the new fees from the first day of the next month. See [Manage live releases](https://docs.releaseapi.com/catalog.html) and [when changes take effect](https://docs.releaseapi.com/ledger.html#when-changes-take-effect). [How money flows](https://docs.releaseapi.com/royalties.html) walks through how the two fees compound.

After a tenant exists, its defaults, display name, contact email, avatar and webhook URL are changed in the dashboard, under the tenant’s settings. There is no public API for them.

### One webhook for every tenant

With many tenants, set one webhook on the *client* instead of one per tenant, in the client settings of the dashboard. A client webhook fires for events in every tenant, so you configure it once, and moving to a new host means changing one setting. When it’s pinged, your consumer reads the journal with a client key, or with each tenant’s key. See [Webhooks](https://docs.releaseapi.com/events.html#webhooks).

## Client-only endpoints

Every endpoint below accepts only a client key.

**Tenants**

- `POST /v1/tenants` — Create a tenant
- `GET /v1/tenants` — List tenants
- `PUT /v1/distribution/drafts/releases/{draftReleaseId}/review` — Decide a release
- `PUT /v1/distribution/drafts/videos/{draftVideoId}/review` — Decide a video
- `GET /v1/distribution/drafts/releases/{draftReleaseId}/changes` — Diff an edit against the live release
- `GET /v1/distribution/files/masters/{id}/log` — Processing log¹
- `POST /v1/distribution/ledger/releases` — Manual mapping; change it with `PUT` until it takes effect
- `POST /v1/distribution/ledger/videos` — Manual video mapping; change it with `PUT` until it takes effect
- `POST /v1/distribution/ledger/resolve-gtin` — Resolve a GTIN, plus `resolve-isrc`

¹ The same for `apple-masters`, `dolby-masters`, `booklets` and `motion-artwork`. For other file kinds, such as covers, a tenant key can read the log too.

Reading reports, the ledger, analytics and exports works with both kinds of key. A tenant key sees its own tenant, while a client key sees every tenant and can filter by `tenantId`.

## The client guides

One of the jobs is covered on this page: [Create and manage tenants](https://docs.releaseapi.com/client-accounts.html#tenants). Deciding reviews lives at the end of [Submit and review](https://docs.releaseapi.com/review.html), under “Client accounts: decide reviews”.

- [Decide reviews](https://docs.releaseapi.com/review.html#client-review): Accept or reject your tenants’ releases and videos, and record rejection reasons.

## Errors

These are the errors you can get when you create tenants. The general error format is in [API basics](https://docs.releaseapi.com/api-basics.html#errors).

### Tenant errors

| Code | Status | Cause |
| --- | --- | --- |
| `EMAIL_ALREADY_DEFINED` | 400 | Another tenant already uses this email. |
| `INVALID_FEE_PERCENTAGE` | 400 | A fee is outside 0–1. Send `0.15`, not `15`. |
| `INVALID_URL`, `BLOCKED_URL_HOST`, `URL_HOST_UNRESOLVABLE`, … | 400 | The webhook URL isn’t a public http(s) address. |
| `UNAUTHORIZED` | 401 | A tenant key called `GET` or `POST /v1/tenants`. |
| `PERMISSION_DENIED` | 403 | The key’s role lacks `TENANT_WRITE`, for example a `MEMBER` key creating a tenant. |

## Next steps

- [API basics](https://docs.releaseapi.com/api-basics.html): Issue a key per tenant and keep client keys few.
- [Events and webhooks](https://docs.releaseapi.com/events.html): Set up one client-level webhook and journal consumer that covers every tenant.
- [Troubleshooting](https://docs.releaseapi.com/troubleshooting.html#client-accounts): Client-only problems have their own section at the end.
