---
title: "Returns SpanAnnotationSearch Info."
method: POST
path: "/search/span_annotation_info"
tags: ["search"]
---

# Returns SpanAnnotationSearch Info.

`POST /search/span_annotation_info`

## Query parameters

- `project_id` integer, required

## Response `200`

Successful Response

- ColumnInfoSpanColumns[]
  - `label` string, required — Display label of the column
  - `column` union, required — The column: an enum member, or an int id referring to a project-metadata column
    - 'SP_SPAN_TEXT' | 'SP_CODE_ID_LIST_RECURSIVE' | 'SP_USER_ID' | 'SP_MEMO_CONTENT' | 'SP_SOURCE_SOURCE_DOCUMENT_NAME' | 'SP_TAG_ID_LIST_RECURSIVE' | 'SP_FOLDER_ID_LIST_RECURSIVE'
    - integer
  - `sortable` boolean, required — Whether the column can be sorted
  - `groupable` boolean, required — Whether the column can be grouped
  - `operator` 'BOOLEAN' | 'STRING' | 'ID' | 'NUMBER' | 'ID_LIST' | 'ID_LIST_RECURSIVE' | 'LIST' | 'DATE' | 'ATTACHED_OBJECT_TYPE' | 'ATTACHED_OBJECT' | 'SPAN_ANNOTATION', required
  - `value` 'ATTACHED_OBJECT_TYPE' | 'ATTACHED_OBJECT' | 'SDOC_ID' | 'CODE_ID' | 'USER_ID' | 'TAG_ID' | 'FOLDER_ID' | 'SPAN_ANNOTATION' | 'DOC_TYPE' | 'INFER_FROM_OPERATOR', required

## Other responses

- `422` — Validation Error

## Changes

- **2026-08-20** `28b2f0e8bc01` — 6 warning, 2 info
  - added the new `ATTACHED_OBJECT` enum value to the `items/operator` response property for the response status `200`
  - added the new `ATTACHED_OBJECT` enum value to the `items/value` response property for the response status `200`
  - added the new `ATTACHED_OBJECT_TYPE` enum value to the `items/operator` response property for the response status `200`
  - added the new `ATTACHED_OBJECT_TYPE` enum value to the `items/value` response property for the response status `200`
  - …4 more
- **2026-07-21** `ebfa22e4da0a` — 2 warning
  - added the new `FOLDER_ID` enum value to the `items/value` response property for the response status `200`
  - added the new `SP_FOLDER_ID_LIST_RECURSIVE` enum value to the `items/column/anyOf[subschema #1: SpanColumns]/` response property for the response status `200`
- **2026-07-20** `01c6f5cdc4f3` — 2 warning, 1 info
  - added the new `ID_LIST_RECURSIVE` enum value to the `items/operator` response property for the response status `200`
  - added the new `SP_TAG_ID_LIST_RECURSIVE` enum value to the `items/column/anyOf[subschema #1: SpanColumns]/` response property for the response status `200`
  - removed the `SP_TAG_ID_LIST` enum value from the `items/column/anyOf[subschema #1: SpanColumns]/` response property for the response status `200`
- …earlier changes not shown

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