AI

Share an AI conversation

Creates a share link for the caller's conversation: a snapshot of its history as of now, or a live view of it, for org members or (when public chat links are enabled) anyone holding the link. Tool inputs and outputs are part of the share unless redact_tools is set, which is the default for public links. Public links must expire.

post/api/{org_id}/ai/chats/{session_id}/shares

Request

Path parameters

org_idstring required

Organization name

session_idstring required

Chat session ID

Request body

expires_in_secsinteger nullable

60 s to 365 days, absent = never; public shares need one within the public maximum.

modestring required

snapshot or live.

redact_toolsboolean nullable

Hide tool inputs and outputs from readers; defaults to true for public shares.

visibilitystring required

org or public.

Response

The new share

access_countinteger required
created_atinteger required
expires_atinteger nullable

Microseconds since the epoch; absent when the share never expires.

idstring required
last_accessed_atinteger nullable
modestring required
owner_emailstring nullable

The creator's email; only in the org-wide admin listing.

owner_namestring nullable

The creator's display name (email when unnamed); only in the org-wide admin listing.

redact_toolsboolean required

Readers see assistant text and tool names, never tool inputs or outputs.

session_idstring required
snapshot_seqinteger nullable
titlestring required
tokenstring nullable

Bearer secret of the link; absent on other creators' rows of the org-wide listing.

updated_atinteger required
url_pathstring nullable

Path of the web page that shows the share; absent whenever token is.

visibilitystring required

Changes

No recorded changes to this operation across all 1 revision of this API.