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

# Get the real-time event feed for a workspace

> Returns runtime events (interactions, errors, failed fetches,
executions) for the requested window with filtering, pagination,
and per-type breakdown.

Requires `observability:read` permission. Rate-limited to 100
calls per minute.




## OpenAPI

````yaml /api-reference/ai-governance-v2/swagger.yml get /v1/observability/{workspaceId}/feed
openapi: 3.0.3
info:
  version: 1.0.0
  title: AI Governance API
  description: |
    Public REST API for the Prisme.ai AI Governance workspace -
    announcements, legal documents, notifications, observability
    dashboards, audit logs, and active-org listing.
  contact:
    name: Prisme.ai
    url: https://prisme.ai
servers:
  - url: https://{host}/v2/workspaces/slug:ai-governance-v2/webhooks
    description: Prisme.ai workspace webhooks
    variables:
      host:
        default: api.studio.prisme.ai
        description: API host (override for self-hosted or sandbox)
security:
  - BearerAuth: []
  - OrgApiKeyAuth: []
tags:
  - name: Announcements
    description: Platform announcements (CRUD + audience targeting).
  - name: Legal
    description: Versioned legal documents (terms, privacy, etc.).
  - name: Notifications
    description: Per-user notifications derived from announcements.
  - name: Observability
    description: >-
      Cross-workspace and per-workspace observability dashboards, traces, and
      feeds.
  - name: Orgs
    description: Organization listing and audit logs.
paths:
  /v1/observability/{workspaceId}/feed:
    parameters:
      - in: path
        name: workspaceId
        required: true
        schema:
          type: string
          maxLength: 64
          pattern: ^[a-zA-Z0-9_-]+$
        description: Workspace identifier.
    get:
      tags:
        - Observability
      summary: Get the real-time event feed for a workspace
      description: |
        Returns runtime events (interactions, errors, failed fetches,
        executions) for the requested window with filtering, pagination,
        and per-type breakdown.

        Requires `observability:read` permission. Rate-limited to 100
        calls per minute.
      operationId: getWorkspaceFeed
      parameters:
        - in: query
          name: minutes
          schema:
            type: string
          description: How far back to look (default 5).
        - in: query
          name: period
          schema:
            type: string
            maxLength: 8
            enum:
              - 1h
              - 24h
              - 7d
              - 30d
          description: |
            Preset window. Wins over `minutes`. Use `dateStart`/`dateEnd`
            (or `start`/`end`) for explicit ranges.
        - in: query
          name: dateStart
          schema:
            type: string
            format: date-time
            maxLength: 32
        - in: query
          name: dateEnd
          schema:
            type: string
            format: date-time
            maxLength: 32
        - in: query
          name: filter
          schema:
            type: string
            maxLength: 32
          description: Legacy alias mapped to a single scope; ignored when `scopes` is set.
        - in: query
          name: scopes
          schema:
            type: string
            maxLength: 128
          description: |
            Comma-separated scopes to surface. Supported values:
            `interactions`, `errors`, `failed_fetches`, `executions`.
            Default: `interactions,errors,failed_fetches`.
        - in: query
          name: text
          schema:
            type: string
            maxLength: 256
          description: Free-text search forwarded as `simple_query_string`.
        - in: query
          name: minDuration
          schema:
            type: string
            maxLength: 16
          description: Lower bound (ms, inclusive) on `payload.duration`.
        - in: query
          name: maxDuration
          schema:
            type: string
            maxLength: 16
          description: Upper bound (ms, inclusive) on `payload.duration`.
        - in: query
          name: userId
          schema:
            type: string
            maxLength: 128
          description: Filter on `source.userId` (single id).
        - in: query
          name: correlationIds
          schema:
            type: string
            maxLength: 4096
          description: Comma-separated list of correlation ids (terms filter).
        - in: query
          name: limit
          schema:
            type: string
          description: Max events (default 50).
        - in: query
          name: page
          schema:
            type: string
          description: Page index (0-based, default 0).
        - in: query
          name: automation
          schema:
            type: string
            maxLength: 128
          description: Filter by automation slug.
      responses:
        '200':
          description: Feed payload.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WorkspaceFeed'
        '400':
          description: Validation error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthenticated.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Forbidden - missing `observability:read` permission.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limit exceeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    WorkspaceFeed:
      type: object
      properties:
        workspaceId:
          type: string
        filter:
          type: string
        since:
          type: string
          format: date-time
        stats:
          type: object
          properties:
            totalEvents:
              type: integer
            uniqueUsers:
              type: integer
            throughputPerMinute:
              type: number
        typeBreakdown:
          type: array
          items:
            $ref: '#/components/schemas/FeedTypeBreakdown'
        events:
          type: array
          items:
            $ref: '#/components/schemas/FeedEvent'
        page:
          type: integer
        hasMore:
          type: boolean
    Error:
      type: object
      required:
        - error
        - message
      properties:
        error:
          type: string
          description: >-
            Stable PascalCase error code (e.g. AnnouncementNotFound,
            ValidationError).
        message:
          type: string
          description: Human-readable error message.
        details:
          type: object
          description: Optional structured context.
          additionalProperties: true
    FeedTypeBreakdown:
      type: object
      properties:
        type:
          type: string
        count:
          type: integer
    FeedEvent:
      type: object
      properties:
        id:
          type: string
        timestamp:
          type: string
          format: date-time
        type:
          type: string
        automation:
          type: string
        correlationId:
          type: string
        userId:
          type: string
        category:
          type: string
          enum:
            - error
            - execution
            - interaction
            - event
        duration:
          type: integer
        error:
          type: object
          additionalProperties: true
        message:
          type: string
        summary:
          type: string
        trigger:
          type: string
        emittedEvent:
          type: string
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: |
        User-bound credential carrying an identity: either a session JWT
        or a user access token (`at:*`) generated from the user settings UI.
        Send as `Authorization: Bearer <token>`.
        Org API keys (`iak_*`) are **not** accepted here - they carry
        no user identity. Use the `x-prismeai-api-key` header instead
        (see `OrgApiKeyAuth`).
    OrgApiKeyAuth:
      type: apiKey
      in: header
      name: x-prismeai-api-key
      description: |
        Organization API key (`iak_{orgSlug}_{uuid}`), managed from the
        AI Governance UI. Unlike `Authorization: Bearer`, this credential
        is **not** tied to a user identity - it is bound to the org and
        its effective access is defined by the scopes / permission rules
        attached to it (it can be restricted to a single project, or kept
        broader - e.g. usable across AI Governance, Agent Factory and
        LLM Gateway).
        Send as `x-prismeai-api-key: iak_...`.

````