# Events and webhooks

> Reviews, deliveries and statements finish after your request has returned. ReleaseAPI records every change in order on the journal, which you read from a cursor, and a webhook tells you when there’s something new. The second half of this page is the [event catalog](https://docs.releaseapi.com/events.html#event-catalog).

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

**At a glance**

- Read with `POST /v1/journal/query`, sending the last event’s `createdAt` and `id` as the cursor. Each call returns up to 100 events.
- The webhook is only a `PLEASE_CALL_BACK` ping. Answer within a second, then read the journal.
- Deduplicate on `id`, because your own retries can hand you an event twice.
- Match an acceptance on `RELEASE` + `DRAFT_RELEASE_ACCEPTED`, and a rejection on `DRAFT_RELEASE` + `DRAFT_RELEASE_REJECTED` on the `OTHER` event.
- Export, statement and trend events only reach client keys, so with a tenant key you poll those objects instead.

## How it works

Every change in your account (a draft submitted, a release accepted, a delivery failed, a wallet created) is written to the **journal** as an ordered event. You read them with `POST /v1/journal/query`, starting after the last event you processed. An optional **webhook** pings your URL, with no data, when new events are waiting.

*Diagram: ReleaseAPI writes events to the journal and pings your webhook; your worker reads the journal from its cursor.* The webhook only tells you that new events are waiting. You always read the events themselves from the journal.

Because the events stay on the journal, you can’t miss one. If your server is down for an hour, the events wait, and your next read starts where the last one stopped. Pings can be dropped or merged, but events can’t.

## What you see

Which events a read returns depends on your key:

- **Tenant key:** every event of that tenant. As a tenant under RecordJet, this is your stream.
- **Client key** (client accounts): every event in the client, across all tenants. Each event carries its `tenantId`. Some events belong to the client as a whole and have no `tenantId`. They appear *only* on the client stream (see [below](https://docs.releaseapi.com/events.html#client-only-events)).
- **Either key with `elementId`:** the full history of one object, such as one release. Unlike the tenant and client streams, it has no time limit. Use it for debugging and for audit views. A draft and the catalog release it becomes share one id, so one element stream holds both their events.

### Events only a client key sees

Exports, statement imports and reports, and trend imports and reports belong to the client. Their events (`REPORTING_EXPORT`, `STATEMENTS_IMPORT`, `STATEMENTS_REPORT`, `TRENDS_DAILY_IMPORT`, `TRENDS_CONFIG`, `TRENDS_REPORT`) carry no `tenantId` and never reach a tenant stream, even for an export a tenant ordered. Asking for their element history returns `400 UNAUTHED_ELEMENT_ID`. With a tenant key, poll the object (for example `GET /v1/reporting/exports/{exportId}`), and list your statement reports once a day to learn that a month is final ([Monthly statements](https://docs.releaseapi.com/statements.html#know-when-final)).

## The event object

Every event has the same shape: who it belongs to, what changed and why, and a copy of the object.

**A release accepted after review**

```json
{
  "clientId": "7c4a91e2-5d3b-4f08-a6e1-93b2c0d4e517",
  "tenantId": "b55ec853-f63b-4cb3-9c2f-868b4eb42f95",
  "eventType": "CREATED",
  "eventName": "DRAFT_RELEASE_ACCEPTED",
  "elementType": "RELEASE",
  "elementId": "f99ee34d-454d-43f0-a459-f797ee1c117d",
  "payload": {
    "id": "f99ee34d-454d-43f0-a459-f797ee1c117d", "status": "UNRELEASED", "…": "…"
  },
  "diff": null,
  "payloadPatched": {
    "id": "f99ee34d-454d-43f0-a459-f797ee1c117d", "status": "UNRELEASED", "…": "…"
  },
  "id": "2b7c1f60-9a8e-4c3d-b1f2-0e9d8c7b6a51",
  "createdAt": "2026-10-05T07:31:02.114210Z",
  "eventAt": "2026-10-05T07:31:01.020Z"
}
```

- `id` (uuid) — Unique per event. Use it to skip events you’ve already handled.
- `createdAt` (timestamp) — When the event was published to the journal, usually within a few seconds of the change. ReleaseAPI publishes in batches, and every event in a batch gets the same `createdAt`. Batches only move forward in time, and `id` orders events within a batch, so the pair `createdAt` + `id` is your [cursor](https://docs.releaseapi.com/events.html#cursor).
- `eventAt` (timestamp) — When the change itself happened. Use it to show times and to order events that share a `createdAt`. Don’t use it as a cursor.
- `elementType` (enum) — *What* changed: `DRAFT_RELEASE`, `RELEASE`, `DELIVERY_REQUEST`, `WALLET` and so on. See the [full list](https://docs.releaseapi.com/events.html#element-types).
- `elementId` (uuid) — The id of the object that changed. Fetch it to get its current state.
- `eventType` (enum) — The kind of change. Values: `CREATED`, `UPDATED`, `DELETED`, `OTHER`.
- `eventName` (enum or null) — *Why* it changed, for example `DRAFT_RELEASE_ACCEPTED` or `DELIVERY_REQUEST_FAILURE`. It’s `null` on plain edits, such as you updating a customer’s details. The [event catalog](https://docs.releaseapi.com/events.html#event-catalog) lists every name.
- `payload` (object) — For `CREATED`, the new object. For `UPDATED`, the object *before* the change. For `DELETED`, the object as it was when deleted.
- `diff` (array or null) — On `UPDATED`: a JSON Patch (RFC 6902) that turns `payload` into the new state, such as `[{"op": "replace", "path": "/status", "old": "REVIEW", "value": "REJECTED"}]`. Each operation also carries the previous value in `old`, which standard JSON Patch libraries ignore. `null` on other event types.
- `payloadPatched` (object or null) — The object *after* the change. On `UPDATED` it’s `payload` with `diff` applied, on `CREATED` and `OTHER` it’s the same as `payload`, and on `DELETED` it’s `null`.

> **Payloads are a record, not an API response:** A payload is the object as it was stored. It can contain internal fields that the `GET` endpoint doesn’t return, and its shape can differ from the `GET` response. Use them to see *what* changed. When you need the authoritative object, fetch it by `elementId`. Don’t forward payloads verbatim to third parties or logs.

## Read the journal

Send the `createdAt` and `id` of the last event you processed. You get up to 100 newer events, oldest first, as a plain array. An empty array means you’re caught up.

`POST /v1/journal/query`

**cURL**

```bash
curl "$BASE/journal/query" \
  -H "X-API-KEY: $RELEASEAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "lastCreatedAt": "2026-10-05T07:29:36.847486Z",
    "lastId": "fc168f89-ba0a-4918-be5a-30e68213b388"
  }'
```

**Node.js**

```javascript
// api() is the helper from the Quickstart setup; cursor is the { createdAt, id } you stored
const events = await api("POST", "/journal/query", {
  lastCreatedAt: cursor.createdAt,
  lastId: cursor.id,
}); // [] when you're caught up
```

**Python**

```python
# api() is the helper from the Quickstart setup; cursor is the {"createdAt", "id"} you stored
events = api("POST", "/journal/query", {
    "lastCreatedAt": cursor["createdAt"],
    "lastId": cursor["id"],
})  # [] when you're caught up
```

**Response**

```json
[
  {
    "clientId": "7c4a91e2-5d3b-4f08-a6e1-93b2c0d4e517",
    "tenantId": "b55ec853-f63b-4cb3-9c2f-868b4eb42f95",
    "eventType": "UPDATED",
    "eventName": "DRAFT_RELEASE_SUBMITTED",
    "elementType": "DRAFT_RELEASE",
    "elementId": "f99ee34d-454d-43f0-a459-f797ee1c117d",
    "payload": { "status": "DRAFT", "…": "…" },
    "diff": [{ "op": "replace", "path": "/status", "old": "DRAFT", "value": "REVIEW" }],
    "payloadPatched": { "status": "REVIEW", "…": "…" },
    "id": "7d0e4b21-3a9f-4c6e-8b15-2f1d0c9e8a73",
    "createdAt": "2026-10-05T07:30:11.402118Z",
    "eventAt": "2026-10-05T07:30:10.877Z"
  }
]
```

- `lastCreatedAt` (timestamp) — `createdAt` of the last event you processed. Leave it out on your very first read to start with the oldest event still kept (about the last 30 days).
- `lastId` (uuid) — `id` of that same event. It breaks ties between events with the same timestamp. Send it together with `lastCreatedAt` whenever the cursor comes from an event you processed. The one exception is the far-future cursor for reading newest first (below), which has no event behind it, so you send `lastCreatedAt` on its own.
- `descending` (boolean) — Read backwards from the cursor. Defaults to `false`.
- `elementId` (uuid) — Read the history of one object instead of the whole stream.
- `elementType` (enum) — Narrows an `elementId` read. It has no effect on its own. A filtered page holds up to 100 matching events, and an empty page means there are no more matches.

There are no other server-side filters and the page size is fixed at 100. To drain a large client account faster, run one consumer per tenant, each with its own key and cursor, in parallel.

> **Newest first:** `"descending": true` without a cursor returns an empty array, because the default cursor sits at the very start of time. To list the most recent events, pass a cursor in the future: `{"descending": true, "lastCreatedAt": "2100-01-01T00:00:00Z"}`.

## Webhooks

Set a webhook URL on a tenant, on the client, or both. You set it in the dashboard settings. On a client account, you can also pass `webHookUrl` when you [create a tenant](https://docs.releaseapi.com/client-accounts.html#create-a-tenant). Whenever new events are published, ReleaseAPI sends a `POST` to that URL with a plain-text body:

**What your endpoint receives**

```http
POST /hooks/releaseapi HTTP/1.1
Host: api.lowtide.example
Content-Type: text/plain

PLEASE_CALL_BACK
```

That is the entire message. It tells you to read the journal and carries nothing else. Delivery works like this:

- **Checked continuously**, every few seconds. Many events in quick succession produce a single ping.
- **One-second timeout.** Respond before you do any work.
- **Any HTTP response counts as delivered**, including `500`. If the connection fails or times out, the ping is retried on the next check until it gets through. Redirects aren’t followed.
- **A tenant webhook** fires for that tenant’s events. **A client webhook** fires for events in every tenant.
- The URL must be `http` or `https` and resolve to a public address. `localhost`, private networks and cloud metadata hosts are rejected (`BLOCKED_URL_HOST`, `BLOCKED_URL_HOST_RESOLVES_PRIVATE` and similar).

The ping isn’t signed, and it doesn’t need to be. It carries no data, and the journal read that follows is authenticated with your key, so a forged ping costs you only one extra read.

## Build a reliable consumer

A production consumer has a persisted cursor, a loop that drains the journal, and two triggers for the loop: the webhook, and a timer as the safety net for lost pings. The worker below runs as written (`npm install express`, Node.js 18+). Replace the bodies of the three functions at the top with your own code.

**journal-worker.js**

```javascript
import express from "express";
import { readFile, writeFile, appendFile } from "node:fs/promises";

const BASE = "https://api-sandbox.releaseapi.com/v1";
const KEY = process.env.RELEASEAPI_KEY;
const CURSOR_FILE = "./journal-cursor.json"; // use your database in production
const DEAD_LETTER_FILE = "./journal-dead-letter.jsonl";

// --- Your code: replace these bodies with your own updates ---
async function markRejected(releaseId, draft) {
  console.log("rejected", releaseId, draft.review?.rejectionReasons);
}
async function markInCatalog(releaseId) {
  console.log("accepted", releaseId);
}
async function alertOps(itemId, error) { // release id, or video id for video deliveries
  console.warn("delivery failed", itemId, error?.code, error?.message);
}
// --- end of your code ---

async function loadCursor() {
  try { return JSON.parse(await readFile(CURSOR_FILE, "utf8")); } catch { return {}; }
}
async function saveCursor(event) {
  const cursor = { lastCreatedAt: event.createdAt, lastId: event.id };
  await writeFile(CURSOR_FILE, JSON.stringify(cursor));
}

async function handle(event) {
  switch (`${event.elementType}:${event.eventName ?? event.eventType}`) {
    case "DRAFT_RELEASE:DRAFT_RELEASE_REJECTED":
      // Written twice (UPDATED and OTHER); handle the OTHER one only.
      // Its payload is the rejected draft: review.rejectionReasons says what to fix.
      if (event.eventType !== "OTHER") return;
      return markRejected(event.elementId, event.payload);
    case "RELEASE:DRAFT_RELEASE_ACCEPTED":
      return markInCatalog(event.elementId);
    case "DELIVERY_REQUEST:DELIVERY_REQUEST_FAILURE":
      // UPDATED = the attempt failed; CREATED = the retry ReleaseAPI scheduled
      if (event.eventType === "UPDATED") {
        return alertOps(event.payload.details.releaseId ?? event.payload.details.videoId, event.payloadPatched.error);
      }
      return;
    default:
      return; // ignore what you don't need; new event names appear over time
  }
}

// A handler that keeps failing must not stall the cursor: retry a few times,
// then park the event in a dead-letter file and move on. Replay it after the fix.
async function handleWithRetry(event, attempts = 3) {
  for (let i = 1; ; i++) {
    try { return await handle(event); } catch (err) {
      if (i < attempts) { await new Promise((r) => setTimeout(r, 1000 * i)); continue; }
      console.error("handler failed, dead-lettering", event.id, err);
      await appendFile(DEAD_LETTER_FILE, JSON.stringify({ event, error: String(err) }) + "\n");
      return;
    }
  }
}

let running = false, again = false;

async function drain() {
  if (running) { again = true; return; } // coalesce triggers: one drain at a time
  running = true;
  try {
    do {
      again = false;
      for (;;) {
        const cursor = await loadCursor();
        const res = await fetch(`${BASE}/journal/query`, {
          method: "POST",
          headers: { "X-API-KEY": KEY, "Content-Type": "application/json" },
          body: JSON.stringify(cursor),
        });
        if (!res.ok) throw new Error(`journal ${res.status}`);
        const events = await res.json();
        if (events.length === 0) break; // caught up
        for (const event of events) {
          await handleWithRetry(event); // must be idempotent: you may see an event twice
          await saveCursor(event);      // advance only after the event is handled
        }
      }
    } while (again);
  } catch (err) {
    console.error("journal drain failed, will retry", err);
  } finally {
    running = false;
  }
}

const app = express();
app.post("/hooks/releaseapi", (req, res) => {
  res.sendStatus(204); // answer within the 1 s timeout…
  drain();             // …then do the work
});
app.listen(3000);

setInterval(drain, 60_000); // safety net if a ping is lost
drain();                    // catch up on start
```

Why this pattern is reliable:

- **The cursor moves only after an event is handled.** If the process crashes mid-batch, the next drain starts at the first event that wasn’t handled.
- **A failing handler can’t block the feed.** A failure in your handler (a bug, a database outage) is retried three times. After that, the event goes to a dead-letter file and the cursor moves on. Without this, one bad event would be retried forever and nothing behind it would be processed. Replay the dead letters once you’ve fixed the cause.
- **Handlers are idempotent.** A crash between handling an event and saving the cursor means you’ll see that event again. Make handlers safe to repeat, or keep a set of processed `id`s.
- **One drain at a time.** Pings and timer ticks that arrive mid-drain set a flag instead of starting a second reader that would race on the cursor.
- **The cursor can follow the head.** A read never returns part of a batch that is still being published, so the worker consumes everything it gets.
- **Unknown events are ignored.** New event names and element types are added over time.
- **The worker re-reads objects when it needs full state.** When an event matters, fetch the object by `elementId` rather than trusting the payload’s shape.

## Update a user interface

The journal is a server-side feed, because only your backend holds the key. To show changes to a user who is watching a screen, have your consumer forward them, for example over Server-Sent Events or a WebSocket from your backend to the browser, keyed by the id of the object the user is viewing.

- **Expect about 5–10 seconds** from a change to your handler. Publication and the webhook check each add a few seconds.
- **Poll one object while someone waits on it**, such as a processing cover, every few seconds. Stop at a final state and leave everything else to the journal.
- **Local development.** Webhooks can’t reach `localhost`. Use a tunnel (a service such as ngrok or Cloudflare Tunnel that gives your laptop a public URL), or run the consumer on a short timer instead of the webhook.

## Ordering and delivery guarantees

The journal is append-only and ordered by `createdAt`, then `id`. That is what makes a stored cursor safe:

*Diagram: The journal as a strip of events ordered by createdAt then id. Events published together share a createdAt. Your cursor sits after the last event you processed; each read returns up to 100 newer events; a batch that is still being published is not returned yet.* The journal only grows at the end, so a stored cursor never misses an event.

- **Ordered.** Within a stream, events come in `createdAt`, then `id`, order. That order never changes after the fact.
- **Nothing appears behind your cursor.** `createdAt` is stamped at publication, so a change that commits late still appears after everything you’ve read. A batch that is still being published is returned only once it is complete.
- **Not causal inside a batch.** Events published in the same batch share a `createdAt` and are then ordered by `id`, which is random. If you need the order in which changes happened, compare `eventAt`.
- **Kept for 30 days.** The tenant and client streams keep each event for at least 30 days, whether or not you’ve read it. A new consumer can start from the oldest event still there. If your consumer is down for longer, read the objects you mirror once in full, then continue from the journal. An object’s own history (`elementId`) is kept without a time limit.
- **At least once to your code.** The journal returns each event once per cursor position. Your own crashes and retries are what cause repeats, so deduplicate on `id`.
- **Several events per change.** Accepting a draft creates the `RELEASE` and its `TRACK`s, writes ledger entries and deletes the `DRAFT_RELEASE`, each an event. Key on one event per outcome (see the [recipes](https://docs.releaseapi.com/events.html#recipes)).

## Common recipes

| You want to know when… | Watch for |
| --- | --- |
| A draft was rejected | `DRAFT_RELEASE` + `DRAFT_RELEASE_REJECTED` with `eventType` `OTHER`. Its `payload` is the rejected draft, with the reasons in `review.rejectionReasons`. The same name is also written on an `UPDATED` event for the same rejection. Ignore that one, or you handle every rejection twice. |
| A release was accepted | `RELEASE` + `DRAFT_RELEASE_ACCEPTED`: `CREATED` for a new release, `UPDATED` for an accepted edit. This is the one event to key on. The same name also appears on the deleted draft, its tracks and the ledger entries, so ignore those. |
| A store received it | `DELIVERY_REQUEST` + `DELIVERY_REQUEST_SUCCESS`, one per provider. |
| A delivery failed | `DELIVERY_REQUEST` + `DELIVERY_REQUEST_FAILURE` with `eventType` `UPDATED`. The same name on a `CREATED` event is the retry ReleaseAPI schedules itself, so don’t count it as a second failure. The failure is in `payloadPatched.error` (`code` and `message`), the release is `payload.details.releaseId` (or `details.videoId`) and the provider `payload.details.deliveryProvider`. Only client keys can fetch a delivery request, so for a tenant this event is the only place the error appears. See [Deliver to stores](https://docs.releaseapi.com/delivery.html). |
| The release date has arrived | `RELEASE` + `RELEASE_STATUS_RELEASED`. It reflects the date only and doesn’t prove that a store shows the release. |
| A store link is available | `RELEASE` + `FULL_RELEASE_STORE_IDS_CRAWLED` or `FULL_RELEASE_SPOTIFY_FEEDBACK_APPLIED`. Re-read the release and use the store references it now carries. A link is one of the signals for “live”, not the whole answer. [Is it live?](https://docs.releaseapi.com/delivery.html#is-it-live) combines it with the release date. Sandbox doesn’t look up store ids on its own. |
| An export file is ready | `REPORTING_EXPORT` + `REPORTING_EXPORT_SUCCESS`. This event is on the client stream only, so with a tenant key you poll the export. |
| A month’s statements are final | **Tenant key:** no event reaches you. Poll the report list for that month ([Know when a month is final](https://docs.releaseapi.com/statements.html#know-when-final)). The first report you see means the month is final. **Client accounts:** `STATEMENTS_IMPORT` + `UPDATED` whose `diff` sets `status` to `SUCCESS`. One `STATEMENTS_REPORT` + `CREATED` follows for each report written. |
| You mirror objects into a warehouse | Use the journal as the change feed for catalog, customers and the ledger, and list report files for statements and trends. |

The [event catalog](https://docs.releaseapi.com/events.html#event-catalog) lists every event name and element type.

## Troubleshooting

| You see | Why, and what to do |
| --- | --- |
| The journal returns `[]` forever | You may be reading `descending` without a cursor, or your stored cursor came from the other environment. Reset to an empty body to read from the start. |
| I sent `eventId` | The cursor fields are `lastCreatedAt` and `lastId`. Unknown fields are ignored, so you were reading from the beginning every time. |
| `400 UNAUTHED_ELEMENT_ID` | You asked for the history of an object that isn’t in your key’s scope. |
| No pings arrive | Check that the URL is public and answers within a second. Your timer poll keeps you current in the meantime. |
| A client consumer sees other tenants’ events | This is expected, because a client key reads the whole client. Filter on `tenantId`, or run one consumer per tenant key. |
| A tenant consumer never sees export or statement events | Those objects belong to the client. See [events only a client key sees](https://docs.releaseapi.com/events.html#client-only-events). |

## Event catalog

This catalog lists every event the journal can contain, grouped by the part of the product it comes from. Use it to decide which events your consumer handles and which it ignores. The large dots in the timeline below are the events most integrations act on, and [Common recipes](https://docs.releaseapi.com/events.html#recipes) shows how to match each one. Everything else is optional, and you can ignore names you don’t recognise.

### How to read an event

`elementType` says *what* changed, `eventType` *how* (`CREATED`, `UPDATED`, `DELETED`, `OTHER`), and `eventName` *why*. Match on all three, because one action can write the same name on several element types. [Events and webhooks](https://docs.releaseapi.com/events.html) explains the event object.

- **Plain edits have no name.** When you or ReleaseAPI create, update or delete an object without a special reason, the event carries only `elementType` and `eventType`. For an `UPDATED` event, read `diff` to see which fields changed.
- **`OTHER` events** mark a milestone rather than a field change, such as “this draft was accepted”. They’re the easiest events to match.
- **Lists grow.** New names and element types are added without a version change.
- **One action writes several events at once.** Events written by the same action are usually published in the same batch and share a `createdAt`. Their order inside the batch is by `id`, not by cause, so don’t rely on “A arrives before B” for events of one action.
- **Some events are client-only.** Rows marked *client stream* never reach a tenant key. As a tenant under RecordJet you can skip them ([why](https://docs.releaseapi.com/events.html#client-only-events)).

*Diagram: Events in the life of a release, in order: submitted, review ready, review done, accepted (or rejected), sync started, delivery requests created and started, delivery success (or failure), released, store ids crawled.* The large dots are the events most integrations act on: `RELEASE` + `DRAFT_RELEASE_ACCEPTED` when the release is accepted, and `FULL_RELEASE_STORE_IDS_CRAWLED` when store links exist. Watch the red alternatives for rejections and failed deliveries. Delivery events repeat once per provider.

### Drafts and review

| Event | When it fires | Typical reaction |
| --- | --- | --- |
| `DRAFT_RELEASE_SUBMITTED` — on `DRAFT_RELEASE` · UPDATED | The draft was submitted for review. `status` moves to `REVIEW`, and the draft is locked against edits. | Show “in review” in your product. |
| `DRAFT_RELEASE_WITHDRAWN` — on `DRAFT_RELEASE` · UPDATED | The submission was withdrawn. `status` is back to `DRAFT`. | Unlock editing. |
| `DRAFT_RELEASE_REVIEW_READY` — on `DRAFT_RELEASE` · UPDATED | Automatic checks have finished and the draft is ready for a human reviewer. | Optional: show “awaiting review”. |
| `DRAFT_RELEASE_REVIEW_DONE` — on `DRAFT_RELEASE` · UPDATED | A reviewer (RecordJet, or a client account reviewing its own tenants) recorded a decision (`review.result`) on a draft in review. Acceptance or rejection follows. | Usually none. Wait for the outcome. |
| `DRAFT_RELEASE_ACCEPTED` — on `DRAFT_RELEASE` · DELETED and OTHER; `DRAFT_TRACK`, `DRAFT_BOOKLET` · DELETED | The draft passed review. Its content becomes the catalog release, and the draft is removed. The two draft events arrive together, in no fixed order. | None. Key on the `RELEASE` row below instead. |
| `DRAFT_RELEASE_ACCEPTED` — on `RELEASE`, `TRACK`, `BOOKLET` · CREATED or UPDATED | The catalog objects written by that acceptance: CREATED for a new release, UPDATED for an accepted edit. | **The milestone to watch**, on `RELEASE`. Mark the release as accepted in your product. A sync starts on its own. |
| `DRAFT_RELEASE_ACCEPTED` — on `LEDGER_RELEASE_COMMIT`, `LEDGER_WALLET_COMMIT` · CREATED | Ledger entries recording who earns from the accepted release, effective from the first day of the next month. | Usually none. See [Splits and the ledger](https://docs.releaseapi.com/ledger.html). |
| `DRAFT_RELEASE_REJECTED` — on `DRAFT_RELEASE` · UPDATED and OTHER | Review rejected the draft, or acceptance failed (for example `PROVIDER_OUT_OF_GTIN` when no code range is left). `status` is `REJECTED`, and `review.rejectionReasons` lists why. Both events carry the name. Handle the `OTHER` one, whose `payload` is the rejected draft. Ignore the `UPDATED` one, or you react twice. | Show the reasons and let the user fix and resubmit. |
| `DRAFT_RELEASE_DELETED` — on `DRAFT_RELEASE` · DELETED | Someone deleted the draft, with its tracks and booklet. | Remove it from your product. |
| `DRAFT_RELEASE_TRACK_ORDER_CHANGED` — on `DRAFT_TRACK` · UPDATED | Tracks were reordered. | Refresh track positions. |
| `DRAFT_RELEASE_FROM_RELEASE_COPIED` — on `DRAFT_RELEASE` · CREATED | A draft was opened from a live release so it can be edited. | Show “edit in progress” on the release. |

### Catalog releases

| Event | When it fires | Typical reaction |
| --- | --- | --- |
| `RELEASE_STATUS_UNRELEASED` — on `RELEASE` · OTHER | The release is in the catalog with a release date still ahead. | Show the upcoming date. |
| `RELEASE_STATUS_PRESALE` — on `RELEASE` · UPDATED and OTHER | The presale (pre-order) window has opened. | Show pre-order links. |
| `RELEASE_STATUS_RELEASED` — on `RELEASE` · UPDATED and OTHER | The release date has arrived. A daily check sets this status. | Show the release as out. |
| `RELEASE_STATUS_TAKEDOWN` — on `RELEASE` · OTHER | The release is now in `TAKEDOWN` status. | Show it as withdrawn. |
| `RELEASE_TAKEDOWN_REQUESTED` — on `RELEASE` · UPDATED and OTHER; `LEDGER_RELEASE_COMMIT` | Someone asked for the release to be removed from stores. Takedown deliveries follow. | Track the takedown through delivery events. |
| `RELEASE_SYNC_REQUESTED` — on `RELEASE` · UPDATED | A sync was requested by hand (a client account calling `…/sync-request`, or RecordJet on your behalf). | None. |
| `RELEASE_SYNC_STARTED` — on `RELEASE` · UPDATED | ReleaseAPI created the delivery requests for a sync. This happens after every acceptance and every manual sync, in production only, because sandbox doesn’t process syncs. | Expect `DELIVERY_REQUEST_*` events next. |
| `FULL_RELEASE_STORE_IDS_CRAWLED` — on `RELEASE`, `TRACK` · UPDATED | A store lookup (the daily crawl, or an Apple ID lookup) found the release and stored its store IDs and links. Production only. | Re-read the release and show store links. For “is it live”, combine this with the release date ([Is it live?](https://docs.releaseapi.com/delivery.html#is-it-live)). |
| `FULL_RELEASE_SPOTIFY_FEEDBACK_APPLIED` — on `RELEASE`, `TRACK` · UPDATED | Spotify reported its album, track and artist IDs back, and they were added to the release. | Show or update the Spotify link. |
| `DELIVERY_REQUEST_SUCCESS` — on `RELEASE` · UPDATED | The release’s store snapshot was updated after a successful delivery. | Read `storeSnapshot.deliveredStores`. |

### Delivery requests

A delivery request is one attempt to send one release to one delivery provider, which may serve several stores. [Deliver to stores](https://docs.releaseapi.com/delivery.html) explains the lifecycle.

| Event | When it fires | Typical reaction |
| --- | --- | --- |
| `DELIVERY_REQUEST_CREATED` — on `DELIVERY_REQUEST` · CREATED | A delivery was queued with status `OPEN`. | Show “queued” per store. |
| `DELIVERY_REQUEST_STARTED` — on `DELIVERY_REQUEST` · UPDATED | Transfer to the provider began, and the status is `PROCESSING`. | Show “sending”. |
| `DELIVERY_REQUEST_SUCCESS` — on `DELIVERY_REQUEST` · UPDATED | The provider accepted the delivery. | Show “delivered”. |
| `DELIVERY_REQUEST_FAILURE` — on `DELIVERY_REQUEST` · UPDATED and CREATED | The attempt failed (`UPDATED`, on the failed request). The same name is on the `CREATED` event of the retry request that ReleaseAPI schedules for later. Count failures on `UPDATED` only. | Alert if failures repeat for a release. Retries are automatic. |
| `DELIVERY_REQUEST_SKIPPED` — on `DELIVERY_REQUEST` · UPDATED | A newer sync superseded this queued request. The newer request carries the work. | None. |
| `DELIVERY_REQUEST_REPRIORITIZED` — on `DELIVERY_REQUEST` · UPDATED | The request’s priority changed. | None. |
| `DELIVERY_REQUEST_RESCHEDULED` — on `DELIVERY_REQUEST` · UPDATED | The request’s scheduled time changed. | None. |

### Music videos

Videos follow the same review and delivery path as releases, under their own names. See [Music videos](https://docs.releaseapi.com/videos.html).

| Event | When it fires |
| --- | --- |
| `DRAFT_VIDEO_SUBMITTED` — on `DRAFT_VIDEO` | The draft video was submitted for review. |
| `DRAFT_VIDEO_WITHDRAWN` — on `DRAFT_VIDEO` | The submission was withdrawn. |
| `DRAFT_VIDEO_REVIEW_READY` — on `DRAFT_VIDEO` | Automatic checks have finished. The draft is ready for review. |
| `DRAFT_VIDEO_REVIEW_DONE` — on `DRAFT_VIDEO` | A reviewer recorded a decision. |
| `DRAFT_VIDEO_ACCEPTED` — on `DRAFT_VIDEO`, `VIDEO`, `LEDGER_VIDEO_COMMIT` | The video passed review and is now in the catalog. |
| `DRAFT_VIDEO_REJECTED` — on `DRAFT_VIDEO` | Review rejected the video. |
| `DRAFT_VIDEO_DELETED` — on `DRAFT_VIDEO` | The draft video was deleted. |
| `DRAFT_VIDEO_FROM_VIDEO_COPIED` — on `DRAFT_VIDEO` | A draft was opened from a live video so it can be edited. |
| `DRAFT_VIDEO_FROM_AUDIO_TRACK_COPIED` — on `DRAFT_VIDEO` | A draft video was started from an existing audio track’s metadata. |
| `VIDEO_STATUS_RELEASED` — on `VIDEO` | The video’s release date has arrived. |
| `VIDEO_STATUS_UNRELEASED` — on `VIDEO` | The video is in the catalog with a release date still ahead. |
| `VIDEO_STATUS_TAKEDOWN` — on `VIDEO` | The video is now in `TAKEDOWN` status. |
| `VIDEO_TAKEDOWN_REQUESTED` — on `VIDEO`, `LEDGER_VIDEO_COMMIT` | A takedown was requested. |
| `VIDEO_SYNC_REQUESTED` — on `VIDEO` | A sync was requested by hand. |
| `VIDEO_SYNC_STARTED` — on `VIDEO` | Delivery requests for the video were created. |
| `FULL_VIDEO_SPOTIFY_FEEDBACK_APPLIED` — on `VIDEO` | Spotify reported its IDs for the video back. |

### Customers, wallets and the ledger

| Event | When it fires |  |
| --- | --- | --- |
| `CUSTOMER_CREATED` — on `CUSTOMER` · CREATED | A customer (payee) was created. With a tenant key the event arrives *without* a name, so match `CUSTOMER` + `CREATED`. |  |
| `CUSTOMER_UPDATED` — on `CUSTOMER` · UPDATED | A customer’s details changed. |  |
| `WALLET_CREATED` — on `WALLET` · CREATED | A wallet was created for a customer. |  |
| `WALLET_UPDATED` — on `WALLET` · UPDATED | A wallet changed. |  |
| *no name* | `LEDGER_RELEASE_COMMIT`, `LEDGER_WALLET_COMMIT` · CREATED / DELETED | A manual mapping you added. Entries written by acceptance, takedown or a statement mapping carry that action’s name. A DELETED event only appears when a newer entry replaces one in the same month. Otherwise the ledger is never rewritten. |

### Reporting and statements

| Event | When it fires |  |
| --- | --- | --- |
| `REPORTING_EXPORT_CREATED` — on `REPORTING_EXPORT` · client stream | An export was ordered. |  |
| `REPORTING_EXPORT_STARTED` — on `REPORTING_EXPORT` · client stream | Processing began. |  |
| `REPORTING_EXPORT_SUCCESS` — on `REPORTING_EXPORT` · client stream | The file is ready to download. Watch for this instead of polling the export. See [Exports](https://docs.releaseapi.com/reports.html#exports). |  |
| `REPORTING_EXPORT_FAILURE` — on `REPORTING_EXPORT` · client stream | The export failed. |  |
| `REPORTING_EXPORT_EXPIRED` — on `REPORTING_EXPORT` · client stream | The export passed its `availableUntil` date and its file was removed. |  |
| `STATEMENTS_MAPPING_FIXED` — on `STATEMENTS_IMPORT` (client stream), `TRACK`, `LEDGER_RELEASE_COMMIT` | RecordJet (or, for a client account, the ReleaseAPI team) mapped the unmatched lines of a statement import to the right release or track. |  |
| *no name* | `STATEMENTS_IMPORT` · UPDATED · client stream | The import’s status changed (`PROCESSING`, `REVIEW`, `ERROR`, `ACCEPTED`, `FINALIZING`, `SUCCESS`). Read `diff` for the new `status`. `SUCCESS` is the signal that the whole month is final. |
| *no name* | `STATEMENTS_REPORT` · CREATED · client stream | One statement report was written. A month’s reports are all written together with the import’s move to `SUCCESS`. Key payouts on that `SUCCESS` event rather than on a report event. Tenant keys don’t see these events. |
| *no name* | `TRENDS_REPORT` · CREATED · client stream | New daily trend data is available. See [Reports and exports › Daily trends](https://docs.releaseapi.com/reports.html#daily-trends). |
| *no name* | `TRENDS_DAILY_IMPORT`, `TRENDS_CONFIG` | A daily import or a store connection changed. Client stream only. |

### Files and system

| Event | When it fires |  |
| --- | --- | --- |
| `MASTER_FILE_AI_ANALYSIS_RESULT` — on `MASTER_FILE` · UPDATED | Audio analysis of a master finished, and its results were attached to the file. |  |
| `SYSTEM_MAINTENANCE` — on any | ReleaseAPI changed the object during maintenance or a support case, for example by re-queuing a delivery. |  |
| *no name* | files, preview links, keys, tenants… | Plain create, update and delete of everything else. A file’s processing status changing, for example, is a `COVER_FILE` or `MASTER_FILE` UPDATED event. |

### Element types

This table lists every `elementType` the journal uses, and where each object is documented.

| elementType | Object | Guide |
| --- | --- | --- |
| `COVER_FILE`, `MASTER_FILE`, `APPLE_MASTER_FILE`, `DOLBY_MASTER_FILE`, `APPLE_MOTION_ARTWORK_FILE`, `BOOKLET_FILE`, `ATTACHMENT` | Uploaded release files | [Upload files](https://docs.releaseapi.com/files.html) |
| `VIDEO_FILE`, `VIDEO_THUMBNAIL_FILE` | Uploaded video files | [Music videos](https://docs.releaseapi.com/videos.html) |
| `DRAFT_RELEASE`, `DRAFT_TRACK`, `DRAFT_BOOKLET` | A release being prepared | [Build a release](https://docs.releaseapi.com/drafts.html) |
| `DRAFT_VIDEO` | A video being prepared | [Music videos](https://docs.releaseapi.com/videos.html) |
| `RELEASE`, `TRACK`, `BOOKLET` | The catalog release | [Manage live releases](https://docs.releaseapi.com/catalog.html) |
| `VIDEO` | The catalog video | [Music videos](https://docs.releaseapi.com/videos.html) |
| `DELIVERY_REQUEST` | One delivery attempt to one provider | [Deliver to stores](https://docs.releaseapi.com/delivery.html) |
| `DELIVERY_PROFILE` | Store connection settings for a provider | [Deliver to stores](https://docs.releaseapi.com/delivery.html) |
| `ASSIGNABLE_GTIN_RANGE`, `ASSIGNABLE_ISRC_RANGE` | Code ranges | [Identifiers and artists](https://docs.releaseapi.com/identifiers.html) |
| `CUSTOMER`, `WALLET` | Payees and their wallets | [Customers and wallets](https://docs.releaseapi.com/royalties.html#customers-and-wallets) |
| `LEDGER_RELEASE_COMMIT`, `LEDGER_WALLET_COMMIT`, `LEDGER_VIDEO_COMMIT` | Ledger entries | [Splits and the ledger](https://docs.releaseapi.com/ledger.html) |
| `STATEMENTS_IMPORT`, `STATEMENTS_REPORT` | Monthly store statements | [Monthly statements](https://docs.releaseapi.com/statements.html) |
| `TRENDS_CONFIG`, `TRENDS_DAILY_IMPORT`, `TRENDS_REPORT` | Daily store data. When a day is re-run, its old `TRENDS_REPORT`s are removed without a `DELETED` event. Only the new `CREATED` events appear. | [Reports and exports › Daily trends](https://docs.releaseapi.com/reports.html#daily-trends) |
| `REPORTING_EXPORT` | An ordered report file | [Exports](https://docs.releaseapi.com/reports.html#exports) |
| `PREVIEW_LINK` | A shareable preview | [Preview links](https://docs.releaseapi.com/catalog.html#share-before-release) |
| `CLIENT`, `TENANT`, `USER_MEMBERSHIP`, `API_TOKEN` | Account structure and access. `USER_MEMBERSHIP` events are written for dashboard invitations, not for calls to `/v1/user-memberships`. | [Your account](https://docs.releaseapi.com/account.html#memberships-api), [API basics](https://docs.releaseapi.com/api-basics.html) |
| `VAT_ID_CHECK` | A VAT number validation | [Your account](https://docs.releaseapi.com/account.html) |

The OpenAPI reference types `eventName` and `elementType` as plain strings, so treat this catalog as the up-to-date list.

## Next steps

- [Submit and review](https://docs.releaseapi.com/review.html): What happens between submit and acceptance, and the events it writes.
- [Deliver to stores](https://docs.releaseapi.com/delivery.html): Follow delivery events and find out when a release is live.
