---
title: "Webhook Handler"
method: POST
path: "SPAN_ANNOTATION_CREATED"
---

# Webhook Handler

`POST SPAN_ANNOTATION_CREATED` (webhook)

## Acknowledgement `200`

Successful Response

- SpanAnnotationCreatedEvent
  - `type` 'SPAN_ANNOTATION_CREATED'
  - `payload` SpanAnnotationRead, required
    - `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

---

[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/c68c19b13069?raw)
