# Get aggregate survey metrics and NPS score
URL: /docs/api-reference/micro-surveys-nps/getSurveyMetrics

## GET `/api/v1/public/surveys/{id}/metrics`

**Summary:** Get aggregate survey metrics and NPS score
**Operation ID:** `getSurveyMetrics`

**Authentication:** `X-Api-Key: sk_live_...` or `Authorization: Bearer sk_live_...`

### Parameters

| Name | In | Required | Description |
| :--- | :--- | :--- | :--- |
| `id` | `path` | Yes |  |

### Responses

- **`200`**: Response rate %, NPS score (-100 to +100), and breakdown

```json
{
  "type": "object",
  "properties": {
    "status": {
      "type": "string",
      "example": "success"
    },
    "data": {
      "type": "object",
      "properties": {
        "npsScore": {
          "type": "integer",
          "example": 68
        },
        "totalResponses": {
          "type": "integer",
          "example": 254
        },
        "promoters": {
          "type": "integer",
          "example": 190
        },
        "passives": {
          "type": "integer",
          "example": 45
        },
        "detractors": {
          "type": "integer",
          "example": 19
        }
      }
    }
  }
}
```
- **`401`**: Authentication failed or API key missing