# feedback.submit

`POST /api/public/v1/feedback`

Report a bug, friction, unclear docs, an improvement idea or a question to the Browlix team as a ticket; once per distinct issue, never secrets — same issue from you within 24 h joins the open ticket.

- Capability: `feedback.submit`
- Command: yes — send a `command_id`; resending the same id and body returns the stored receipt
- MCP tool: `feedback_submit`

## Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `command_id` | body | string (uuid) | yes | Client-generated UUID for this command. Send the same id (and body) again to get the stored receipt instead of a second change; a different body under the same id is CONFLICT. |
| `category` | body | "bug" \| "friction" \| "feature_request" \| "docs" \| "question" \| "praise" | yes | bug · friction (worked but awkward or slow) · feature_request · docs · question · praise |
| `summary` | body | string | yes | One line, like an issue title (min length 1, max length 160) |
| `description` | body | string | yes | What you tried and what happened; redacted evidence only, never secrets or full transcripts (min length 1, max length 6000) |
| `severity` | body | "low" \| "medium" \| "high" \| "critical" | no | Your own estimate |
| `related_operation` | body | string | no | API operation id involved, e.g. sessions.start (max length 120) |
| `related_tool` | body | string | no | MCP tool name involved, e.g. sessions_start (max length 120) |
| `related_request_id` | body | string (uuid) | no | correlation_id of the request involved (kept only if it belongs to this workspace) |
| `related_command_id` | body | string (uuid) | no | command_id of the write involved (kept only if it belongs to this workspace) |
| `related_correlation_id` | body | string (uuid) | no | Another correlation_id involved |
| `expected` | body | string | no | (max length 1000) |
| `actual` | body | string | no | (max length 1000) |
| `steps` | body | array<string> | no | Steps to reproduce (max 10 items) |
| `docs_url` | body | string (uri) | no | Docs page this is about (max length 500) |
| `rating` | body | integer | no | How the experience felt, 1–5 (min 1, max 5) |
| `client` | body | object | no | Your client (self-declared), e.g. Cursor 1.7 |
| `model` | body | object | no | Your model (self-declared) |

## Response

`201` with `{ data, replayed: false, correlation_id }` the first time; `200` with `replayed: true` for a repeated `command_id`.

| Field | Type | Always present | Description |
|---|---|---|---|
| `data` | object | yes |  |
| `data.id` | string (uuid) | yes |  |
| `data.ref` | string | yes | Human reference, e.g. FB-12 |
| `data.number` | integer | yes | (min -9007199254740991, max 9007199254740991) |
| `data.status` | "new" \| "triaged" \| "in_progress" \| "answered" \| "resolved" \| "closed" \| "duplicate" \| "wont_fix" | yes |  |
| `data.category` | "bug" \| "friction" \| "feature_request" \| "docs" \| "question" \| "praise" | yes |  |
| `data.summary` | string | yes |  |
| `data.description` | string | yes | Stored after redaction |
| `data.severity` | "low" \| "medium" \| "high" \| "critical" \| null | yes |  |
| `data.priority` | string \| null | yes |  |
| `data.reporter` | string | yes |  |
| `data.interface` | string | yes |  |
| `data.revision` | integer | yes | (min -9007199254740991, max 9007199254740991) |
| `data.related` | object | yes |  |
| `data.client` | object | yes |  |
| `data.model` | object | yes |  |
| `data.steps` | array<string> | yes |  |
| `data.expected` | string \| null | yes |  |
| `data.actual` | string \| null | yes |  |
| `data.docs_url` | string \| null | yes |  |
| `data.rating` | integer \| null | yes |  |
| `data.duplicate_of` | string (uuid) \| object \| null | yes |  |
| `data.resolution_note` | string \| null | yes |  |
| `data.dedup_count` | integer | yes | (min -9007199254740991, max 9007199254740991) |
| `data.submitted_by_key` | boolean | yes |  |
| `data.redaction_version` | integer | yes | (min -9007199254740991, max 9007199254740991) |
| `data.created_at` | string (date-time) | yes |  |
| `data.updated_at` | string (date-time) | yes |  |
| `data.last_activity_at` | string (date-time) | yes |  |
| `data.answered_at` | string (date-time) \| null | yes |  |
| `data.closed_at` | string (date-time) \| null | yes |  |
| `data.deduplicated` | boolean | yes | true when this matched an open ticket of yours and was counted on it |
| `correlation_id` | string (uuid) | yes |  |
| `replayed` | boolean | no | true when this command_id was already applied and the stored receipt came back |

New fields can appear at any time; ignore the ones you do not know.

## Errors

| Code | HTTP | Retryable |
|---|---|---|
| `UNAUTHENTICATED` | 401 | no |
| `FORBIDDEN` | 403 | no |
| `RATE_LIMITED` | 429 | yes |
| `VALIDATION_FAILED` | 422 | no |
| `CONFLICT` | 409 | no |
| `OUTCOME_UNKNOWN` | 202 | yes |
| `DEPENDENCY_UNAVAILABLE` | 503 | yes |
| `UNKNOWN` | 500 | no |

## Example (curl)

```bash
curl -X POST "https://browlix.com/api/public/v1/feedback" \
  -H "Authorization: Bearer $BROWLIX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"command_id":"<uuid>","category":"bug","summary":"<summary>","description":"<description>"}'
```

## Example (TypeScript SDK)

```ts
import { Browlix } from "@browlix/sdk";

const bx = new Browlix({ apiKey: process.env.BROWLIX_API_KEY! });
const reply = await bx.call("feedback.submit", { body: {"category":"bug","summary":"<summary>","description":"<description>"} });
console.log(reply.data);
```

## Example (Python)

```python
import os, uuid
import requests

r = requests.post(
    "https://browlix.com/api/public/v1/feedback",
    headers={"Authorization": f"Bearer {os.environ['BROWLIX_API_KEY']}"},
    json={"command_id":str(uuid.uuid4()),"category":"bug","summary":"<summary>","description":"<description>"},
    timeout=60,
)
print(r.status_code, r.json())
```

## Example (MCP)

```json
{
  "method": "tools/call",
  "params": {
    "name": "feedback_submit",
    "arguments": {
      "category": "bug",
      "summary": "<summary>",
      "description": "<description>"
    }
  }
}
```
