POST
/
api
/
topic

Authorizations

Authorization
string
headerrequired

Headers

TR-Dataset
string
required

The dataset id or tracking_id to use for the request. We assume you intend to use an id if the value is a valid uuid.

Body

application/json
first_user_message
string | null

The first message which will belong to the topic. The topic name is generated based on this message similar to how it works in the OpenAI chat UX if a name is not explicitly provided on the name request body key.

name
string | null

The name of the topic. If this is not provided, the topic name is generated from the first_user_message.

owner_id
string
required

The owner_id of the topic. This is typically a browser fingerprint or your user's id. It is used to group topics together for a user.

Response

200 - application/json
created_at
string
required
dataset_id
string
required
deleted
boolean
required
id
string
required
name
string
required
owner_id
string
required
updated_at
string
required