Skip to main content

Constructor

Parameters

Returns

SessionsClient

Methods

appendSessionTags()

Append tags to a session (deduplicating with existing tags).

Parameters

Request-specific configuration.

Returns

SessionTagsResponse

generateSessionInsights()

Trigger on-demand generation of session insights. Returns already_exists if insights have already been generated. Otherwise kicks off generation in the background. Poll the GET insights endpoint to retrieve results once generation completes.

Parameters

Request-specific configuration.

Returns

SessionInsightsGenerateResponse

getSession()

Get details of a specific session.

Parameters

Request-specific configuration.

Returns

SessionResponse

getSessionAttachments()

List all attachments for a session.

Parameters

Request-specific configuration.

Returns

SessionAttachment

getSessionInsights()

Get detailed insights for a specific session, including message counts, session size classification, and AI-generated analysis.

Parameters

Request-specific configuration.

Returns

SessionInsightsResponse

getSessionMessages()

List all messages for a session with cursor-based pagination, ordered chronologically.

Parameters

Request-specific configuration.

Returns

PaginatedResponseSessionMessage

getSessions()

List all sessions across the enterprise.

Parameters

Request-specific configuration.

Returns

SessionResponsePaginatedResponseSessionResponse

getSessionsInsights()

List sessions with detailed insights including message counts, session size classification, and AI-generated analysis.

Parameters

Request-specific configuration.

Returns

SessionInsightsResponsePaginatedResponseSessionInsightsResponse

getSessionTags()

Get the tags for a specific session.

Parameters

Request-specific configuration.

Returns

SessionTagsResponse

postSessionMessage()

Send a message to an active session. The session will be automatically resumed if suspended.

Parameters

Request-specific configuration.

Returns

SessionResponse

replaceSessionTags()

Replace all tags on a session.

Parameters

Request-specific configuration.

Returns

SessionTagsResponse