---
title: "Get All Topics for Owner ID"
method: GET
path: "/api/topic/owner/{owner_id}"
tags: ["Topic"]
---

# Get All Topics for Owner ID

`GET /api/topic/owner/{owner_id}`

Get all topics belonging to an arbitary owner_id. This is useful for managing message history and chat sessions. It is common to use a browser fingerprint or your user's id as the owner_id. Auth'ed user or api key must have an admin or owner role for the specified dataset's organization.

## Path parameters

- `owner_id` string, required

## Headers

- `TR-Dataset` string, uuid, required

## Response `200`

All topics belonging to a given owner_id

- Topic[]
  - `created_at` string, date-time, required
  - `dataset_id` string, uuid, required
  - `deleted` boolean, required
  - `id` string, uuid, required
  - `name` string, required
  - `owner_id` string, required
  - `updated_at` string, date-time, required

## Other responses

- `400` — Service error relating to getting topics for the owner_id

---

[API](https://skmtc.net/devflowinc/apis/trieve-api.md) · [All operations](https://skmtc.net/devflowinc/apis/trieve-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/devflowinc/trieve-api/revisions/84583e7c9fc1/schema)
