> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ruby.ad/llms.txt
> Use this file to discover all available pages before exploring further.

# Get events for a message

> Stream events for a message in the workspace identified by {wId} using Server-Sent Events (SSE).
The stream starts with a `:connect` comment. Message frames carry JSON with `eventId` and `data` fields. A plain-text `data: done` frame ends the current connection; clients may reconnect with `lastEventId`.




## OpenAPI

````yaml /docs/developer-platform/ruby-api-documentation/openapi.json get /api/v1/w/{wId}/assistant/conversations/{cId}/messages/{mId}/events
openapi: 3.0.0
info:
  title: Ruby API
  version: 1.0.2
  description: OpenAPI specification for the Ruby API.
  license:
    name: MIT
    url: https://opensource.org/licenses/MIT
servers:
  - url: https://app.ruby.ad
    description: Ruby API
security: []
tags:
  - name: Users
    description: User management
  - name: Agents
    description: Agent configurations
  - name: Analytics
    description: Workspace analytics
  - name: Apps
    description: Ruby apps
  - name: Conversations
    description: Conversations
  - name: Datasources
    description: Data sources
  - name: DatasourceViews
    description: Data source views
  - name: Feedbacks
    description: Message feedbacks
  - name: MCP
    description: MCP servers
  - name: Mentions
    description: Mentions
  - name: Search
    description: Search
  - name: Skills
    description: Skills
  - name: Spaces
    description: Spaces
  - name: Tools
    description: Tools
  - name: Triggers
    description: Triggers
  - name: Workspace
    description: Workspace
  - name: Private Agents
    description: Private API - Agent configurations
  - name: Private Authentication
    description: Private API - Authentication (WorkOS)
  - name: Private Conversations
    description: Private API - Conversations
  - name: Private Events
    description: Private API - SSE event streams
  - name: Private Extension
    description: Private API - Extension configuration
  - name: Private Files
    description: Private API - File uploads
  - name: Private Mentions
    description: Private API - Mention suggestions
  - name: Private Messages
    description: Private API - Messages
  - name: Private Spaces
    description: Private API - Spaces and data source views
  - name: Private User
    description: Private API - User
  - name: Private Workspace
    description: Private API - Workspace settings
paths:
  /api/v1/w/{wId}/assistant/conversations/{cId}/messages/{mId}/events:
    get:
      tags:
        - Conversations
      summary: Get events for a message
      description: >
        Stream events for a message in the workspace identified by {wId} using
        Server-Sent Events (SSE).

        The stream starts with a `:connect` comment. Message frames carry JSON
        with `eventId` and `data` fields. A plain-text `data: done` frame ends
        the current connection; clients may reconnect with `lastEventId`.
      parameters:
        - in: path
          name: wId
          required: true
          description: ID of the workspace
          schema:
            type: string
        - in: path
          name: cId
          required: true
          description: ID of the conversation
          schema:
            type: string
        - in: path
          name: mId
          required: true
          description: ID of the message
          schema:
            type: string
        - in: query
          name: lastEventId
          required: false
          description: >-
            Redis stream ID of the last received message event. Omit or pass an
            empty value to start from the available history.
          schema:
            type: string
      responses:
        '200':
          description: >-
            SSE event stream with a `:connect` comment followed by message
            frames. The JSON `data` field in each message frame contains the
            event, discriminated by `type`.
          content:
            text/event-stream:
              schema:
                type: object
                required:
                  - eventId
                  - data
                properties:
                  eventId:
                    type: string
                    description: Redis stream ID used as the resume cursor.
                  data:
                    type: object
                    description: Agent message event discriminated by its type field.
        '400':
          description: Bad Request
        '401':
          description: Unauthorized
        '404':
          description: Not Found
        '500':
          description: Internal Server Error
      security:
        - BearerAuth: []
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: Your RUBY API key is a Bearer token.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.