Overview
The Conversations API allows you to manage chat conversations, including creating, retrieving, updating, archiving, and deleting conversations. All conversation endpoints are prefixed with/api/convos.
List Conversations
Retrieve a paginated list of conversations:Query Parameters
Number of conversations to return (max 100)
Cursor for pagination from previous response
Filter by archive status (
true for archived, false for active)Filter by conversation tags
Search conversations by title or content
Sort field:
updatedAt, createdAt, or titleSort direction:
asc or descResponse
Array of conversation objects
Current page number
Number of items per page
Total number of pages
Get Conversation
Retrieve a specific conversation by ID:Path Parameters
Unique identifier for the conversation
Response
Unique conversation identifier
Conversation title
AI endpoint used (e.g.,
openAI, anthropic, google)Model identifier (e.g.,
gpt-4, claude-3-opus)ISO 8601 timestamp of creation
ISO 8601 timestamp of last update
Whether the conversation is archived
Array of tags associated with the conversation
Update Conversation Title
Update the title of a conversation:Request Body
ID of the conversation to update
New title (max 1024 characters, will be trimmed)
Response
Returns the updated conversation object.Archive/Unarchive Conversation
Archive or unarchive a conversation:Request Body
ID of the conversation to archive/unarchive
true to archive, false to unarchiveResponse
Returns the updated conversation object.Delete Conversation
Delete a specific conversation:Request Body
ID of the conversation to delete
Source of the deletion request (e.g.,
button)OpenAI thread ID (for assistant endpoints)
Endpoint type (e.g.,
assistants, azureAssistants)Response
Delete All Conversations
Delete all conversations for the authenticated user:Response
Generate Title
Generate or retrieve an AI-generated title for a conversation:Path Parameters
Conversation ID to generate title for
Response
AI-generated title for the conversation
Fork Conversation
Create a new conversation branch from a specific message:Request Body
Original conversation ID
Target message ID to fork from
Fork option:
target or branchWhether to split at the target message
Latest message ID in the conversation
Response
New forked conversation
Messages in the new conversation
Duplicate Conversation
Create an exact copy of a conversation:Request Body
ID of conversation to duplicate
Title for the duplicated conversation (optional)
Response
Returns the new duplicated conversation object.Import Conversations
Import conversations from a JSON file:Request
Multipart form data with a JSON file.JSON file containing conversation data
Response
Rate Limits
Import endpoint has special rate limiting:- IP-based limit
- User-based limit
Conversation Tags
Add Tag to Conversation
Conversation ID
Tag name to add
List Tags
Page number for pagination
Sort field (e.g.,
name, count)Sort order:
asc or desc