# Feedback

> Send feedback to the Renzo team and read what happened to it.

URL: https://renzo-digital.com/docs/resources/feedback

A signed-in customer can send a bug report, an idea or any other note. Each item has a status, and the team may add a reply. You see only your own items. Every call needs a token.

## Endpoints

| Operation | What it does | Auth |
| --- | --- | --- |
| `POST /api/v1/feedback` | Send feedback. Answers `201`. Declares `Idempotency-Key`. | Token |
| `GET /api/v1/feedback` | List your feedback, newest first, with status and any reply. Cursor-paginated. | Token |

`POST /api/v1/feedback` declares an `Idempotency-Key` header, so a retry replays the first answer. See [Idempotency](https://renzo-digital.com/docs/concepts/idempotency).

## Fields

| Field | Meaning |
| --- | --- |
| `kind` | `bug`, `idea` or `other`. Default `other`. |
| `message` | 1 to 4000 characters, trimmed. |
| `contact_ok` | `true` when staff may email the account address. Default `true`. |
| `page_url` | Optional path the user came from. It must start with `/`, or it is dropped. |
| `locale` | Optional UI locale. Dropped if unknown. |

An item answers with `id`, `kind`, `message`, `status`, `reply`, `replied_at`, `created_at` and `updated_at`. The `status` is `new`, `reviewed`, `planned`, `done` or `closed`.

## Example: send feedback

```bash tab="curl"
curl -X POST "$BASE/api/v1/feedback" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Idempotency-Key: 9d2f6a1c-4b7e-4f0a-8c35-1e7a2b6d9f40" \
  -H "Content-Type: application/json" \
  -d '{"kind": "idea", "message": "Please add a dark mode.", "contact_ok": true}'
```

```python tab="Python"
import os

import requests

BASE = os.environ["BASE"]
TOKEN = os.environ["TOKEN"]

answer = requests.post(
    f"{BASE}/api/v1/feedback",
    headers={
        "Authorization": f"Bearer {TOKEN}",
        "Idempotency-Key": "9d2f6a1c-4b7e-4f0a-8c35-1e7a2b6d9f40",
    },
    json={"kind": "idea", "message": "Please add a dark mode.", "contact_ok": True},
)
answer.raise_for_status()
print(answer.json())
```

```js tab="Node.js"
const { BASE, TOKEN } = process.env;

const answer = await fetch(`${BASE}/api/v1/feedback`, {
  method: "POST",
  headers: {
    Authorization: `Bearer ${TOKEN}`,
    "Idempotency-Key": "9d2f6a1c-4b7e-4f0a-8c35-1e7a2b6d9f40",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({ kind: "idea", message: "Please add a dark mode.", contact_ok: true }),
});
if (!answer.ok) throw new Error(`Feedback failed: ${answer.status}`);
console.log(await answer.json());
```

## Limits and errors

Each new item sends a receipt to the account email, with the reference and the start of the message. The same text again within 10 minutes returns the first item and sends no second receipt.

You may send 5 items an hour and 20 a day for each account, and 30 an hour from one IP address. Past that, the call answers `429` [`rate_limited`](https://renzo-digital.com/docs/error-codes#rate_limited). Bad input, such as an empty message, answers `422`.
