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

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

`POST /llm_assistant/count_existing_assistant_annotations`

## Request

- The document declares no server URL.
- Auth: OAuth 2
  - Password
  - Token URL: `/authentication/login`

## Query parameters

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

## Request body

- BodyLlmAssistantCountExistingAssistantAnnotations
  - `sdoc_ids` integer[], required
  - `code_ids` integer[], required

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-19** `90c133703342`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/uhh-lt/apis/discourse-analysis-tool-suite-api/changes/llm_assistant/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.dev/uhh-lt/apis/discourse-analysis-tool-suite-api/revisions/e498207e29f4?raw)
