# Check a release

> Send a release, hear back, read the verdict and the report.

A **run** checks one release (its metadata, cover and audio) and answers with a verdict and its findings.

## 1. Send the release

```bash
curl -s -X POST "$ACTIVQC_BASE_URL/v1/qc/runs" \
  -H "Authorization: Bearer $ACTIVQC_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "tier": 2,
    "release": {
      "title": "Monsoon Letters",
      "metadata_language": "English",
      "artists": [{ "role": "primary", "name": "Aruvi" }],
      "contributors": [{ "role": "producer", "name": "Nila Varma" }],
      "label_name": "Kayal Records",
      "genre": "Indie Pop",
      "copyright_p": "2026 Kayal Records",
      "copyright_c": "2026 Kayal Records",
      "artwork": { "url": "https://cdn.example.com/monsoon-letters.jpg" }
    },
    "tracks": [{
      "track_number": 1,
      "title": "Monsoon Letters",
      "isrc": "INH012600001",
      "explicit": false,
      "audio": { "url": "https://cdn.example.com/monsoon-letters.wav" }
    }],
    "account": { "id": "artist-8812", "name": "Aruvi" }
  }'
```

The answer comes back at once with `202 Accepted` and the run's `id`. The checks run in the background.

### The uploading account

Send `account.id`, your own id for the account that uploaded the release (1 to 128 characters). Its trust decides
whether a clean release goes out at once or is checked by a person first, which catches covers and samples that were
masked so fingerprinting misses them. You may add `account.trust_score` (0 to 100), your own score for this release,
and `account.name`, a label for your console. Anything else in `account` is a `422`. The run's `trust` says what it
was decided with. See [Account trust](https://activqc.wavbee.com/docs/account-trust.md).

### Tiers

| `tier` | Checks |
|---|---|
| `1` | Metadata and cover |
| `2` | Metadata, cover and audio |
| `3` | All of the above, plus matching against other recordings and AI-music questions |

Your account decides which tiers you can use. A tier outside it answers `403 feature_not_enabled`.

### Matching

Tier 3 matches each track against other recordings, the way your account chose under **Matching** in the console. You
may send the results you already have instead. See [Your own matching results](https://activqc.wavbee.com/docs/matching-results.md).

### Files

Send each file as a public `https` URL, or upload it first with `POST /v1/builder/uploads` and send its `upload_id`
instead. Masters are WAV or FLAC, up to 500 MB. Covers are JPEG or PNG.

## 2. Hear back

- **Webhooks (recommended).** You get `qc.run.completed`, and `qc.run.verdict_changed` whenever an answer or a person
  changes the verdict. See [Webhooks](https://activqc.wavbee.com/docs/webhooks.md).
- **Or ask.** `GET /v1/qc/runs/{id}` returns the status, the verdict and a count of findings by outcome. It is cheap
  enough to poll every few seconds.

## 3. Read the verdict

| `verdict` | What to do |
|---|---|
| `pass` | Ready to deliver. |
| `pass_with_warnings` | Ready to deliver. The warnings are worth a look. |
| `needs_clarification` | Ask the artist the open questions (see [Questions for the artist](https://activqc.wavbee.com/docs/clarifications.md)). |
| `manual_review` | A person decides: your team or WAVBEE's, as your account is set up. The answer arrives as `final_decision`. |
| `fail` | Something must change before the release can go out. |

Once a person has decided, `final_decision` is `accepted`, `changes_required` or `rejected`. The machine's `verdict`
is never overwritten.

A release from a low-trust account goes to `manual_review` even when every check passes. The finding is `TR1`, and
the artist is only told that a person checks the release. `trust` on the run gives you the score, its band and why.

## 4. The full report

`GET /v1/qc/runs/{id}/report` returns every finding: its `rule_id`, the `outcome` (`pass`, `warn`, `clarify`,
`fail`, `not_run`), a plain message and its evidence (for a cover, the box around the problem on the image).

> **"Could not look" is never a pass.** A check that could not run (a file that would not download, a service that
> timed out) reports `not_run`, with the reason. It does not change the verdict by itself, so look for
> `not_run` in the report before you send a release out.

## Check as the artist types

`POST /v1/qc/validate` takes the same body and answers at once, without creating a run or counting in your
usage. Use it to show problems while a release is being filled in. The embedded builder does this for you.
