---
title: "List topics"
method: GET
path: "/topics"
tags: ["Topics"]
---

# List topics

`GET /topics`

## Request

- Base URL: `https://api.commonroom.io/api/v2`
- URL: `https://api.commonroom.io/api/v2/topics`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/commonroom/apis/common-room-api-v2/docs/topics/get.ts> (a function with typed inputs; its response is checked against the schema)

Retrieve a paginated list of topics, sorted alphabetically by name.

## Query parameters

- `limit` integer
- `cursor` string
- `query` string
- `cols` string

## Response `200`

OK

- TopicList
  - `success` true, required
  - `data` ApiTopic[], required
    - `id` string, required: Prefixed topic ID (format `tp_<number>`)
    - `name` string, required: The topic's display name
  - `meta` object, required
    - `nextCursor` string, nullable: Cursor for pagination; pass as the `cursor` query parameter to fetch the next page.
    - `recordCount` integer: Total number of records matching the query. Only returned when `cols=recordCount` is requested.

## Other responses

- `400`: Bad Request
- `403`: Forbidden
- `429`: Rate Limited

---

[API](https://skmtc.dev/commonroom/apis/common-room-api-v2.md) - [All operations](https://skmtc.dev/commonroom/apis/common-room-api-v2/llms.txt) - [OpenAPI document](https://skmtc.dev/commonroom/apis/common-room-api-v2/revisions/865d4d43dadf?raw)
