Chat Sessions
Check floating-session usage and which user IDs are in an active 5-minute window.
GET /chat/sessions/ to inspect how many floating sessions your organization is using. This matches the same 5-minute sliding window used for floating-seat limits on /chat/query/: after a user’s first question, that identity counts as one session until five minutes pass with no new messages. Additional questions in that window do not open extra sessions.
Send your API key in the X-API-KEY header.
Query parameters
| Name | Type | Default | Description |
|---|---|---|---|
source | "all" | "api" | "web" | "all" | Restrict the active-session count to a specific traffic origin. api counts only POST /chat/query/ calls authenticated with an API key, web counts only in-app chats from the web UI, and all combines both. Any other value returns 400. |
Response Notes
total_sessionsis the maximum number of floating sessions allowed for the organization. It isnullwhen no limit is configured (unlimited).used_sessionsis how many distinctuser_idvalues have at least one qualifying conversation in the last five minutes (the same rule as floating-seat counting), filtered bysource.available_sessionsis the remaining capacity (total_sessions - used_sessions). It isnullwhen unlimited.active_user_idslists those identities (the sameuser_idstrings you send on/chat/query/).sourceechoes the query parameter so clients can tell which slice of traffic the counts cover.
Example Request
Example Response
Example Response (unlimited)
Authorizations
Query Parameters
Restrict the active-session count to a specific traffic origin. api counts only POST /chat/query/ calls authenticated with an API key, web counts only in-app chats from the web UI, and all (the default) combines both.
all, api, web Response
Session status
Floating-session usage for the organization. A session is active for five minutes after a user's first qualifying message; further messages in that window still count as one session per user identity.
Maximum floating sessions allowed for this organization. null if unlimited.
Number of distinct user identities with qualifying chat activity in the last five minutes.
Remaining floating sessions (total_sessions - used_sessions). null if unlimited.
Sorted list of user_id values that have an active floating session (recent activity in the five-minute window).
Traffic origin the counts were computed over. Echoes the source query parameter.
all, api, web