> ## Documentation Index
> Fetch the complete documentation index at: https://docs.munsit.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Diarization Sentiment Analysis

> Generate sentiment analysis from a diarization record ID.

## Endpoint

`POST /diarization/{diarizationId}/sentiment-analysis`

## Authentication

```bash theme={null}
x-api-key: YOUR_MUNSIT_API_KEY
```

## Path parameter

| Parameter       | Type   | Required | Description           |
| --------------- | ------ | -------- | --------------------- |
| `diarizationId` | number | Yes      | Diarization record ID |

## Request body

| Field            | Type   | Required | Description                    |
| ---------------- | ------ | -------- | ------------------------------ |
| `analysis_depth` | string | No       | `light`, `standard`, or `deep` |

## Response highlights

* `language`
* `overall_sentiment`
* `speaker_sentiment`
* `sentiment_trends`
* `confidence_score`


## OpenAPI

````yaml POST /diarization/{diarizationId}/sentiment-analysis
openapi: 3.1.0
info:
  title: Munsit API
  description: >-
    Munsit - First True Arabic Voice AI that speaks Dialects From Abu Dhabi to
    Rabat with Voice Cloning & On-prem support
  version: 1.0.0
servers:
  - url: https://api.munsit.com/api/v1
    description: Global production server
  - url: https://ae.api.faseeh.ai/api/v1
    description: UAE regional server
security:
  - apiKeyAuth: []
paths:
  /diarization/{diarizationId}/sentiment-analysis:
    post:
      tags:
        - Speech-to-Text
      summary: Sentiment Analysis (Diarization)
      description: Generate sentiment analysis from a diarization record ID.
      operationId: diarizationSentimentAnalysis
      parameters:
        - name: diarizationId
          in: path
          required: true
          schema:
            type: string
          description: Diarization record ID
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                analysis_depth:
                  type: string
                  enum:
                    - light
                    - standard
                    - deep
      responses:
        '200':
          description: Diarization sentiment analysis generated successfully
        '400':
          description: Bad Request
        '401':
          description: Unauthorized - Invalid or missing API key
components:
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: API key for authentication

````