Slimlytics Real time API

Short-lived-session-authenticated server-sent events.

GitHub OpenAPI

Operations 1

GET /api/sites/{siteId}/stream Stream live events with SSE #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/slimlytics-com:slimlytics-com-real-time-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

slimlytics-com-real-time-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Slimlytics Real time API
  version: 1.0.0
  description: 'Account, personal API token, site configuration, privacy-preserving collection, reporting, goals, export, and real-time APIs for Slimlytics.


    Use a short-lived session JWT for creating personal API tokens. Use a `slyt_…` personal API token for durable CLI and agent access. Both use `Authorization: Bearer `. Collection write keys authorize ingestion only.'
  license:
    name: MIT
    identifier: MIT
servers:
- url: https://slimlytics.com
  description: Slimlytics Cloud
security:
- bearerAuth: []
tags:
- name: Real time
  description: Short-lived-session-authenticated server-sent events.
paths:
  /api/sites/{siteId}/stream:
    get:
      tags:
      - Real time
      summary: Stream live events with SSE
      operationId: streamEvents
      responses:
        '200':
          description: Server-sent event stream
          content:
            text/event-stream:
              schema:
                type: string
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
            text/plain:
              schema:
                type: string
              example: Failed to deserialize path parameters
        '401':
          description: Authentication required or invalid/expired credential
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Credential lacks permission
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Internal service error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      description: Native EventSource authentication uses the short-lived session JWT in the token query parameter because EventSource cannot set an Authorization header. Personal API tokens are intentionally rejected here and must never be placed in URLs.
      security:
      - sessionQuery: []
      parameters:
      - name: siteId
        in: path
        required: true
        description: Site UUID
        schema:
          type: string
          format: uuid
      - name: token
        in: query
        schema:
          type: string
        description: Short-lived JWT for native EventSource clients that cannot set Authorization
      - name: lastEventId
        in: query
        schema:
          type: integer
components:
  schemas:
    Error:
      type: object
      required:
      - error
      properties:
        error:
          type: object
          required:
          - code
          - message
          properties:
            code:
              type: string
              enum:
              - unauthorized
              - forbidden
              - not_found
              - bad_request
              - rate_limited
              - internal_error
            message:
              type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT or slyt_ personal API token
      description: Session JWT or personal API token. Token creation specifically requires a session JWT.
    sessionQuery:
      type: apiKey
      in: query
      name: token
      description: Short-lived session JWT for native EventSource clients. Never put personal API tokens in URLs.
    serverWriteKey:
      type: apiKey
      in: header
      name: X-Slimlytics-Server-Key
      description: Rotatable site secret accepted only by server request ingestion.
externalDocs:
  description: Complete Slimlytics CLI installation and command reference
  url: https://slimlytics.com/docs/cli