---
title: "Counts the SentenceAnnotations of the User (by user_id) per Codes (by class_ids) in Documents (by sdoc_ids)"
method: POST
path: "/sentence/count_annotations/{user_id}"
tags: ["sentenceAnnotation"]
---

# Counts the SentenceAnnotations of the User (by user_id) per Codes (by class_ids) in Documents (by sdoc_ids)

`POST /sentence/count_annotations/{user_id}`

## Path parameters

- `user_id` integer, required

## Request body

- BodySentenceAnnotationCountAnnotations
  - `sdoc_ids` integer[], required
  - `class_ids` integer[], required

## Response `200`

Successful Response

- object

## Other responses

- `422` — Validation Error

## Changes

- **2026-07-15** `1af5a8046f20` — 2 info
  - added the optional property `detail/items/ctx` to the response with the `422` status
  - added the optional property `detail/items/input` to the response with the `422` status
- **2025-09-05** `5acdf7f2834a` — 1 breaking, 1 warning
  - added the new required request property `class_ids`
  - removed the request property `code_ids`
- **2025-09-04** `ac72b8e534ee` — 1 info
  - endpoint added
- **2025-08-22** `53e769440a25` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/uhh-lt/apis/discourse-analysis-tool-suite-api/changes/sentence/count_annotations/:user_id/post.md)

---

[API](https://skmtc.dev/uhh-lt/apis/discourse-analysis-tool-suite-api.md) · [All operations](https://skmtc.dev/uhh-lt/apis/discourse-analysis-tool-suite-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/uhh-lt/discourse-analysis-tool-suite-api/revisions/a84d27ef7a0d/schema)
