---
title: "Returns all SpanAnnotations in the SpanGroup with the given ID if it exists"
method: GET
path: "/spangroup/{span_group_id}/span_annotations"
tags: ["spanGroup"]
---

# Returns all SpanAnnotations in the SpanGroup with the given ID if it exists

`GET /spangroup/{span_group_id}/span_annotations`

## Path parameters

- `span_group_id` integer, required

## Response `200`

Successful Response

- SpanAnnotationRead[]
  - `begin` integer, required — Begin of the SpanAnnotation in characters
  - `end` integer, required — End of the SpanAnnotation in characters
  - `begin_token` integer, required — Begin of the SpanAnnotation in tokens
  - `end_token` integer, required — End of the SpanAnnotation in tokens
  - `id` integer, required — ID of the SpanAnnotation
  - `text` string, required — The SpanText the SpanAnnotation spans.
  - `code_id` integer, required — Code the SpanAnnotation refers to
  - `user_id` integer, required — User the SpanAnnotation belongs to
  - `sdoc_id` integer, required — SourceDocument the SpanAnnotation refers to
  - `created` string, date-time, required — Created timestamp of the SpanAnnotation
  - `updated` string, date-time, required — Updated timestamp of the SpanAnnotation
  - `group_ids` integer[], required — The group ids this span annotations belongs to
  - `memo_ids` integer[], required — Memo IDs attached to the SpanAnnotation

## Other responses

- `422` — Validation Error

---

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