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

# Alarm History

> State transition history for an alarm, newest first.

Needs `alarms.read` for an org-level alarm, or `projects.alarms.read` on the owning project for a project alarm.



## OpenAPI

````yaml GET /orgs/{org_id}/alarms/{alarm_id}/history
openapi: 3.1.0
info:
  title: Timbal Platform API
  description: Public API documentation for the Timbal platform
  license:
    name: ''
  version: 2.0.0
servers:
  - url: https://api.timbal.ai
    description: Production
  - url: https://api.dev.timbal.ai
    description: Development
security: []
tags:
  - name: ace
    description: Action Control Engine (ACE) operations
  - name: alarms
    description: Metric series and threshold alarms
  - name: analytics
    description: Org and project analytics
  - name: billing
    description: Subscriptions, usage, and payment-related operations
  - name: channels
    description: Delivery channels alarms notify through
  - name: content
    description: Re-sign stored content URLs
  - name: files
    description: File operations
  - name: iam
    description: IAM — actions, roles, users, and authorization introspection
  - name: k2
    description: Knowledge Bases v2 operations
  - name: orgs
    description: Organization operations
  - name: projects
    description: Project operations
  - name: runs
    description: Execution operations
  - name: templates
    description: Public project template catalog
  - name: users
    description: Authenticated user profile
paths:
  /orgs/{org_id}/alarms/{alarm_id}/history:
    get:
      tags:
        - alarms
      summary: List alarm state transitions
      description: >-
        State transition history for an alarm, newest first.


        Needs `alarms.read` for an org-level alarm, or `projects.alarms.read` on
        the owning project for a project alarm.
      operationId: get_org_alarm_history
      parameters:
        - name: org_id
          in: path
          required: true
          schema:
            type: string
        - name: alarm_id
          in: path
          required: true
          schema:
            type: string
        - name: limit
          in: query
          description: Max transitions to return (newest first). Default 50, max 500.
          required: false
          schema:
            type:
              - integer
              - 'null'
            format: int64
      responses:
        '200':
          description: Transition history
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AlarmHistoryResBody'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorMessage'
      security:
        - bearer_auth: []
components:
  schemas:
    AlarmHistoryResBody:
      type: object
      title: AlarmHistoryResponse
      description: Wrapper for **GET** `/orgs/{org_id}/alarms/{alarm_id}/history`.
      required:
        - history
      properties:
        history:
          type: array
          items:
            $ref: '#/components/schemas/AlarmStateHistoryOut'
    ErrorMessage:
      type: object
      required:
        - code
        - message
      properties:
        code:
          type: string
          description: Machine-readable error code (e.g. `ALREADY_EXISTS`, `BAD_REQUEST`).
        message:
          type: string
          description: Human-readable description.
    AlarmStateHistoryOut:
      type: object
      required:
        - id
        - from_state
        - to_state
        - created_at
      properties:
        created_at:
          type: string
          format: date-time
        from_state:
          $ref: '#/components/schemas/AlarmState'
        id:
          type: integer
          format: int64
        reason:
          type:
            - object
            - 'null'
          description: 'Evaluation evidence: per-period values, threshold, breaching count.'
        to_state:
          $ref: '#/components/schemas/AlarmState'
    AlarmState:
      type: string
      enum:
        - ok
        - alarm
        - insufficient_data
  securitySchemes:
    bearer_auth:
      type: http
      scheme: bearer
      description: >-
        Timbal API key. Obtain your API key from the Timbal platform settings.
        See [Authentication](/api-reference/authentication) for more
        information.

````