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

# Get an incident's root cause analysis

> `investigation` is null when none has run. A GET never starts one.

**Scope:** `resolve:incidents:read`. See [API Tokens](https://docs.cloudthinker.io/guide/api/tokens.md#scopes).


## OpenAPI

````yaml /api-reference/openapi.json get /v1/workspaces/{workspace_id}/resolve/incidents/{incident_id}/investigation
openapi: 3.1.0
info:
  title: CloudThinker Public API
  version: 1.0.0
  description: >-
    Public API v1. Every path names its workspace. IDs are UUIDs. Lists page
    with `limit` and `cursor`. Writes take `Idempotency-Key`. A write runs at
    once when the token's scopes allow it. Clients ask their person first for
    operations marked `x-confirm`.
servers:
  - url: https://app.cloudthinker.io/api/public
security:
  - bearer: []
tags:
  - name: token
    description: The calling token.
  - name: chat
    description: Ask CloudThinker and read past conversations.
  - name: resolve
    description: Production signals, incidents and root cause analysis.
  - name: review
    description: Code reviews, findings and release risk.
  - name: approvals
    description: Approval requests waiting for a person.
  - name: workspace
    description: Connections and their health.
  - name: optimize
    description: Cloud cost overview, savings findings and anomalies.
  - name: cyber
    description: Pentest apps and findings, code audits.
paths:
  /v1/workspaces/{workspace_id}/resolve/incidents/{incident_id}/investigation:
    get:
      tags:
        - resolve
      summary: >-
        Get an incident's root cause analysis: summary, causal graph,
        remediation.
      description: '`investigation` is null when none has run. A GET never starts one.'
      operationId: resolve.incidents.investigation
      parameters:
        - $ref: '#/components/parameters/WorkspaceId'
        - name: incident_id
          in: path
          required: true
          description: Incident id.
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: OK
          headers:
            X-Request-ID:
              $ref: '#/components/headers/X-Request-ID'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IncidentInvestigation'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthenticated'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/ValidationError'
        '429':
          $ref: '#/components/responses/RateLimited'
      security:
        - bearer: []
components:
  parameters:
    WorkspaceId:
      name: workspace_id
      in: path
      required: true
      description: Workspace to act in. Every call names it.
      schema:
        type: string
        format: uuid
  headers:
    X-Request-ID:
      description: Request id. Quote it to support.
      schema:
        type: string
    RateLimit-Limit:
      description: Requests allowed in the current window.
      schema:
        type: integer
    RateLimit-Remaining:
      description: Requests left in the current window.
      schema:
        type: integer
    RateLimit-Reset:
      description: Seconds until the window resets.
      schema:
        type: integer
    Retry-After:
      description: Seconds to wait before retrying.
      schema:
        type: integer
  schemas:
    IncidentInvestigation:
      type: object
      title: IncidentInvestigation
      properties:
        investigation:
          anyOf:
            - $ref: '#/components/schemas/Investigation'
            - type: 'null'
          description: Null when no investigation has run yet. A GET never starts one.
      required:
        - investigation
    Investigation:
      type: object
      title: Investigation
      properties:
        id:
          type: string
          format: uuid
        incident_id:
          type: string
          format: uuid
        summary_md:
          type:
            - string
            - 'null'
        evidence_status:
          anyOf:
            - $ref: '#/components/schemas/EvidenceStatus'
            - type: 'null'
        analysis_md:
          type:
            - string
            - 'null'
        causal_graph:
          anyOf:
            - $ref: '#/components/schemas/CausalGraph'
            - type: 'null'
        steps:
          type: array
          items:
            $ref: '#/components/schemas/InvestigationStep'
        remediation_suggestions:
          type: array
          items:
            $ref: '#/components/schemas/RemediationSuggestion'
        affected_services:
          type: array
          items:
            $ref: '#/components/schemas/AffectedService'
        severity_suggestion:
          anyOf:
            - $ref: '#/components/schemas/SeveritySuggestion'
            - type: 'null'
        root_cause_identified_at:
          type:
            - string
            - 'null'
          format: date-time
        report_status:
          $ref: '#/components/schemas/ReportStatus'
        report_generated_at:
          type:
            - string
            - 'null'
          format: date-time
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
      required:
        - id
        - incident_id
        - summary_md
        - evidence_status
        - analysis_md
        - causal_graph
        - steps
        - remediation_suggestions
        - affected_services
        - severity_suggestion
        - root_cause_identified_at
        - report_status
        - report_generated_at
        - created_at
        - updated_at
      description: Root cause analysis for one incident.
    ApiErrorResponse:
      type: object
      title: ApiErrorResponse
      properties:
        error:
          $ref: '#/components/schemas/ApiErrorDetail'
        request_id:
          type: string
      required:
        - error
        - request_id
      description: >-
        Every non-2xx response. Read `error.code` and `error.action`; quote
        `request_id` to support.
      x-todo:
        - >-
          detail: deprecated untyped compatibility payload; still sent by the
          server, left out of the public contract
    EvidenceStatus:
      type: string
      enum:
        - confirmed
        - probable
        - possible
      title: EvidenceStatus
    CausalGraph:
      type: object
      title: CausalGraph
      properties:
        nodes:
          type: array
          items:
            $ref: '#/components/schemas/CausalGraphNode'
        edges:
          type: array
          items:
            $ref: '#/components/schemas/CausalGraphEdge'
      required:
        - nodes
        - edges
    InvestigationStep:
      type: object
      title: InvestigationStep
      properties:
        source:
          type: string
        checked:
          type: string
        found:
          type: string
        label:
          $ref: '#/components/schemas/StepLabel'
        proof:
          type: array
          items:
            $ref: '#/components/schemas/InvestigationStepProof'
      required:
        - source
        - checked
        - found
        - label
        - proof
    RemediationSuggestion:
      type: object
      title: RemediationSuggestion
      properties:
        title:
          type: string
        description:
          type: string
        priority:
          $ref: '#/components/schemas/RemediationPriority'
        causal_relationship:
          type:
            - string
            - 'null'
          enum:
            - mitigation
            - addresses_root_cause
            - follow_up
      required:
        - title
        - description
        - priority
        - causal_relationship
    AffectedService:
      type: object
      title: AffectedService
      properties:
        name:
          type: string
        external_id:
          type:
            - string
            - 'null'
      required:
        - name
    SeveritySuggestion:
      type: object
      title: SeveritySuggestion
      properties:
        suggested_severity:
          $ref: '#/components/schemas/Severity'
        reason:
          type: string
        status:
          $ref: '#/components/schemas/SeveritySuggestionStatus'
      required:
        - suggested_severity
        - reason
        - status
    ReportStatus:
      type: string
      enum:
        - not_started
        - generating
        - completed
        - failed
      title: ReportStatus
    ApiErrorDetail:
      type: object
      title: ApiErrorDetail
      properties:
        code:
          anyOf:
            - $ref: '#/components/schemas/ApiErrorCode'
            - type: string
        category:
          $ref: '#/components/schemas/ApiErrorCategory'
        message:
          type: string
        action:
          anyOf:
            - $ref: '#/components/schemas/ApiErrorAction'
            - type: 'null'
        action_target:
          type:
            - string
            - 'null'
        retryable:
          type: boolean
        field_errors:
          type:
            - array
            - 'null'
          items:
            $ref: '#/components/schemas/ApiFieldError'
      required:
        - code
        - category
        - message
      x-todo:
        - >-
          context: untyped dict[str, JsonValue] in today's model; type its known
          keys or keep it out of the public contract
    CausalGraphNode:
      type: object
      title: CausalGraphNode
      properties:
        node_id:
          type: string
        kind:
          type: string
          enum:
            - trigger
            - contributing_factor
            - root_cause
            - impact
            - recovery
        label:
          type: string
      required:
        - node_id
        - kind
        - label
    CausalGraphEdge:
      type: object
      title: CausalGraphEdge
      properties:
        source_node_id:
          type: string
        target_node_id:
          type: string
        relation:
          type: string
          enum:
            - triggered
            - exposed
            - caused
            - resulted_in
            - recovered_by
      required:
        - source_node_id
        - target_node_id
        - relation
    StepLabel:
      type: string
      enum:
        - found
        - suspect
        - ruled_out
        - no_data
      title: StepLabel
    InvestigationStepProof:
      type: object
      title: InvestigationStepProof
      properties:
        tool_call_id:
          type: string
        tool:
          type: string
        ran_at:
          type: string
          format: date-time
      required:
        - tool_call_id
        - tool
        - ran_at
    RemediationPriority:
      type: string
      enum:
        - critical
        - high
        - medium
        - low
      title: RemediationPriority
    Severity:
      type: string
      enum:
        - critical
        - high
        - medium
        - low
        - info
      title: Severity
    SeveritySuggestionStatus:
      type: string
      enum:
        - pending
        - accepted
        - dismissed
      title: SeveritySuggestionStatus
    ApiErrorCode:
      type: string
      enum:
        - validation_error
        - unauthenticated
        - forbidden
        - not_found
        - conflict
        - rate_limited
        - dependency_unavailable
        - dependency_timeout
        - internal_error
      title: ApiErrorCode
    ApiErrorCategory:
      type: string
      enum:
        - invalid_input
        - unauthenticated
        - forbidden
        - policy_blocked
        - plan_limit
        - not_found
        - conflict
        - reconnect_required
        - rate_limited
        - dependency_unavailable
        - dependency_timeout
        - internal
      title: ApiErrorCategory
    ApiErrorAction:
      type: string
      enum:
        - fix_input
        - open_settings
        - contact_admin
        - upgrade
        - buy_credits
        - reconnect
        - retry
        - reload
        - sign_in
        - sso_login
        - copy_error_id
      title: ApiErrorAction
    ApiFieldError:
      type: object
      title: ApiFieldError
      properties:
        path:
          type: array
          items:
            anyOf:
              - type: string
              - type: integer
        code:
          type: string
        message:
          type: string
      required:
        - path
        - code
        - message
  responses:
    BadRequest:
      description: The request is malformed.
      headers:
        X-Request-ID:
          $ref: '#/components/headers/X-Request-ID'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiErrorResponse'
    Unauthenticated:
      description: Missing, expired or revoked token.
      headers:
        X-Request-ID:
          $ref: '#/components/headers/X-Request-ID'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiErrorResponse'
    Forbidden:
      description: The token lacks the scope, or your role lacks the permission.
      headers:
        X-Request-ID:
          $ref: '#/components/headers/X-Request-ID'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiErrorResponse'
    NotFound:
      description: Not found in this workspace, or you are not a member.
      headers:
        X-Request-ID:
          $ref: '#/components/headers/X-Request-ID'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiErrorResponse'
    ValidationError:
      description: A parameter or body field is invalid. See `error.field_errors`.
      headers:
        X-Request-ID:
          $ref: '#/components/headers/X-Request-ID'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiErrorResponse'
    RateLimited:
      description: Too many requests. Wait `Retry-After` seconds.
      headers:
        X-Request-ID:
          $ref: '#/components/headers/X-Request-ID'
        RateLimit-Limit:
          $ref: '#/components/headers/RateLimit-Limit'
        RateLimit-Remaining:
          $ref: '#/components/headers/RateLimit-Remaining'
        RateLimit-Reset:
          $ref: '#/components/headers/RateLimit-Reset'
        Retry-After:
          $ref: '#/components/headers/Retry-After'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiErrorResponse'
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      description: >-
        CloudThinker token: a personal access token `ct_pat_…` (fine-grained
        scopes, created in Settings) or an OAuth access token `ct_oat_…` (1
        hour, from the OAuth flow). Send `Authorization: Bearer <token>`. Scopes
        have the form `module:resource:read|write`; write includes read.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.