> For the complete documentation index, see [llms.txt](https://docs.tnid.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tnid.com/api-reference/002_company/003_message_sentiment_analysis/005__get_sentiment_analysis_result.md).

# Get Sentiment Analysis Result

GraphQL endpoint: `/company`

Gets a single sentiment analysis result by ID, including the analyzed external communication. Only results for the company's own communications are accessible.

## Query

```graphql
query ($id: ID!) {
  sentimentAnalysisResult(id: $id) {
    id
    action
    certaintyFactor
    topics
    externalCommunication {
      id
      hostAddress
      remoteAddress
      messageBody
      type
      direction
    }
  }
}

```

## Variables

```json
{
  "id": "00000000-0000-4000-8000-000000000002"
}
```

## Response

```json
{
  "data": {
    "sentimentAnalysisResult": {
      "action": "SUBSCRIBE",
      "certaintyFactor": 0.9,
      "externalCommunication": {
        "direction": "INBOUND",
        "hostAddress": "1",
        "id": "00000000-0000-4000-8000-000000000001",
        "messageBody": "This is a test message",
        "remoteAddress": "1",
        "type": "SMS"
      },
      "id": "00000000-0000-4000-8000-000000000002",
      "topics": [
        "opt-out"
      ]
    }
  }
}
```
