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

# List incidents, newest first

> Filter by status, queue bucket, severity, text or time.

**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
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:
    get:
      tags:
        - resolve
      summary: List incidents, newest first.
      description: Filter by status, queue bucket, severity, text or time.
      operationId: resolve.incidents.list
      parameters:
        - $ref: '#/components/parameters/WorkspaceId'
        - name: status
          in: query
          required: false
          description: Only these statuses.
          schema:
            type: array
            items:
              $ref: '#/components/schemas/IncidentStatus'
          style: form
          explode: true
        - name: bucket
          in: query
          required: false
          description: Only these queue buckets.
          schema:
            type: array
            items:
              $ref: '#/components/schemas/IncidentQueueBucket'
          style: form
          explode: true
        - name: severity
          in: query
          required: false
          description: Only these severities.
          schema:
            type: array
            items:
              $ref: '#/components/schemas/Severity'
          style: form
          explode: true
        - name: search
          in: query
          required: false
          description: Text in the title or description.
          schema:
            type: string
            maxLength: 200
        - name: from
          in: query
          required: false
          description: Only incidents that occurred at or after this time.
          schema:
            type: string
            format: date-time
        - name: to
          in: query
          required: false
          description: Only incidents that occurred before this time.
          schema:
            type: string
            format: date-time
        - name: awaiting
          in: query
          required: false
          description: Only incidents with a runbook step waiting for approval.
          schema:
            type: boolean
        - name: children
          in: query
          required: false
          description: Also list child incidents.
          schema:
            type: boolean
        - $ref: '#/components/parameters/Limit'
        - $ref: '#/components/parameters/Cursor'
      responses:
        '200':
          description: OK
          headers:
            X-Request-ID:
              $ref: '#/components/headers/X-Request-ID'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IncidentPage'
        '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
    Limit:
      name: limit
      in: query
      required: false
      description: Items per page.
      schema:
        type: integer
        minimum: 1
        maximum: 100
        default: 20
    Cursor:
      name: cursor
      in: query
      required: false
      description: '`next_cursor` from the previous page.'
      schema:
        type: string
        maxLength: 512
  schemas:
    IncidentStatus:
      type: string
      enum:
        - OPEN
        - ACKNOWLEDGED
        - INVESTIGATING
        - IDENTIFIED
        - ON_HOLD
        - NOT_FOUND
        - FALSE_ALARM
        - RESOLVED
        - AUTO_RESOLVED
      title: IncidentStatus
    IncidentQueueBucket:
      type: string
      enum:
        - ai_handling
        - needs_decision
        - not_started
        - resolved
        - dismissed
      title: IncidentQueueBucket
    Severity:
      type: string
      enum:
        - critical
        - high
        - medium
        - low
        - info
      title: Severity
    IncidentPage:
      type: object
      title: IncidentPage
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/Incident'
        next_cursor:
          type:
            - string
            - 'null'
          description: Pass back as `cursor` for the next page. Null on the last page.
      required:
        - items
        - next_cursor
      description: Incidents, newest first.
    Incident:
      type: object
      title: Incident
      properties:
        id:
          type: string
          format: uuid
        title:
          type: string
        description:
          type:
            - string
            - 'null'
        severity:
          $ref: '#/components/schemas/Severity'
        status:
          $ref: '#/components/schemas/IncidentStatus'
        queue:
          anyOf:
            - $ref: '#/components/schemas/IncidentQueueState'
            - type: 'null'
        investigation_phase:
          $ref: '#/components/schemas/InvestigationPhase'
        triage_assessment:
          $ref: '#/components/schemas/TriageAssessment'
        triage_reason:
          type:
            - string
            - 'null'
        response_level:
          anyOf:
            - $ref: '#/components/schemas/ResponseLevel'
            - type: 'null'
        declaration_mode:
          $ref: '#/components/schemas/DeclarationMode'
        declared_at:
          type:
            - string
            - 'null'
          format: date-time
        source:
          $ref: '#/components/schemas/IncidentSource'
        platform_type:
          type:
            - string
            - 'null'
        conversation_id:
          type:
            - string
            - 'null'
          format: uuid
        incident_room_id:
          type:
            - string
            - 'null'
          format: uuid
        parent_incident_id:
          type:
            - string
            - 'null'
          format: uuid
        child_count:
          type: integer
        affected_services:
          type: array
          items:
            $ref: '#/components/schemas/AffectedService'
        correlated_alert_count:
          type: integer
        first_alert_at:
          type:
            - string
            - 'null'
          format: date-time
        last_alert_at:
          type:
            - string
            - 'null'
          format: date-time
        occurred_at:
          type: string
          format: date-time
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
        resolved_at:
          type:
            - string
            - 'null'
          format: date-time
        closed_at:
          type:
            - string
            - 'null'
          format: date-time
      required:
        - id
        - title
        - description
        - severity
        - status
        - queue
        - investigation_phase
        - triage_assessment
        - triage_reason
        - response_level
        - declaration_mode
        - declared_at
        - source
        - platform_type
        - conversation_id
        - incident_room_id
        - parent_incident_id
        - child_count
        - affected_services
        - correlated_alert_count
        - first_alert_at
        - last_alert_at
        - occurred_at
        - created_at
        - updated_at
        - resolved_at
        - closed_at
      description: One incident. GET returns an `ETag`; send it as `If-Match` on update.
      x-todo:
        - >-
          metadata: untyped dict on IncidentPublic; type its known keys or keep
          it out
    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
    IncidentQueueState:
      type: object
      title: IncidentQueueState
      properties:
        bucket:
          $ref: '#/components/schemas/IncidentQueueBucket'
        reason:
          $ref: '#/components/schemas/IncidentQueueReason'
        since_at:
          type: string
          format: date-time
      required:
        - bucket
        - reason
        - since_at
    InvestigationPhase:
      type: string
      enum:
        - quiet
        - active_response
        - retrospective
      title: InvestigationPhase
    TriageAssessment:
      type: string
      enum:
        - pending
        - no_action_needed
        - issue
        - incident_warranted
        - inconclusive
      title: TriageAssessment
    ResponseLevel:
      type: string
      enum:
        - page_responders
        - track_only
      title: ResponseLevel
    DeclarationMode:
      type: string
      enum:
        - active_response
        - retrospective
      title: DeclarationMode
    IncidentSource:
      type: string
      enum:
        - webhook
        - manual
        - api
      title: IncidentSource
    AffectedService:
      type: object
      title: AffectedService
      properties:
        name:
          type: string
        external_id:
          type:
            - string
            - 'null'
      required:
        - name
    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
    IncidentQueueReason:
      type: string
      enum:
        - no_action_needed
        - issue
        - inconclusive
        - investigating
        - verdict_ready
        - human_input_required
        - on_hold
        - investigation_failed
        - investigation_cancelled
        - result_ready
        - queued
        - ready_to_investigate
        - missing_run
        - resolved
        - auto_resolved
        - false_alarm
      title: IncidentQueueReason
    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
  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
  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.