# FEEDBACK

feedback endpoints.

**Base URL:** `https://api.trustpager.com/functions/v1/api/v1`

## Endpoints

### POST /feedback

Log a piece of customer feedback. Unhappy feedback (negative, or a rating at or below the workspace setting) is saved as needs_attention, and the team member set to hear about unhappy customers gets a high-priority task and an email.

**Scopes:** `feedback:write` — [full detail](./feedback/post-feedback.md)

### DELETE /feedback/:feedback_id

Delete a piece of customer feedback.

**Scopes:** `feedback:delete` — [full detail](./feedback/delete-feedback-feedback-id.md)

### GET /feedback/:feedback_id

Get one piece of customer feedback.

**Scopes:** `feedback:read` — [full detail](./feedback/get-feedback-feedback-id.md)

### GET /feedback/settings

Get the workspace feedback settings: who hears about unhappy customers, what rating counts as unhappy, and how long the Feedback Agent waits before calling the same customer again.

**Scopes:** `feedback:read` — [full detail](./feedback/get-feedback-settings.md)

### GET /feedback

List customer feedback, newest first. Filter with status (logged, needs_attention, in_progress, resolved), sentiment (positive, mixed, negative), source, contact_id or assigned_to.

**Scopes:** `feedback:read` — [full detail](./feedback/get-feedback.md)

### POST /feedback/:feedback_id/resolve

Mark customer feedback resolved, with an optional note on what was done.

**Scopes:** `feedback:write` — [full detail](./feedback/post-feedback-feedback-id-resolve.md)

### PATCH /feedback/:feedback_id

Update customer feedback: move its status, assign it, add what was done, or correct what was recorded.

**Scopes:** `feedback:write` — [full detail](./feedback/patch-feedback-feedback-id.md)

### PATCH /feedback/settings

Change the workspace feedback settings.

**Scopes:** `feedback:write` — [full detail](./feedback/patch-feedback-settings.md)
