---
title: "Link an item to a survey theme"
url: https://docs.gleap.ai/en/reference/rest-api/link-theme-item
method: POST
path: "/engagement/surveys/{surveyId}/insights/links"
api: "API Reference"
tag: "Engagement Survey"
operationId: "LinkThemeItem"
updatedAt: "2026-11-01T18:40:15.677Z"
language: en
---

# Link an item to a survey theme

`POST https://api.gleap.io/v3/engagement/surveys/{surveyId}/insights/links`

Link a bug / feature request (`ticketId`) or a Kai Code session (`cloudSessionId`, or the `clientLaunchId` of a Kai Code draft that is not sent yet) to an AI theme (`themeId`) and/or a finding of the brief (`finding`: its title). The ticket or session must belong to the survey's project. Linking the same item twice returns the existing link. Returns `{ link }`; `GET /insights` returns every link as `links` and per theme as `themes[].links`.

## Authorization

- `Authorization` (header, required): `Bearer <token>`

## Path parameters

- `surveyId` (string, required)

## Headers

- `project` (string, required)

## Request body (`application/json`, required)

## Example request

```bash
curl --request POST \
  --url 'https://api.gleap.io/v3/engagement/surveys/{surveyId}/insights/links' \
  --header 'Authorization: Bearer <token>' \
  --header 'project: <project>' \
  --header 'Content-Type: application/json' \
  --data '{}'
```

## Responses

### 200 (`application/json`)

Ok
