Skip to main content
POST
Creates a publicly shareable version of the chat. If the chat is already shared, updates the shared version with the latest chat data.
Users require the chat.share permission to share chats. Admin users can share any chat.

Path Parameters

string
required
The unique identifier of the chat to share

Response

string
required
Unique identifier for the chat
string
required
ID of the user who owns the chat
string
required
Chat title
object
required
Complete chat data object
integer
required
Unix timestamp (epoch seconds) when chat was created
integer
required
Unix timestamp (epoch seconds) when chat was last updated
string
required
ID for accessing the shared chat publicly. Use this ID to construct the share URL.
boolean
required
Whether the chat is archived
boolean
required
Whether the chat is pinned
object
Metadata object
string
ID of the folder containing this chat

Notes

  • The share_id in the response can be used to construct a public share URL
  • If the chat is already shared, this endpoint updates the shared version with the latest chat content
  • Shared chats are stored as separate chat records with a user_id of shared-{original_chat_id}
  • To unshare a chat, use the DELETE /api/chats/{id}/share endpoint
  • Non-admin users require chat.share permission to use this endpoint