> ## 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 full trace timeline for a correlationId

> Returns the timeline, automation summary, and error list for a
given correlation id. Returns 404 when no events exist for that
correlation id in the workspace.

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




## OpenAPI

````yaml /api-reference/ai-governance-v2/swagger.yml get /v1/observability/{workspaceId}/traces/{correlationId}
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}/traces/{correlationId}:
    parameters:
      - in: path
        name: workspaceId
        required: true
        schema:
          type: string
          maxLength: 64
          pattern: ^[a-zA-Z0-9_-]+$
        description: Workspace identifier.
      - in: path
        name: correlationId
        required: true
        schema:
          type: string
          maxLength: 128
          pattern: ^[a-zA-Z0-9_:-]+$
        description: Correlation id of the trace to inspect.
    get:
      tags:
        - Observability
      summary: Get the full trace timeline for a correlationId
      description: |
        Returns the timeline, automation summary, and error list for a
        given correlation id. Returns 404 when no events exist for that
        correlation id in the workspace.

        Requires `observability:read` permission. Rate-limited to 100
        calls per minute.
      operationId: getWorkspaceTrace
      responses:
        '200':
          description: Trace details.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Trace'
        '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'
        '404':
          description: No events found for this correlation id.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limit exceeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Trace:
      type: object
      properties:
        correlationId:
          type: string
        workspaceId:
          type: string
        summary:
          $ref: '#/components/schemas/TraceSummary'
        user:
          $ref: '#/components/schemas/TraceUser'
        timeline:
          type: array
          items:
            $ref: '#/components/schemas/TraceEvent'
        automations:
          type: array
          items:
            $ref: '#/components/schemas/TraceAutomation'
        errors:
          type: array
          items:
            $ref: '#/components/schemas/TraceError'
    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
    TraceSummary:
      type: object
      properties:
        eventCount:
          type: integer
        automationCount:
          type: integer
        errorCount:
          type: integer
        totalDurationMs:
          type: integer
        startTime:
          type: string
          format: date-time
        endTime:
          type: string
          format: date-time
    TraceUser:
      type: object
      properties:
        id:
          type: string
          nullable: true
        sessionId:
          type: string
          nullable: true
    TraceEvent:
      type: object
      properties:
        timestamp:
          type: string
          format: date-time
        offsetMs:
          type: integer
        type:
          type: string
        automation:
          type: string
        appInstance:
          type: string
        duration:
          type: integer
        trigger:
          $ref: '#/components/schemas/TraceTrigger'
        error:
          $ref: '#/components/schemas/TraceEventError'
        emittedEvent:
          type: string
    TraceAutomation:
      type: object
      properties:
        slug:
          type: string
        duration:
          type: integer
        startOffset:
          type: integer
    TraceError:
      type: object
      properties:
        automation:
          type: string
        error:
          type: string
        message:
          type: string
        timestamp:
          type: string
          format: date-time
    TraceTrigger:
      type: object
      properties:
        type:
          type: string
        value:
          type: string
    TraceEventError:
      type: object
      properties:
        code:
          type: string
        message:
          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_...`.

````