> ## 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.

# List workspaces visible to observability users

> Wraps the platform `/v2/workspaces` API using the workspace's
`superAdminToken` so any user with `observability:read` can list
every workspace, not only the ones they personally have access to.
Returns the raw shape forwarded from the platform API (an array
of workspace summaries).

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




## OpenAPI

````yaml /api-reference/ai-governance-v2/swagger.yml get /v1/observability/workspaces
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/workspaces:
    get:
      tags:
        - Observability
      summary: List workspaces visible to observability users
      description: |
        Wraps the platform `/v2/workspaces` API using the workspace's
        `superAdminToken` so any user with `observability:read` can list
        every workspace, not only the ones they personally have access to.
        Returns the raw shape forwarded from the platform API (an array
        of workspace summaries).

        Requires `observability:read` permission. Rate-limited to 100
        calls per minute.
      operationId: listObservabilityWorkspaces
      parameters:
        - in: query
          name: page
          schema:
            type: string
          description: Page index (forwarded as-is).
        - in: query
          name: limit
          schema:
            type: string
          description: Max items per page (forwarded as-is).
        - in: query
          name: sort
          schema:
            type: string
            maxLength: 50
          description: Sort expression (forwarded as-is).
        - in: query
          name: search
          schema:
            type: string
            maxLength: 200
          description: Free-text search (forwarded as-is).
        - in: query
          name: ids
          schema:
            type: string
            maxLength: 2000
          description: Comma-separated workspace ids (forwarded URL-encoded).
      responses:
        '200':
          description: |
            Platform workspaces response (forwarded shape - the raw array
            returned by the platform `/v2/workspaces` API).
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/WorkspaceSummary'
        '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'
        '502':
          description: Platform `/v2/workspaces` API call failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    WorkspaceSummary:
      type: object
      description: |
        Workspace summary as forwarded from the platform `/v2/workspaces`
        API. Schema mirrors the platform spec - see
        `prisme.ai/specifications/swagger.yml` (`getWorkspaces` response).
      properties:
        id:
          type: string
        name:
          type: string
        dirty:
          type: boolean
        lastPush:
          $ref: '#/components/schemas/WorkspaceLastPush'
    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
    WorkspaceLastPush:
      type: object
      properties:
        createdAt:
          type: string
        createdBy:
          type: string
        version:
          type: string
        repositoryId:
          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_...`.

````