---
title: "Based on the approach, count the number of existing assistant annotations"
method: POST
path: "/llm/count_existing_assistant_annotations"
tags: ["llm"]
---

# Based on the approach, count the number of existing assistant annotations

`POST /llm/count_existing_assistant_annotations`

## Query parameters

- `task_type` 'TAGGING' | 'METADATA_EXTRACTION' | 'ANNOTATION' | 'SENTENCE_ANNOTATION', required
- `approach_type` 'LLM_ZERO_SHOT' | 'LLM_FEW_SHOT', required

## Request body

- BodyLlmCountExistingAssistantAnnotations
  - `sdoc_ids` integer[], required
  - `code_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** `d59c807fb985` — 1 breaking
  - removed the enum value `MODEL_TRAINING` from the `query` request parameter `approach_type`
- **2025-08-22** `53e769440a25` — 2 warning, 1 info
  - removed the optional property `detail/items/ctx` from the response with the `422` status
  - removed the optional property `detail/items/input` from the response with the `422` status
  - added the new enum value `MODEL_TRAINING` to the `query` request parameter `approach_type`

[Change history](https://skmtc.dev/uhh-lt/apis/discourse-analysis-tool-suite-api/changes/llm/count_existing_assistant_annotations/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)
