API basics

This page collects the rules every endpoint follows. The first half covers access (environments, API keys, scopes and roles), and the second covers requests: their shape and errors, paging, units, and how to retry safely.

At a glance

Environments

ReleaseAPI runs two separate environments. They don’t share data, accounts or keys, so a sandbox key returns 401 in production, and a production key returns 401 in sandbox.

EnvironmentAPI base URLDashboard
Sandboxhttps://api-sandbox.releaseapi.com/v1app-sandbox.releaseapi.com
Productionhttps://api.releaseapi.com/v1app.releaseapi.com

Use sandbox to build and test. Nothing you do there reaches a store, whereas production means real releases, real deliveries and real money. Both run the same API, so you build against sandbox and then switch the base URL and key. ReleaseAPI and releaseapi.com (API and dashboard) are the same product, built by RecordJet. There’s no self-service sign-up.

Getting access

Sandbox never reaches a store. Accepted releases are never delivered (their sync stays queued), no store data is imported, and test data can be removed. See sandbox behaviour for the full list.

API keys

Send the key in the X-API-KEY header on every request. A key is a UUID. Any other value, a missing header, or an unknown key gets the same answer: 401 UNAUTHORIZED.

curl https://api-sandbox.releaseapi.com/v1/me/token \
  -H "X-API-KEY: $RELEASEAPI_KEY"
const BASE = "https://api-sandbox.releaseapi.com/v1";

const res = await fetch(`${BASE}/me/token`, {
  headers: { "X-API-KEY": process.env.RELEASEAPI_KEY },
});
if (!res.ok) throw new Error(`Key rejected: ${res.status}`);
const me = await res.json();
console.log(me.tenant?.displayName ?? me.client.displayName, me.roles);
import os, requests

BASE = "https://api-sandbox.releaseapi.com/v1"

r = requests.get(f"{BASE}/me/token", headers={"X-API-KEY": os.environ["RELEASEAPI_KEY"]})
r.raise_for_status()
me = r.json()
print(me.get("tenant", me["client"])["displayName"], me["roles"])
{
  "token": {
    "clientId": "7c4a91e2-5d3b-4f08-a6e1-93b2c0d4e517",
    "tenantId": "b55ec853-f63b-4cb3-9c2f-868b4eb42f95",
    "description": "backend production",
    "accessRights": ["MEMBER"],
    "expiresAt": null,
    "lastUsedAt": "2026-10-04T09:12:40.118Z",
    "id": "0f6a2b9e-6c1d-4e8a-9a51-2b7f3d0c8e44",
    "createdAt": "2026-09-01T10:00:00Z"
  },
  "client": {
    "email": "distribution@recordjet.example",
    "displayName": "RecordJet",
    "id": "7c4a91e2-5d3b-4f08-a6e1-93b2c0d4e517",
    "createdAt": "2024-02-01T08:00:00Z"
  },
  "tenant": {
    "clientId": "7c4a91e2-5d3b-4f08-a6e1-93b2c0d4e517",
    "email": "label@lowtide.example",
    "displayName": "Lowtide Records",
    "webHookUrl": null,
    "avatarFileId": null,
    "accounting": {
      "clientDefaultFeePercentage": 0.15,
      "tenantDefaultFeePercentage": 0.2,
      "billingStatus": "UNBILLED"
    },
    "id": "b55ec853-f63b-4cb3-9c2f-868b4eb42f95",
    "createdAt": "2025-03-10T12:30:00Z"
  },
  "roles": ["MEMBER"],
  "permissions": [
    "ACCOUNTING_READ", "ACCOUNTING_WRITE", "API_TOKEN_READ",
    "ARTIST_READ", "ARTIST_WRITE", "CATALOG_READ", "…"
  ]
}

Make GET /v1/me/token your first call with a new key. Any valid key may call it, and it returns the key, its client and tenant, its roles and every permission they grant. Read the roles from token.accessRights, which every build returns. The top-level roles and permissions arrays and the tenant’s billing fields are newer and can be missing on an older deployment such as sandbox. If the response has no tenant, you hold a client key. As a tenant under RecordJet, client is RecordJet.

When a key is refused

StatusmessageCause
401UNAUTHORIZEDNo header, not a UUID, unknown or deleted key, or a key from the other environment. Also returned when the endpoint doesn’t exist for your key’s scope.
401API_TOKEN_DISABLEDThe key has been disabled. Re-enable it or use a different key.
401API_TOKEN_EXPIREDThe key’s expiresAt date has passed.
403PERMISSION_DENIEDThe key is valid, but its role doesn’t allow this action.

Scopes: client keys and tenant keys

The client holds the store contracts (for most integrators, RecordJet). Inside it sit tenants, each a separate catalog (two ways to use ReleaseAPI). A key belongs to exactly one level, which determines what it can see:

Tenant key

A tenant key sees one tenant’s catalog and nothing else. The tenant is implied on every call, so you never send tenantId. As a tenant under RecordJet, this is the only kind of key you have, and the right one for your product backend.

Client key

Client keys exist only for client accounts. A client key sees every tenant in the client. Lists accept a ?tenantId= filter, and you must name the tenant in the body when you create something that belongs to one. Use it for operations tooling, reviews, statement imports and account administration.

In these docs, $RELEASEAPI_KEY (process.env.RELEASEAPI_KEY, os.environ["RELEASEAPI_KEY"]) is always your tenant key. Examples in the “Client accounts:” sections use $RELEASEAPI_CLIENT_KEY for a client key instead. Set it only if you run a client account.

A client contains tenants. A client key sees every tenant; a tenant key sees only its own tenant. Clientholds the store deals (RecordJet for most integrators) Client key sees every tenant Tenant Ayour label’s catalog Tenant key · MEMBER Tenant key · READER Tenant Banother label or customer Tenant key · ADMIN more tenants each sealed from the others
Every key belongs to one level. A tenant key sees only its own tenant and never needs tenantId. A client key sees every tenant and names the tenant when it writes.

The tenantId rules

With a tenant key, leave tenantId out and the tenant is implied. The rules matter for client accounts.

There is no tenant header. A client key can’t act as a tenant, so it names the tenant in the body or filters by it instead. The error for a missing or wrong tenantId has different names on different endpoints, so treat each group below as one case.

A client key wrote something tenant-owned without naming the tenant:

CodeReturned by
TENANT_ID_NEEDED_FOR_CLIENT_REQUESTFile uploads, customers, wallets, GTIN and ISRC ranges, VAT checks
TENANT_ID_NEEDED_FOR_CLIENT_SCOPESingle-object draft writes: release, track, booklet, video
SAME_TENANT_ID_NEEDED_ON_ALL_REQUESTSThe full-release draft write
CLIENT_REQUEST_NEEDS_TENANT_ID_IN_BODYPreview links

A tenant key named a different tenant:

CodeReturned by
TENANT_ID_MUST_BE_EMPTY_OR_SAME_AS_AUTH_SCOPEThe full-release draft write
TENANT_ID_MUST_BE_EMPTY_OR_AS_AUTH_SCOPESingle-object draft writes: release, track, booklet, video

Endpoints that exist for one scope only

Some operations exist at one level only, and the wrong kind of key gets 401 UNAUTHORIZED, not 403. A tenant key does everything a catalog needs (files, drafts, submits, takedowns, customers, wallets, splits, analytics), but not the operations below. For a tenant under RecordJet that’s by design, because RecordJet does this work for you.

Client key onlyGuide
List and create tenantsClient accounts
Decide a review (accept or reject a draft); read an edit draft’s diff (GET …/drafts/releases/{id}/changes)Submit and review › Decide reviews
Manual ledger mappings; resolving a GTIN or ISRC in the ledger (POST …/ledger/resolve-gtin, …/resolve-isrc). A tenant key reads its own ledger commits with GET …/ledger/releases and GET …/ledger/wallets, filtered by releaseId, gtin or trackIdSplits and the ledger

Each guide repeats the rule where it applies, and Client accounts walks through the client side as a whole.

If a key works for GET /v1/me/token but one endpoint returns 401, that endpoint is almost certainly reserved for the other scope.

Authorization order: key check returns 401, permission check returns 403, scope check returns 401, then the request runs. RequestX-API-KEY header Key accepted?known UUID,enabled, unexpired no 401UNAUTHORIZED Role allows it?permission check no 403PERMISSION_DENIED Open to the scope?client or tenantendpoint no 401UNAUTHORIZED Request runstenantId rules next
ReleaseAPI checks the permission before the scope. A READER key on a client-only write gets 403. The 401 for the wrong scope only appears once the role would allow the call. A disabled or expired key gets 401 with API_TOKEN_DISABLED or API_TOKEN_EXPIRED.

Roles and permissions

A key carries one or more roles in accessRights. Each role grants a fixed set of permissions, and each endpoint requires one (the API reference shows “Requires CATALOG_WRITE”). A missing permission gets 403 PERMISSION_DENIED.

RoleGrantsGive it to
ADMINEvery permission, including minting keys, changing members and creating tenants.Automation that administers your tenant (keys, members). Keep the number of these keys small.
MEMBEREverything except API_TOKEN_WRITE, MEMBERSHIP_WRITE, TENANT_WRITE and CLIENT_WRITE.Your product backend. It can write drafts, upload files, deliver and run accounting, but it can’t create keys or change access.
READEREvery *_READ permission, plus four grants the dashboard needs for a signed-in session (SESSION, CONDUCTOR_USE, PUSH_WRITE, AVATAR_WRITE). None of them changes catalog, money or account data.Dashboards and read-only reporting. A READER key can list, read and download exports but can’t order or delete one, which needs REPORTING_WRITE. Give a pipeline that orders exports a MEMBER key.
All permissions and the roles that hold them

ADMIN holds every permission. MEMBER holds every permission except the four marked admin-only. READER holds the *_READ half of each pair and the dashboard session grants. GET /v1/me/token lists exactly what your key has.

PermissionAllowsREADER
DRAFT_READ · DRAFT_WRITERead; create, change and submit draft releases, tracks, booklets and videosRead
CATALOG_READ · CATALOG_WRITERead; change catalog releases and videos (takedowns, syncs), import a catalogRead
FILE_READ · FILE_WRITERead; upload or delete filesRead
DELIVERY_READ · DELIVERY_WRITERead; change delivery requestsRead
DELIVERY_PROFILE_READ · DELIVERY_PROFILE_WRITERead; create or change delivery profilesRead
ARTIST_READ · ARTIST_WRITELook up artists and store ids; link or create artistsRead
IDENTIFIER_READ · IDENTIFIER_WRITERead GTIN and ISRC ranges; create, allocate or delete themRead
LEDGER_READ · LEDGER_WRITERead ledger commits (release, wallet and video); change ledger commits. With a client key, LEDGER_READ also covers resolving a GTIN or ISRC; a tenant key reads the commits instead (GET …/ledger/releases?releaseId=, GET …/ledger/wallets?releaseId=)Read
ACCOUNTING_READ · ACCOUNTING_WRITERead customers, wallets and charges; change customers and walletsRead
MARKETING_READ · MARKETING_WRITERead; create or delete preview linksRead
REPORTING_READ · REPORTING_WRITERead analytics, reports and exports; order exports, import reporting data, change reporting configsRead
FINANCIAL_READ · FINANCIAL_WRITERead VAT checks; create themRead
CLIENT_READ · CLIENT_WRITERead the client; change its profile (write is admin-only)Read
TENANT_READ · TENANT_WRITERead tenants; create a tenant or change its profile (write is admin-only)Read
MEMBERSHIP_READ · MEMBERSHIP_WRITERead memberships; add, change or remove them (write is admin-only)Read
API_TOKEN_READ · API_TOKEN_WRITERead keys; create, change or delete them (write is admin-only)Read
USER_READ · USER_WRITERead dashboard users; change a user’s display name or avatarRead
JOURNAL_READRead the journalYes
ENUM_READRead reference dataYes
AVATAR_READRead avatarsYes
SESSION, CONDUCTOR_USE, PUSH_WRITE, AVATAR_WRITEDashboard session grants: live updates, push registration and avatar uploads. Integrations don’t need them.Yes

A few more permissions exist for dashboard-only features. You may see them in GET /v1/me/token, and you can ignore them.

A key with several roles gets all of their permissions. A key created without roles is an ADMIN key, so always pass roles explicitly.

Create and manage keys

Create keys in the dashboard under your client or tenant settings, or through the API with a key that holds API_TOKEN_WRITE (an ADMIN key). A new key always has the same scope as the key that creates it. A tenant key mints tenant keys, and a client key mints client keys.

curl https://api-sandbox.releaseapi.com/v1/tokens \
  -H "X-API-KEY: $RELEASEAPI_ADMIN_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "description": "reporting dashboard",
    "roles": ["READER"],
    "expiresAt": "2027-10-01"
  }'
const res = await fetch(`${BASE}/tokens`, {
  method: "POST",
  headers: { "X-API-KEY": process.env.RELEASEAPI_ADMIN_KEY, "Content-Type": "application/json" },
  body: JSON.stringify({
    description: "reporting dashboard",
    roles: ["READER"],
    expiresAt: "2027-10-01",
  }),
});
const { tokenId, tokenSecret } = await res.json();
// Store tokenSecret in your secret manager now. It is never shown again.
r = requests.post(f"{BASE}/tokens",
                  headers={"X-API-KEY": os.environ["RELEASEAPI_ADMIN_KEY"]},
                  json={"description": "reporting dashboard",
                        "roles": ["READER"],
                        "expiresAt": "2027-10-01"})
token = r.json()  # {"tokenId": ..., "tokenSecret": ...}
{
  "tokenId": "4a0c7d2e-91b3-4f6a-8e15-0d2c3b4a5e61",
  "tokenSecret": "9d3f6a7e-2b41-4c1a-8f0e-6a5b4c3d2e1f"
}
descriptionstring

What the key is for. Shown in the dashboard. Under 1,000 characters.

rolesarray of enum

Defaults to ["ADMIN"] when omitted. An unknown role name gets 400 UNKNOWN_ROLE. An empty array is accepted and creates a key with no permissions: every call except GET /v1/me/token answers 403.

ADMINMEMBERREADER
expiresAtdate

A calendar date, YYYY-MM-DD. The key stops working at 00:00 UTC on that date, not at the end of it.

The secret is shown once

ReleaseAPI stores only a hash of tokenSecret. Copy it into your secret manager straight from the response. tokenId isn’t a credential. It identifies the key for management calls and when you ask your RecordJet contact about a key.

Key management endpoints

Keys
GET/v1/me/tokenInspect the calling key
POST/v1/tokensCreate a key in your scope
GET/v1/tokensList keys (client keys also see tenant keys)
GET/v1/tokens/{tokenId}Read one key
PUT/v1/tokens/{tokenId}/access-rightsReplace roles: {"roles": [...]}
PUT/v1/tokens/{tokenId}/disabledDisable or re-enable: {"disabled": true}
DELETE/v1/tokens/{tokenId}Delete permanently

Role changes, disabling and deleting take effect at once. lastUsedAt updates at most every 10 minutes, which is enough to spot unused keys. A client key can read, re-role, disable and delete every key in the client, but creates only client keys. Tenant keys are created with a tenant key or in the dashboard. The API reference has the full request and response schemas.

Rotate a key without downtime

Keys don’t expire unless you set expiresAt, so rotate them on your own schedule. To rotate without a single failed request, run the old and the new key side by side for a while:

  1. Create the replacement

    Mint a new key with the same roles and a description that says what it replaces.

  2. Deploy it

    Roll the new secret out to every service that uses the old one.

  3. Disable the old key

    PUT /v1/tokens/{tokenId}/disabled with {"disabled": true}. If something breaks, re-enable it in one call.

  4. Delete it

    Once lastUsedAt has stopped moving for a few days, delete the old key.

Keep keys safe

If your artists log in to your product

A tenant key sees the whole tenant. ReleaseAPI keeps tenants apart, but it doesn’t know which of your users may see which customer, release or wallet inside the tenant, because customers have no login of their own. In a portal where several artists or labels share one tenant, your backend is the only guard.

Requests and responses

Check that an object exists

HEAD is the cheapest way to check that a file still exists or that a draft id is already in use. It returns 200 with an empty body if the object exists and your key can see it, and 404 otherwise. It needs the same read permission as the GET. Most single-object endpoints answer it: drafts and catalog objects, customers and wallets, every file kind, delivery requests, trends configs and daily imports, statement imports and exports.

curl -I https://api-sandbox.releaseapi.com/v1/distribution/drafts/full-releases/$DRAFT_ID \
  -H "X-API-KEY: $RELEASEAPI_KEY"

Errors

Errors are JSON objects with "status": "error" and a machine-readable code. The code is an UPPER_SNAKE string such as RELEASE_LOCKED_IN_REVIEW. Branch on the code, never on English text.

{
  "status": "error",
  "message": "TENANT_ID_MUST_BE_EMPTY_OR_SAME_AS_AUTH_SCOPE"
}

Most errors put the code in message, so read message, then error, then exception:

CaseWhere the code is
Body isn’t valid JSON or doesn’t match the schemaerror: PARSING_FAILED or DECODING_FAILED; details says where decoding stopped
A value rejected while the body is read (unknown role, fee outside 0–1)Can be exception
Paging parameters out of range (INVALID_LIMIT, INVALID_OFFSET, INVALID_IDS_LIST_LENGTH)exception
415 and a malformed path id (400)No code: error is an English sentence, such as Cannot parse parameter releaseId as UUID: …. Branch on the status.
An unknown path (404)No code: {"status": "error", "error": ""}.
413Not JSON. The gateway returns a small HTML page. Branch on the status.
An unknown sortBy field (400)message is key not found: followed by the field name.
An unknown code in the pathNone: a bare {"status": "error"} with 400
{
  "status": "error",
  "error": "DECODING_FAILED",
  "details": "DownField(release), DownField(details), DownField(title)"
}
// path may start with or without /v1: "/me/token" and "/v1/me/token" both work
async function call(path, init = {}) {
  const res = await fetch(BASE + path.replace(/^\/v1(?=\/)/, ""), {
    ...init,
    headers: {
      "X-API-KEY": process.env.RELEASEAPI_KEY,
      "Content-Type": "application/json",
      ...init.headers,
    },
  });
  if (res.ok) return res.json();
  const body = await res.json().catch(() => ({}));
  const code = body.message ?? body.error ?? body.exception ?? `HTTP_${res.status}`;
  throw Object.assign(new Error(code), { status: res.status, code, body });
}
class ReleaseAPIError(Exception):
    def __init__(self, status, code, body):
        super().__init__(code)
        self.status, self.code, self.body = status, code, body

def call(method, path, **kw):
    if path.startswith("/v1/"):  # "/me/token" and "/v1/me/token" both work
        path = path[3:]
    r = requests.request(method, f"{BASE}{path}",
                         headers={"X-API-KEY": os.environ["RELEASEAPI_KEY"]}, **kw)
    if r.ok:
        return r.json()
    try:
        body = r.json()
    except ValueError:
        body = {}
    code = (body.get("message") or body.get("error") or body.get("exception")
            or f"HTTP_{r.status_code}")
    raise ReleaseAPIError(r.status_code, code, body)
// apiError covers every error shape: the code is in Message, Error or Exception.
type apiError struct {
	Status    string          `json:"status"`
	Message   string          `json:"message,omitempty"`
	Error     string          `json:"error,omitempty"`
	Exception string          `json:"exception,omitempty"`
	Details   json.RawMessage `json:"details,omitempty"`
}

func errorCode(httpStatus int, body []byte) string {
	var e apiError
	_ = json.Unmarshal(body, &e) // a non-JSON body leaves every field empty
	for _, c := range []string{e.Message, e.Error, e.Exception} {
		if c != "" {
			return c
		}
	}
	return fmt.Sprintf("HTTP_%d", httpStatus)
}

Treat every field as optional, and keep details as raw JSON, because it is a string for decoding errors and can be an object elsewhere. A 404 body is {"status": "not found"} with no code, so the helpers turn it into HTTP_404.

Status codes

StatusWhenWhat to do
200Success. The body is the object, or {"status": "success"} for actions and deletes that return nothing else.—
400The request breaks a rule: validation, a business rule, bad paging parameters, a wrong tenantId.Fix the request. Retrying the same body won’t help.
401Missing, unknown, disabled or expired key, or an endpoint that doesn’t exist for your key’s scope.Check the key with GET /v1/me/token, then the scope.
403PERMISSION_DENIED: the key is valid, but its role lacks the permission.Use a key with a stronger role.
404{"status": "not found"}. The object doesn’t exist or isn’t visible to your key.Check the id and the tenant. A tenant key never sees another tenant’s objects.
409Conflict with the current state, for example RELEASE_LOCKED_IN_REVIEW, COVER_FILE_STILL_IN_USE or IMPORT_FOR_MONTH_ALREADY_EXISTS.Read the state, wait or change it, then try again.
413Body over about 2 MB.Split the request. Upload files through the file endpoints.
415Missing or wrong Content-Type.Send application/json.
429Too many requests, or a store’s own API is throttling ReleaseAPI (SPOTIFY_RATE_LIMITED).Back off and retry. See rate limits.
500Unexpected server error.Retry with backoff. If it persists, send the request and the time to your RecordJet contact (or to ReleaseAPI, if you run a client account).
502 / 503A dependency is unavailable, for example SPOTIFY_UNAVAILABLE when Spotify’s API is down.Retry with backoff.
401 versus 403

403 means “this key may not do that”. 401 means “this key isn’t valid here”, which includes a perfectly good tenant key calling a client-only endpoint, and the other way round.

The permission is checked before the scope. A READER tenant key calling a client-only write endpoint therefore gets 403 PERMISSION_DENIED, not 401. You only see the scope’s 401 once the key’s role would allow the call.

Pagination

List endpoints use offset pagination and share the same parameters:

limitinteger, 1–100

Page size. Defaults to 100. Outside the range gets 400 INVALID_LIMIT.

offsetinteger, ≥ 0

How many items to skip. Negative values get 400 INVALID_OFFSET.

sortBystring

A camelCase field of the returned object; the default depends on the endpoint (default order). A field the list can’t sort by returns 400 with "message": "key not found: …".

sortOrderenum

Most lists default to desc, newest first; a few default to asc (see below). Casing doesn’t matter. Once you send sortOrder, any value other than desc means asc.

ascdesc
idscomma-separated UUIDs

Fetch specific objects in one call. Up to 100 ids, or you get 400 INVALID_IDS_LIST_LENGTH.

qstring

Free-text search. What it matches is described on each endpoint.

tenantIduuid

Client keys only: limit the list to one tenant.

{
  "items": [
    {
      "id": "0b1c2d3e-4f50-4a61-8b72-93c4d5e6f708",
      "externalId": "artist-4711",
      "…": "…"
    }
  ],
  "hasMore": true,
  "limit": 100,
  "offset": 0
}

Keep requesting with offset += limit while hasMore is true. hasMore is exact, so don’t infer the end from a short page.

async function* listAll(path, params = {}) {
  for (let offset = 0; ; offset += 100) {
    const qs = new URLSearchParams({
      ...params, limit: 100, offset, sortBy: "createdAt", sortOrder: "asc",
    });
    const page = await call(`${path}?${qs}`);
    yield* page.items;
    if (!page.hasMore) return;
  }
}

for await (const customer of listAll("/distribution/accounting/customers")) {
  console.log(customer.externalId);
}
def list_all(path, **params):
    offset = 0
    while True:
        page = call("GET", path, params={**params, "limit": 100, "offset": offset,
                                         "sortBy": "createdAt", "sortOrder": "asc"})
        yield from page["items"]
        if not page["hasMore"]:
            return
        offset += 100

for customer in list_all("/distribution/accounting/customers"):
    print(customer["externalId"])

Default order

When you send neither sortBy nor sortOrder, lists come back in this order:

ListsDefault order
Customers, wallets, every file kind, preview links, exports, ledger commits (releases, wallets, videos), statement reports, trend reports, trends configscreatedAt, newest first
Catalog releases, full releases and videosRelease date (releaseDateTime), newest first; then createdAt, newest first
Draft releases and draft videosRelease date (distributionReleaseDateTime), newest first; then createdAt, newest first
Statement imports, trends daily importsreportedAt, newest first; then createdAt, newest first
Delivery requestsfinishedAt, newest first; then createdAt, newest first
Catalog tracksVolume number, then track number, ascending
API keys, catalog booklets, delivery profiles, VAT checkscreatedAt, oldest first
Tenants, user membershipsAlways createdAt, oldest first. These two ignore sortBy and sortOrder.

If you send sortBy without sortOrder, the list keeps its default direction from the table.

For a full read, send sortBy=createdAt&sortOrder=asc (the walkers above do). In newest-first order, every object created while you page pushes the rest down, so you read some items twice. In oldest-first order, new objects are added at the end, so the pages you have already read don’t shift. A deletion can still shift the list, so treat a full read as a snapshot and follow the journal afterwards.

Filters that can’t be parsed are ignored, not rejected

That covers an unknown enum value (?status=SUCESS), a malformed id (?tenantId=lowtide), a date in the wrong format (?dateFrom=05.10.2026) and a non-numeric limit. Each returns the list as if you hadn’t sent that filter. With a client key, a broken tenantId therefore returns every tenant’s objects. Malformed entries inside ids= are dropped from the list. Validate parameters on your side, and check enum values against reference data, before you send them.

A few endpoints return a plain array instead of a page: the journal (up to 100 events per call), reference data and charge reports. Each guide says so.

Ids and your own references

Dates and times

KindFormatExample
TimestampISO 8601 in UTC. Precision varies between milliseconds and microseconds.2026-10-05T07:31:02.114210Z
Calendar dateYYYY-MM-DD, no time zone2026-11-20
MonthYYYY-MM in bodies; integers in paths2026-09, /charge/monthly/2026/9

Parse timestamps with a real ISO 8601 parser, because the number of fractional digits varies. Release dates are calendar dates, and each store decides at what local time a release appears. ReleaseAPI’s own clock is UTC: scheduled jobs run on UTC, and dated rules such as ledger effective dates use the UTC calendar date.

Money, fees and shares

Numbers that represent money come in four forms. Which one a field uses depends on what it’s for:

WhereUnitExample
Revenue and earnings: statements, analytics, exports, ledger amountsInteger nano-euros: billionths of a euro1230000000 = €1.23
Billing: charges and invoices, fields ending in Eur such as totalEurDecimal euros with up to four decimal places, each line rounded half-up before it is added to the total881.4091 = €881.41
Fees such as tenantFeePercentageDecimal fraction from 0 to 10.2 = 20%
Revenue splits: sharePerMioInteger parts per million; a rule’s shares add up to 1,000,000520000 = 52%
Never sum money as floats

A JavaScript number holds integers exactly up to 253, about €9 million in nano-euros. Single tracks, releases and wallets stay far below that, but totals for a whole client or a large tenant can exceed it. Parse those with a lossless JSON parser (for example json-bigint) into BigInt, and divide by 109 only for display. Python’s integers have no such limit. How money flows walks through the calculation.

Read fees as exact decimals. Fees arrive as JSON numbers but are calculated as exact decimals, never as binary floats, and the API doesn’t cap how many decimal places you send. Parse them losslessly so 0.15 stays 0.15. In Python, use json.loads(text, parse_float=Decimal) (or r.json(parse_float=Decimal)), and in JavaScript a decimal library. Display fields ending in _fee_per_mio are rounded to whole parts per million, so don’t recompute money from them.

Codes and enums

Countries are ISO 3166-1 alpha-2 (DE), languages are ISO 639-1 in upper case (EN), and stores, genres and contributor roles are UPPER_SNAKE codes. Fetch the current lists from reference data rather than hard-coding them, because stores and genres change.

Retries and idempotency

There’s no idempotency-key header. Retry safety comes from how each kind of call is designed:

Kind of callSafe to retry?Why
GET, HEADYesReads only.
PUT to an id you chose (drafts, tracks)YesThe write replaces the whole object, so the same body gives the same result however often you send it. Send the complete object every time, because anything you leave out is removed.
PUT on a sub-resource (…/status, …/sync-request)MostlySets a state. A repeat usually sets the same state again, but some endpoints refuse a repeat while the first request is pending. For example, a second …/sync-request returns SYNC_REQUEST_ALREADY_SET. Treat that as success.
POST that creates (customers, wallets, keys, exports)NoA retry after a timeout can create a second object. Set externalId, then look it up with ?externalId= before you retry.
DELETEYesA second delete returns 404. Treat that as done.

Retry 429, 500, 502, 503 and network errors with exponential backoff and jitter, for example 1, 2, 4 and 8 seconds. Don’t retry 400, 401, 403 or 404. Retry a 409 only after the state that caused it has changed.

Retry decision: 2xx is done; 429, 5xx and network errors back off and retry; 409 retries only after the state changes; 400, 401, 403 and 404 are not retried. A call returns or the network fails 2xx Done use the result 429 · 500 · 502 · 503 network error, timeout Back off and retry 1 · 2 · 4 · 8 s + jitter 409 state conflict Retry after the state changes SYNC_REQUEST_ALREADY_SET = done 400 · 401 · 403 · 404 Don’t retry fix the request or the key
Only transient failures are retried. Before retrying a POST that creates something, look it up by externalId first so a timeout doesn’t leave you with two objects.

Rate limits

A 429 Too Many Requests means you’re sending requests too quickly. Back off exponentially and retry. Some endpoints also return 429 when a store’s own API throttles ReleaseAPI. These practices help you avoid it:

Sandbox behaviour

Sandbox runs the same code as production, but it never touches the outside world:

Validation, the catalog, the ledger, the journal and webhooks behave as in production, which is enough to test the happy path end to end. Rejections, delivery failures and retries can’t be triggered on demand, so cover your handling of them with tests against recorded events from the event catalog.

Generate a client

There is no official client library. Generate one from the OpenAPI document (openapi/releaseapi-openapi.yml, OpenAPI 3.0) with any generator you like. OpenAPI Generator covers most languages. The document lists the production, staging and sandbox servers and one security scheme, ApiKeyAuth, which sends your key in the X-API-KEY header.

npx @openapitools/openapi-generator-cli generate \
  -i https://docs.releaseapi.com/openapi/releaseapi-openapi.yml \
  -g typescript-fetch \
  -o ./releaseapi-client
npx @openapitools/openapi-generator-cli generate \
  -i https://docs.releaseapi.com/openapi/releaseapi-openapi.yml \
  -g python \
  -o ./releaseapi-client-python \
  --additional-properties=packageName=releaseapi_client

Point the generated client at sandbox and give it your key:

import { Configuration } from "./releaseapi-client";

const config = new Configuration({
  basePath: "https://api-sandbox.releaseapi.com/v1",
  apiKey: process.env.RELEASEAPI_KEY,
});
// Pass `config` to the generated API classes.
import os
import releaseapi_client

config = releaseapi_client.Configuration(
    host="https://api-sandbox.releaseapi.com/v1",
    api_key={"ApiKeyAuth": os.environ["RELEASEAPI_KEY"]},
)
client = releaseapi_client.ApiClient(config)

Money amounts in the generated models are integers in nano-euros (see Money, fees and shares).

Next steps

Quickstart

Use your new key to take a single from files to stores.

Start building →

Events and webhooks

Follow every change in your account from one cursor.

Read the guide →

Your account

Manage your tenant and team, see what each role can do, and check your billing.

Read the guide →

Reference data

Look up stores, genres, languages, roles and every other code list.

Browse the lists →