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

# Get an incident with its alerts and timeline



## OpenAPI

````yaml /openapi.json get /incidents/{incident_id}
openapi: 3.1.0
info:
  title: Hebeat API
  version: '2026-11-21'
  description: >-
    Workspace-scoped REST API authenticated with API keys (`Authorization:
    Bearer hb_…`). Each operation requires the scope shown in its security
    requirement; a group's write scope includes its read scope.
servers:
  - url: https://api.hebeat.com
security: []
paths:
  /incidents/{incident_id}:
    get:
      tags:
        - Incidents
      summary: Get an incident with its alerts and timeline
      operationId: getIncidentsIncident_id
      parameters:
        - name: Hebeat-Version
          in: header
          required: false
          description: >-
            API version (`YYYY-MM-DD`). Defaults to the version pinned on the
            key at creation; every response echoes the version that served it.
          schema:
            type: string
            enum:
              - '2026-11-21'
        - in: path
          name: incident_id
          schema:
            type: string
            format: uuid
          required: true
      responses:
        '200':
          description: Success.
          headers:
            X-RateLimit-Limit:
              description: Requests this key may make per minute (its plan's budget).
              schema:
                type: integer
                minimum: 0
            X-RateLimit-Remaining:
              description: Requests left for this key in the current minute.
              schema:
                type: integer
                minimum: 0
          content:
            application/json:
              schema:
                type: object
                properties:
                  incident:
                    type: object
                    properties:
                      id:
                        type: string
                        format: uuid
                      number:
                        type: integer
                        exclusiveMinimum: 0
                      title:
                        type: string
                      status:
                        type: string
                        enum:
                          - triggered
                          - acknowledged
                          - resolved
                      resolution:
                        type:
                          - string
                          - 'null'
                        enum:
                          - resolved
                          - auto
                          - duplicate
                          - null
                      severity:
                        type: string
                        enum:
                          - critical
                          - major
                          - minor
                      started_at:
                        type: string
                        format: date-time
                      acknowledged_at:
                        type:
                          - string
                          - 'null'
                        format: date-time
                      acknowledged_by:
                        type:
                          - string
                          - 'null'
                        format: uuid
                      acknowledged_by_name:
                        type:
                          - string
                          - 'null'
                      resolved_at:
                        type:
                          - string
                          - 'null'
                        format: date-time
                      resolved_by:
                        type:
                          - string
                          - 'null'
                        format: uuid
                      assignee_user_id:
                        type:
                          - string
                          - 'null'
                        format: uuid
                      assignee_name:
                        type:
                          - string
                          - 'null'
                      duration_ms:
                        type:
                          - integer
                          - 'null'
                        minimum: 0
                      alert_count:
                        type: integer
                        minimum: 0
                      firing_alert_count:
                        type: integer
                        minimum: 0
                      monitor_count:
                        type: integer
                        minimum: 0
                      monitors:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: string
                              format: uuid
                            name:
                              type: string
                          required:
                            - id
                            - name
                          additionalProperties: false
                    required:
                      - id
                      - number
                      - title
                      - status
                      - resolution
                      - severity
                      - started_at
                      - acknowledged_at
                      - acknowledged_by
                      - acknowledged_by_name
                      - resolved_at
                      - resolved_by
                      - assignee_user_id
                      - assignee_name
                      - duration_ms
                      - alert_count
                      - firing_alert_count
                      - monitor_count
                      - monitors
                    additionalProperties: false
                  alerts:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          format: uuid
                        source_kind:
                          type: string
                          enum:
                            - monitor
                            - heartbeat
                            - inbound
                        monitor_id:
                          type:
                            - string
                            - 'null'
                          format: uuid
                        monitor_name:
                          type:
                            - string
                            - 'null'
                        status:
                          type: string
                          enum:
                            - firing
                            - resolved
                        severity:
                          type: string
                          enum:
                            - critical
                            - major
                            - minor
                        title:
                          type: string
                        reason:
                          type:
                            - string
                            - 'null'
                        started_at:
                          type: string
                          format: date-time
                        detected_at:
                          type: string
                          format: date-time
                        resolved_at:
                          type:
                            - string
                            - 'null'
                          format: date-time
                        auto_resolved:
                          type: boolean
                        duration_ms:
                          type:
                            - integer
                            - 'null'
                          minimum: 0
                        affected_region_codes:
                          type: array
                          items:
                            type: string
                            enum:
                              - us-east
                              - us-east-oh
                              - us-west-ca
                              - us-west
                              - ca-qc
                              - ca-ab
                              - sa-br
                              - eu-ie
                              - eu-gb
                              - eu-fr
                              - eu-de
                              - eu-se
                              - eu-es
                              - asia-in
                              - asia-in-hy
                              - asia-sg
                              - asia-id
                              - asia-jp
                              - asia-jp-os
                              - asia-kr
                              - asia-tw
                              - asia-my
                              - asia-th
                              - oc-au
                              - oc-au-me
                      required:
                        - id
                        - source_kind
                        - monitor_id
                        - monitor_name
                        - status
                        - severity
                        - title
                        - reason
                        - started_at
                        - detected_at
                        - resolved_at
                        - auto_resolved
                        - duration_ms
                        - affected_region_codes
                      additionalProperties: false
                  timeline:
                    type: array
                    items:
                      oneOf:
                        - type: object
                          properties:
                            type:
                              type: string
                              const: event
                            id:
                              type: string
                              format: uuid
                            kind:
                              type: string
                              enum:
                                - opened
                                - alert_attached
                                - alert_resolved
                                - alert_reopened
                                - acknowledged
                                - resolved
                                - duplicated
                                - reopened
                                - alert_severity_changed
                                - severity_changed
                                - assignee_changed
                                - reminder_sent
                                - escalated
                                - unknown
                            sequence:
                              type: integer
                              minimum: 0
                            occurred_at:
                              type: string
                              format: date-time
                            alert_id:
                              type:
                                - string
                                - 'null'
                              format: uuid
                            actor:
                              type: object
                              properties:
                                type:
                                  type: string
                                  enum:
                                    - user
                                    - api_key
                                    - oauth_client
                                    - system
                                id:
                                  type:
                                    - string
                                    - 'null'
                                  format: uuid
                                name:
                                  type:
                                    - string
                                    - 'null'
                              required:
                                - type
                                - id
                                - name
                              additionalProperties: false
                            evidence:
                              type: object
                              properties:
                                run_id:
                                  type: string
                                  format: uuid
                                region_code:
                                  type: string
                                  enum:
                                    - us-east
                                    - us-east-oh
                                    - us-west-ca
                                    - us-west
                                    - ca-qc
                                    - ca-ab
                                    - sa-br
                                    - eu-ie
                                    - eu-gb
                                    - eu-fr
                                    - eu-de
                                    - eu-se
                                    - eu-es
                                    - asia-in
                                    - asia-in-hy
                                    - asia-sg
                                    - asia-id
                                    - asia-jp
                                    - asia-jp-os
                                    - asia-kr
                                    - asia-tw
                                    - asia-my
                                    - asia-th
                                    - oc-au
                                    - oc-au-me
                                to_status:
                                  type: string
                                  enum:
                                    - active
                                    - degraded
                                    - error
                                matching_region_count:
                                  type: integer
                                  exclusiveMinimum: 0
                                configured_region_count:
                                  type: integer
                                  exclusiveMinimum: 0
                                affected_regions:
                                  type: array
                                  items:
                                    type: string
                                    enum:
                                      - us-east
                                      - us-east-oh
                                      - us-west-ca
                                      - us-west
                                      - ca-qc
                                      - ca-ab
                                      - sa-br
                                      - eu-ie
                                      - eu-gb
                                      - eu-fr
                                      - eu-de
                                      - eu-se
                                      - eu-es
                                      - asia-in
                                      - asia-in-hy
                                      - asia-sg
                                      - asia-id
                                      - asia-jp
                                      - asia-jp-os
                                      - asia-kr
                                      - asia-tw
                                      - asia-my
                                      - asia-th
                                      - oc-au
                                      - oc-au-me
                                from:
                                  type: string
                                  enum:
                                    - critical
                                    - major
                                    - minor
                                to:
                                  type: string
                                  enum:
                                    - critical
                                    - major
                                    - minor
                                reminder:
                                  type: integer
                                  exclusiveMinimum: 0
                                escalation_step:
                                  type: integer
                                  exclusiveMinimum: 0
                                escalation_step_count:
                                  type: integer
                                  exclusiveMinimum: 0
                                escalation_policy_name:
                                  type: string
                                assignee_user_id:
                                  type:
                                    - string
                                    - 'null'
                                  format: uuid
                                assignee_name:
                                  type:
                                    - string
                                    - 'null'
                              additionalProperties: false
                          required:
                            - type
                            - id
                            - kind
                            - sequence
                            - occurred_at
                            - alert_id
                            - actor
                            - evidence
                          additionalProperties: false
                        - type: object
                          properties:
                            id:
                              type: string
                              format: uuid
                            from_status:
                              type: string
                              enum:
                                - unknown
                                - active
                                - degraded
                                - error
                            to_status:
                              type: string
                              enum:
                                - active
                                - degraded
                                - error
                            occurred_at:
                              type: string
                              format: date-time
                            matching_region_count:
                              type: integer
                            configured_region_count:
                              type: integer
                            alert_id:
                              type:
                                - string
                                - 'null'
                              format: uuid
                            type:
                              type: string
                              const: transition
                            monitor_id:
                              type: string
                              format: uuid
                          required:
                            - id
                            - from_status
                            - to_status
                            - occurred_at
                            - matching_region_count
                            - configured_region_count
                            - alert_id
                            - type
                            - monitor_id
                          additionalProperties: false
                  timeline_next_cursor:
                    type:
                      - string
                      - 'null'
                required:
                  - incident
                  - alerts
                  - timeline
                  - timeline_next_cursor
                additionalProperties: false
        '400':
          description: >-
            Malformed JSON or an unsupported `Hebeat-Version` (`invalid_json`,
            `invalid_version`).
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      issues:
                        type: array
                        items:
                          type: object
                          properties:
                            path:
                              type: string
                            code:
                              type: string
                            params:
                              type: object
                              additionalProperties:
                                anyOf:
                                  - type: string
                                  - type: number
                            message:
                              type: string
                          required:
                            - path
                            - code
                            - message
                          additionalProperties: false
                      workspaces:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: string
                              format: uuid
                            name:
                              type: string
                            member_count:
                              type: integer
                              exclusiveMinimum: 0
                            kind:
                              type: string
                              enum:
                                - shared
                                - solo
                          required:
                            - id
                            - name
                            - member_count
                            - kind
                          additionalProperties: false
                    required:
                      - code
                    additionalProperties: false
                required:
                  - error
                additionalProperties: false
        '401':
          description: Missing, unknown, revoked or expired API key (`unauthenticated`).
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      issues:
                        type: array
                        items:
                          type: object
                          properties:
                            path:
                              type: string
                            code:
                              type: string
                            params:
                              type: object
                              additionalProperties:
                                anyOf:
                                  - type: string
                                  - type: number
                            message:
                              type: string
                          required:
                            - path
                            - code
                            - message
                          additionalProperties: false
                      workspaces:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: string
                              format: uuid
                            name:
                              type: string
                            member_count:
                              type: integer
                              exclusiveMinimum: 0
                            kind:
                              type: string
                              enum:
                                - shared
                                - solo
                          required:
                            - id
                            - name
                            - member_count
                            - kind
                          additionalProperties: false
                    required:
                      - code
                    additionalProperties: false
                required:
                  - error
                additionalProperties: false
        '403':
          description: >-
            The key lacks the operation's scope (`insufficient_scope`) or a plan
            limit applies.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      issues:
                        type: array
                        items:
                          type: object
                          properties:
                            path:
                              type: string
                            code:
                              type: string
                            params:
                              type: object
                              additionalProperties:
                                anyOf:
                                  - type: string
                                  - type: number
                            message:
                              type: string
                          required:
                            - path
                            - code
                            - message
                          additionalProperties: false
                      workspaces:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: string
                              format: uuid
                            name:
                              type: string
                            member_count:
                              type: integer
                              exclusiveMinimum: 0
                            kind:
                              type: string
                              enum:
                                - shared
                                - solo
                          required:
                            - id
                            - name
                            - member_count
                            - kind
                          additionalProperties: false
                    required:
                      - code
                    additionalProperties: false
                required:
                  - error
                additionalProperties: false
        '404':
          description: Not found in the key's workspace (`not_found`).
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      issues:
                        type: array
                        items:
                          type: object
                          properties:
                            path:
                              type: string
                            code:
                              type: string
                            params:
                              type: object
                              additionalProperties:
                                anyOf:
                                  - type: string
                                  - type: number
                            message:
                              type: string
                          required:
                            - path
                            - code
                            - message
                          additionalProperties: false
                      workspaces:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: string
                              format: uuid
                            name:
                              type: string
                            member_count:
                              type: integer
                              exclusiveMinimum: 0
                            kind:
                              type: string
                              enum:
                                - shared
                                - solo
                          required:
                            - id
                            - name
                            - member_count
                            - kind
                          additionalProperties: false
                    required:
                      - code
                    additionalProperties: false
                required:
                  - error
                additionalProperties: false
        '422':
          description: >-
            The input does not match the contract (`invalid_input`, with
            `issues`: each has `path`, a stable validation `code`, optional
            `params` and the English `message`).
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      issues:
                        type: array
                        items:
                          type: object
                          properties:
                            path:
                              type: string
                            code:
                              type: string
                            params:
                              type: object
                              additionalProperties:
                                anyOf:
                                  - type: string
                                  - type: number
                            message:
                              type: string
                          required:
                            - path
                            - code
                            - message
                          additionalProperties: false
                      workspaces:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: string
                              format: uuid
                            name:
                              type: string
                            member_count:
                              type: integer
                              exclusiveMinimum: 0
                            kind:
                              type: string
                              enum:
                                - shared
                                - solo
                          required:
                            - id
                            - name
                            - member_count
                            - kind
                          additionalProperties: false
                    required:
                      - code
                    additionalProperties: false
                required:
                  - error
                additionalProperties: false
        '429':
          description: >-
            The key's per-minute budget or an abuse budget is spent
            (`rate_limited`, with `Retry-After`).
          headers:
            Retry-After:
              description: Seconds to wait before retrying.
              schema:
                type: integer
                minimum: 0
            X-RateLimit-Limit:
              description: Requests this key may make per minute (its plan's budget).
              schema:
                type: integer
                minimum: 0
            X-RateLimit-Remaining:
              description: Requests left for this key in the current minute.
              schema:
                type: integer
                minimum: 0
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      issues:
                        type: array
                        items:
                          type: object
                          properties:
                            path:
                              type: string
                            code:
                              type: string
                            params:
                              type: object
                              additionalProperties:
                                anyOf:
                                  - type: string
                                  - type: number
                            message:
                              type: string
                          required:
                            - path
                            - code
                            - message
                          additionalProperties: false
                      workspaces:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: string
                              format: uuid
                            name:
                              type: string
                            member_count:
                              type: integer
                              exclusiveMinimum: 0
                            kind:
                              type: string
                              enum:
                                - shared
                                - solo
                          required:
                            - id
                            - name
                            - member_count
                            - kind
                          additionalProperties: false
                    required:
                      - code
                    additionalProperties: false
                required:
                  - error
                additionalProperties: false
      security:
        - api_key:
            - incidents:read
components:
  securitySchemes:
    api_key:
      type: http
      scheme: bearer
      description: A workspace API key.

````

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