---
title: "Get sentiment history"
method: GET
path: "/crm_intelligence/sentiment/{crm_account_id}"
tags: ["Relations AI — CRM"]
---

# Get sentiment history

`GET /crm_intelligence/sentiment/{crm_account_id}`

## Request

- Base URL: `https://api.paperoffice.ai/latest`
- URL: `https://api.paperoffice.ai/latest/crm_intelligence/sentiment/{crm_account_id}`
- Auth: HTTP bearer

Sentiment analysis for an account over time. Shows sentiment trend from emails and notes.

## Path parameters

- `crm_account_id` string, required

## Query parameters

- `days` string

## Response `200`

Success

- object: Sentiment-Verlauf
  - `status` 'success' | 'error', required: HTTP-Level Status
  - `job_id` string, required
  - `message` string: Menschenlesbare Statusmeldung
  - `pipeline` string
  - `operation` string: Ausgefuehrte Operation
  - `processing_time` string: Gesamte Verarbeitungszeit inkl. Queue (Format: 123.45ms)
  - `result` object, required: Das eigentliche Verarbeitungsergebnis
    - `status` 'completed' | 'failed' | 'timeout': Job-Level Status
    - `message` string: Pipeline-spezifische Statusmeldung
    - `duration_ms` string: Reine Pipeline-Verarbeitungszeit in ms
    - `output` object
      - `history` object[]
      - `avg_score` number
      - `trend` string

## Other responses

- `4XX`: Error
- `5XX`: Error

---

[API](https://skmtc.dev/paperoffice/apis/paperoffice-ai-api.md) · [All operations](https://skmtc.dev/paperoffice/apis/paperoffice-ai-api/llms.txt) · [OpenAPI document](https://skmtc.dev/paperoffice/apis/paperoffice-ai-api/revisions/c6a6228a4509?raw)
