# Sentiment Score

The Meetra AI API provides endpoint for analyzing and extracting sentiment scores from processed meeting recording.

**Endpoint:**&#x20;

`/single-feature-api/meeting/meeting-sentiment`

**HTTP Method:** GET

#### Parameters

* `Authorization` (header): Bearer token required for authentication.
* `file-hash` (query): Hash of the meeting recording file.

#### Responses

| HTTP Status Code | Description                                     | Schema             |
| ---------------- | ----------------------------------------------- | ------------------ |
| 200              | Meeting sentiment score successfully retrieved. | Meeting\_sentiment |
| 400              | Bad request.                                    | UploadError400     |
| 401              | Unauthorized.                                   | UploadError401     |
| 404              | Meeting not found.                              | -                  |

**Meeting\_sentiment (schema)**

| Property          | Type    | Description                     |
| ----------------- | ------- | ------------------------------- |
| `sentiment_score` | integer | Sentiment score of the meeting. |

**Example Request**

```
GET /single-feature-api/meeting/meeting-sentiment?file-hash=abcdef1234567890
Authorization: Bearer <JWT_token>
```

**Example Response**

```json
{
  "sentiment_score": 75
}
```

#### Error Responses

| HTTP Status Code | Description        | Schema         |
| ---------------- | ------------------ | -------------- |
| 400              | Bad request.       | UploadError400 |
| 401              | Unauthorized.      | UploadError401 |
| 404              | Meeting not found. | -              |

**UploadError400 (schema)**

| Property  | Type   | Description    |
| --------- | ------ | -------------- |
| `message` | string | Error message. |

**UploadError401 (schema)**

| Property  | Type   | Description    |
| --------- | ------ | -------------- |
| `message` | string | Error message. |
