sessions

Get Session Messages

Get messages for a session with pagination.

Use this endpoint when you need complete message history without loading the full session object.

Supports three access levels based on session's agent/team:

  • PUBLIC: No authentication required
  • PASSWORD_PROTECTED: X-Access-Password header required
  • PRIVATE: User authentication required

Args: limit: Maximum messages to return (default 100) skip: Number of messages to skip for pagination order: Sort order - 'asc' (oldest first) or 'desc' (newest first) paginated: If True, returns SessionMessagesResponse with total_count and has_more

get/api/v1/sessions/{session_id}/messages

Request

  • Base URL: https://api.gnosari.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.gnosari.com/api/v1/sessions/{session_id}/messages
  • Auth: one of:
    • HTTP bearer
    • API key in header X-AUTH-TOKEN

Path parameters

session_idstring required

Query parameters

limitinteger

Maximum messages to return

skipinteger

Number of messages to skip for pagination

order'asc' | 'desc'

Sort order - 'asc' (oldest first) or 'desc' (newest first)

paginatedboolean

Return paginated response with total_count and has_more

Headers

X-Access-Passwordstring nullable

Response

Successful Response

OR

Changes

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