# The music distribution and royalties backend behind your product.

> Deliver releases to Spotify, Apple Music and 40+ other stores, decide who earns what, and show your artists their streams and money — all through one API that your own app sits on top of.

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

[Ship your first release →](https://docs.releaseapi.com/quickstart.html) · [How ReleaseAPI works](https://docs.releaseapi.com/concepts.html) · [API reference](https://docs.releaseapi.com/openapi/index.html)

## What you can build

Labels, distributors and music-tech startups run ReleaseAPI behind their own product. Their users only ever see that product, while ReleaseAPI quietly handles the distribution work behind the scenes.

ReleaseAPI is RecordJet’s API, available at `releaseapi.com`. Most teams use it as a **tenant** of RecordJet. If RecordJet gave you your account, that’s you. RecordJet brings the store deals, reviews your releases and imports the store statements, so your team can focus on the product. Companies with their own store deals run a client account instead; [Two ways to use ReleaseAPI](https://docs.releaseapi.com/concepts.html#two-ways) compares the two.

The API is organised around four jobs:

- [Releases](https://docs.releaseapi.com/drafts.html): Upload artwork and masters, describe the release, pass review, and ReleaseAPI delivers it to every store you picked — then keeps the stores in step with every later edit or takedown.
- [Royalties](https://docs.releaseapi.com/royalties.html): Model your payees as customers and wallets, attach splits to every track, and see each monthly store statement land in the right wallet, with the fees taken off first.
- [Analytics](https://docs.releaseapi.com/analytics.html): Get daily streams and estimated earnings per release, track, customer or wallet, ready to chart in your app. Order CSV exports for finance, or pull the raw files into your warehouse.
- [Integration and account](https://docs.releaseapi.com/api-basics.html): Scope API keys to exactly what each system needs, bring your team into the dashboard, follow every outcome on the event journal, and keep an eye on usage and billing.

## The whole flow in one picture

A release travels left to right, from your files to the stores. Money and data come back right to left, from the stores to your users. Every step along the way writes an event to the journal, so your backend always knows what happened.

*Diagram: Files become a draft, pass review and become a catalog release that is delivered to stores. Store reports flow back through the ledger into wallets and analytics. Every step writes a journal event.* Green marks the two objects your users care about most: the live release and the wallet that collects their share.

## Start here

- [Quickstart](https://docs.releaseapi.com/quickstart.html): Register your code ranges, upload a cover and a master, write a single, submit it and watch it go out. It takes about twenty minutes in sandbox.
- [How ReleaseAPI works](https://docs.releaseapi.com/concepts.html): Tenants, drafts, catalog releases, delivery requests and wallets, and how they fit together, all on one page.
- [API basics](https://docs.releaseapi.com/api-basics.html): How tenant keys and roles work, what errors look like, and the one call that tells you who you are.
- [Events and webhooks](https://docs.releaseapi.com/events.html): Most work finishes after the request returns. Once you’ve built the journal loop, you can reuse it for every outcome.

## Find your way

The documentation follows the order you’ll build in, with one page per job. Each guide starts with the tasks and ends with its reference detail. Most readers work as a tenant under RecordJet, so anything only a client account does sits at the end of the page it belongs to.

- [Integration essentials](https://docs.releaseapi.com/api-basics.html): The ground rules that apply to every call, and how to find out when work finishes in the background. [API basics](https://docs.releaseapi.com/api-basics.html) · [Events and webhooks](https://docs.releaseapi.com/events.html)
- [Releases](https://docs.releaseapi.com/files.html): Everything from uploading your first file to a release that’s live in the stores, and how to change it later. [Upload files](https://docs.releaseapi.com/files.html) · [Build a release](https://docs.releaseapi.com/drafts.html) · [Identifiers and artists](https://docs.releaseapi.com/identifiers.html) · [Submit and review](https://docs.releaseapi.com/review.html) · [Deliver to stores](https://docs.releaseapi.com/delivery.html) · [Manage live releases](https://docs.releaseapi.com/catalog.html) · [Music videos](https://docs.releaseapi.com/videos.html)
- [Royalties](https://docs.releaseapi.com/royalties.html): Decide who gets paid and from when, then follow each month’s store money into the right wallets. [How money flows](https://docs.releaseapi.com/royalties.html) · [Splits and the ledger](https://docs.releaseapi.com/ledger.html) · [Monthly statements](https://docs.releaseapi.com/statements.html)
- [Analytics](https://docs.releaseapi.com/analytics.html): Streams and earnings for your dashboards, and files for your finance team and your own data warehouse. [Analytics](https://docs.releaseapi.com/analytics.html) · [Reports and exports](https://docs.releaseapi.com/reports.html)
- [Cookbook](https://docs.releaseapi.com/recipes.html): Step-by-step answers for a specific task, and fixes for when something goes wrong. [Recipes](https://docs.releaseapi.com/recipes.html) · [Troubleshooting](https://docs.releaseapi.com/troubleshooting.html)
- [Account and reference](https://docs.releaseapi.com/account.html): Your account and team, the extras for client accounts, and the lookup tables you’ll keep open while building. [Your account](https://docs.releaseapi.com/account.html) · [Client accounts](https://docs.releaseapi.com/client-accounts.html) · [Reference data](https://docs.releaseapi.com/reference-data.html) · [API reference](https://docs.releaseapi.com/openapi/index.html)

## Environments

Build against sandbox, then switch the base URL and the key. The API is the same in both, but they don’t share data or keys.

| Environment | API base URL | Dashboard |
| --- | --- | --- |
| **Sandbox** | `https://api-sandbox.releaseapi.com/v1` | [app-sandbox.releaseapi.com](https://app-sandbox.releaseapi.com) |
| **Production** | `https://api.releaseapi.com/v1` | [app.releaseapi.com](https://app.releaseapi.com) |

Sandbox runs everything up to the stores: releases are reviewed and accepted into the catalog but never delivered, and no store data is imported. Production means real deliveries, real store data and real money.

There is no sign-up form. Usually your RecordJet contact creates your tenant, in sandbox first, and you receive an invitation to the dashboard and create your API keys there. Companies with their own store deals get a client account and set up their tenants themselves. [Before you go live](https://docs.releaseapi.com/quickstart.html#before-production) lists what production needs on top of sandbox.

**Your first call**

```bash
curl https://api-sandbox.releaseapi.com/v1/me/token \
  -H "X-API-KEY: $RELEASEAPI_KEY"
```

## Building blocks

A handful of rules hold everywhere in the API. Knowing them up front saves most of the surprises.

- **One header** — Every request carries `X-API-KEY`, usually a tenant key that sees exactly your catalog. Client accounts also have client keys that act across all their tenants. [API keys](https://docs.releaseapi.com/api-basics.html#api-keys)
- **Your ids** — You choose the UUID of a draft, its tracks and its booklet. The live release keeps the same ids, so a retry or a later edit always lands on the same object. [Draft and catalog](https://docs.releaseapi.com/concepts.html#draft-and-catalog-release)
- **Asynchronous outcomes** — Uploads, reviews, deliveries and imports finish after the HTTP response. The [journal](https://docs.releaseapi.com/events.html) tells you when, and a webhook ping lets you know there’s something new to read.
- **Plain JSON** — Fields are camelCase, enums and error codes are `UPPER_SNAKE`, dates are ISO 8601, and lists use offset pagination with `hasMore`. [Requests and responses](https://docs.releaseapi.com/api-basics.html#requests)
- **Exact money** — Reporting amounts are integers in billionths of a euro, so every split adds up exactly. [How money flows](https://docs.releaseapi.com/royalties.html)

> **Looking for an endpoint?:** The guides explain behaviour and the order of calls. Every path, parameter and schema is in the [API reference](https://docs.releaseapi.com/openapi/index.html). Press `/` to search these docs.
