# Mastering feedback

Rate a render so later masters improve.

Paths start at `$ACTIVQC_BASE_URL`, and every call sends `Authorization: Bearer $ACTIVQC_KEY`. Errors use the [error envelope](https://activqc.wavbee.com/docs/errors.md). [All endpoints](https://activqc.wavbee.com/docs/api-reference.md).

## POST /v1/mastering/renders/{id}/feedback

Judge a render.

rating 1–5; tags from: too_bright, too_dull, too_loud, too_quiet, harsh, muddy, boomy, thin, too_narrow, too_wide, pumping, distorted, lifeless, great_balance, release_ready. The settings, tone profile and before/after numbers are snapshotted, so the feedback outlives the render's 7-day retention.

**Auth:** a secret key, `Authorization: Bearer $ACTIVQC_KEY`.

Send an `Idempotency-Key` header (a new UUID per operation; a retry reuses it).

#### Parameters

| Name | In | Type | Description |
|---|---|---|---|
| `id` | path | integer | **Required.** |
| `Idempotency-Key` | header | string | **Required.** A unique string per operation, for example a UUID. A retry with the same key returns the first answer. Missing: 422. |

#### Request body

`application/json`.

| Field | Type | Description |
|---|---|---|
| `rating` | integer |  |
| `tags` | array of string |  |
| `comment` | string |  |

#### Example request

```bash
curl -s -X POST "$ACTIVQC_BASE_URL/v1/mastering/renders/{id}/feedback" \
  -H "Authorization: Bearer $ACTIVQC_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'
```

#### Responses

| Status | Meaning |
|---|---|
| `201` | Feedback recorded. |
| `404` | Another tenant's render. [Error envelope](https://activqc.wavbee.com/docs/errors.md). |
| `409` | The render has not finished. [Error envelope](https://activqc.wavbee.com/docs/errors.md). |
| `422` | A rating out of range or an unknown tag. [Error envelope](https://activqc.wavbee.com/docs/errors.md). |

#### Response `201`

| Field | Type | Description |
|---|---|---|
| `id` | integer | **Required.** |
| `object` | string | **Required.** Always `mastering.feedback`. |
| `render_id` | integer or null | Null once the render has been purged. |
| `contributor` | string or null |  |
| `rating` | integer | **Required.** Example `4`. |
| `tags` | array of string | **Required.** |
| `comment` | string or null |  |
| `snapshot` | object | **Required.** Settings, tone profile and before/after metrics at the time. |
| `created_at` | string (date-time) | **Required.** |

```json
{
  "id": 1,
  "object": "mastering.feedback",
  "render_id": 1,
  "contributor": "string",
  "rating": 4,
  "tags": [
    "too_bright"
  ],
  "comment": "string",
  "snapshot": {},
  "created_at": "2026-11-24T10:00:00Z"
}
```

## GET /v1/mastering/feedback

Every engineer's feedback, newest first (200 most recent)

**Auth:** a secret key, `Authorization: Bearer $ACTIVQC_KEY`.

#### Example request

```bash
curl -s "$ACTIVQC_BASE_URL/v1/mastering/feedback" \
  -H "Authorization: Bearer $ACTIVQC_KEY"
```

#### Responses

| Status | Meaning |
|---|---|
| `200` | The tenant's feedback. |

#### Response `200`

| Field | Type | Description |
|---|---|---|
| `object` | string | **Required.** Always `list`. |
| `data` | array of object | **Required.** |
| `data[].id` | integer | **Required.** |
| `data[].object` | string | **Required.** Always `mastering.feedback`. |
| `data[].render_id` | integer or null | Null once the render has been purged. |
| `data[].contributor` | string or null |  |
| `data[].rating` | integer | **Required.** Example `4`. |
| `data[].tags` | array of string | **Required.** |
| `data[].comment` | string or null |  |
| `data[].snapshot` | object | **Required.** Settings, tone profile and before/after metrics at the time. |
| `data[].created_at` | string (date-time) | **Required.** |

```json
{
  "object": "list",
  "data": [
    {
      "id": 1,
      "object": "mastering.feedback",
      "render_id": 1,
      "contributor": "string",
      "rating": 4,
      "tags": [
        "too_bright"
      ],
      "comment": "string",
      "snapshot": {},
      "created_at": "2026-11-24T10:00:00Z"
    }
  ]
}
```

