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

# The event stream (SSE)

> Server-sent events for the app's boards: message creates, edits, deletes, and interaction invocations. Long-lived connection.




## OpenAPI

````yaml /api/openapi.yaml get /gateway
openapi: 3.1.0
info:
  title: SigmaChat API
  version: '1'
  description: |
    The REST surface for SigmaChat apps and bots. Authenticate every
    request with a bot token in the Authorization header. Every response
    carries X-RateLimit-Limit, X-RateLimit-Remaining, and
    X-RateLimit-Reset; errors use a stable envelope
    `{ "error": { "code": "..." } }`.
servers:
  - url: https://sigmachat.org/api/v1
security:
  - botToken: []
paths:
  /gateway:
    get:
      summary: The event stream (SSE)
      description: >
        Server-sent events for the app's boards: message creates, edits,
        deletes, and interaction invocations. Long-lived connection.
      responses:
        '200':
          description: text/event-stream.
components:
  securitySchemes:
    botToken:
      type: http
      scheme: bearer
      description: An app token from the in-app developer settings.

````