Skip to main content
POST
Rename Conversation

Authorizations

Authorization
string
header
required

Every request authenticates with an API key: Authorization: Bearer {API_KEY}. App endpoints take an app API key; knowledge endpoints take a knowledge base API key (Get Started).

Keep keys server-side; never embed them in client code. Requests with a missing or invalid key fail with HTTP 401 (unauthorized).

Path Parameters

conversation_id
string<uuid>
required

ID of the conversation to rename. Get conversation IDs from List Conversations.

Body

application/json
user
string
required

End-user identifier, defined by your app and unique within it. Must match the user the conversation was created with. See End User Identity.

Required string length: 1 - 255
name
string

New conversation name. Required unless auto_generate is true. Names are stored as at most 255 bytes. A longer name in a multi-byte script is cut at a character boundary and stored shorter, with no error.

Maximum string length: 255
auto_generate
boolean
default:false

Automatically generate the conversation name from the conversation's first question. When true, the name field is ignored. A generated name is truncated the same way.

Response

The updated conversation, with the name as stored.

id
string

Conversation ID.

name
string

Conversation name.

inputs
object

Input variables submitted when the conversation was created.

status
string

Always normal.

introduction
string

The app's opening statement captured when the conversation was created; an empty string when none is configured.

created_at
integer

Creation time as a Unix timestamp in seconds.

updated_at
integer

Last-update time as a Unix timestamp in seconds.