## POST /api/v2/feedback

**Submit feedback**

Submit feedback about the API, developer documentation, dashboard, or automation experience. This endpoint is public and does not require an API key. Authenticated callers may still send it; when account context is available the submission is annotated internally. Use support tickets for account-specific incidents that need a tracked reply.

### Related Endpoints

- `GET /api/v2/support/tickets`: List support tickets
- `POST /api/v2/support/tickets`: Create support ticket
- `POST /api/v2/support/attachments`: Upload support attachment

### Headers

- `Accept`: application/json
- No authorization header required.
- `Content-Type`: application/json

### Request Body

- `subject` (string, required): Short feedback subject. Example: `Clarify email forwarding docs`
- `message` (string, required): Feedback, bug report, or documentation suggestion. Example: `The shared-hosting email forwarder docs should explain when to use domain email forwarding instead.`
- `email` (string,null, optional): Optional reply-to email for anonymous feedback. Authenticated callers can omit this. Example: `developer@example.net`
- `name` (string,null, optional): Optional contact name for anonymous feedback. Example: `API Developer`
- `sourceUrl` (string,null, optional): Optional page or endpoint URL the feedback refers to. Example: `https://developer.hostup.se/endpoints/webhosting-services/post-v2-shared-hosting-accountid-email-forwarders/`

### Request Examples

#### Documentation feedback

```bash
curl -X POST "https://cloud.hostup.se/api/v2/feedback" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{
    "subject": "Clarify email forwarding docs",
    "message": "The shared-hosting email forwarder docs should explain when to use domain email forwarding instead.",
    "sourceUrl": "https://developer.hostup.se/endpoints/webhosting-services/post-v2-shared-hosting-accountid-email-forwarders/"
  }'
```

```json
{
  "subject": "Clarify email forwarding docs",
  "message": "The shared-hosting email forwarder docs should explain when to use domain email forwarding instead.",
  "sourceUrl": "https://developer.hostup.se/endpoints/webhosting-services/post-v2-shared-hosting-accountid-email-forwarders/"
}
```

#### Anonymous API feedback with contact email

```bash
curl -X POST "https://cloud.hostup.se/api/v2/feedback" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{
    "subject": "Network action examples",
    "message": "Please add one request example for each VPS network action.",
    "email": "developer@example.net"
  }'
```

```json
{
  "subject": "Network action examples",
  "message": "Please add one request example for each VPS network action.",
  "email": "developer@example.net"
}
```

### Response Schema

- `submitted` (boolean, required) Example: `true`
- `receivedAt` (string, required) Example: `2026-04-28T12:00:00.000Z`

### Responses

#### 202 - Feedback accepted.
```json
{
  "submitted": true,
  "receivedAt": "2026-04-28T12:00:00.000Z"
}
```

#### 400 - Invalid request. The response body is an RFC 7807 Problem Details document.
```json
{
  "type": "https://developer.hostup.se/errors/invalid_request",
  "title": "Invalid request",
  "status": 400,
  "detail": "The request body failed validation.",
  "code": "invalid_request",
  "instance": "/api/v2/resource",
  "requestId": "req_01hxa3b4c5d6e7f8g9h0j1k2m3",
  "timestamp": "2026-04-27T12:34:56.000Z",
  "errors": [
    {
      "pointer": "/items/0/domainName",
      "detail": "`domainName` is required.",
      "code": "invalid_request"
    }
  ]
}
```

#### 429 - Rate limited. Retry after the limit resets. 429 responses include `Retry-After` seconds plus `X-RateLimit-*` headers.
```json
{
  "type": "https://developer.hostup.se/errors/rate_limit_exceeded",
  "title": "Too many requests",
  "status": 429,
  "detail": "Too many requests. Retry after the limit resets.",
  "code": "rate_limit_exceeded",
  "instance": "/api/v2/resource",
  "requestId": "req_01hxa3b4c5d6e7f8g9h0j1k2m3",
  "timestamp": "2026-04-27T12:34:56.000Z"
}
```

#### 500 - Internal error. Retry later or contact support if the issue persists.
```json
{
  "type": "https://developer.hostup.se/errors/internal_error",
  "title": "Internal server error",
  "status": 500,
  "detail": "An unexpected error occurred. Retry later or contact support if the issue persists.",
  "code": "internal_error",
  "instance": "/api/v2/resource",
  "requestId": "req_01hxa3b4c5d6e7f8g9h0j1k2m3",
  "timestamp": "2026-04-27T12:34:56.000Z"
}
```

#### 502 - Feedback could not be delivered right now.
```json
{
  "type": "https://developer.hostup.se/errors/upstream_failed",
  "title": "Feedback delivery failed",
  "status": 502,
  "detail": "The feedback could not be delivered right now. Try again later.",
  "code": "upstream_failed",
  "instance": "/api/v2/feedback",
  "requestId": "req_01hxa3b4c5d6e7f8g9h0j1k2m3",
  "timestamp": "2026-04-28T12:00:00.000Z"
}
```
