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

# Get cost alert firing history



## OpenAPI

````yaml /api-reference/openapi.json get /alerts-v2/costAlerts/{id}/history
openapi: 3.0.0
info:
  title: Costory
  version: '1.0'
  description: API Documentation
servers:
  - url: ''
    description: Production server
security: []
paths:
  /alerts-v2/costAlerts/{id}/history:
    get:
      tags:
        - Alerts V2
      summary: Get cost alert firing history
      operationId: getCostAlertHistoryV2
      parameters:
        - schema:
            type: string
          required: true
          name: id
          in: path
        - schema:
            type: string
            enum:
              - all
              - fired
              - notified
          required: false
          name: state
          in: query
      responses:
        '200':
          description: Consolidated firing and notification history
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CostAlertHistory'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Unauthorized'
        '404':
          description: Alert not found in the authenticated organization
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AlertError'
              example:
                error: Alert not found
      security:
        - bearerAuth: []
components:
  schemas:
    CostAlertHistory:
      type: array
      items:
        type: object
        properties:
          effectiveDate:
            type: string
            nullable: true
            format: date-time
          computedAt:
            type: string
            nullable: true
            format: date-time
          notifiedAt:
            type: string
            nullable: true
            format: date-time
          state:
            type: string
            enum:
              - fired
              - notified
          valueTriggered:
            type: number
          groups:
            type: array
            items:
              type: object
              properties:
                groupByValue:
                  type: string
                  nullable: true
                value:
                  type: number
                explanation:
                  type: object
                  properties: {}
                  additionalProperties: {}
                queryName:
                  type: string
                resolvedLabel:
                  type: string
              required:
                - groupByValue
                - value
        required:
          - effectiveDate
          - computedAt
          - notifiedAt
          - state
          - valueTriggered
          - groups
    Unauthorized:
      type: object
      properties:
        error:
          type: string
          description: Unauthorized error message
      required:
        - error
    AlertError:
      type: object
      properties:
        error:
          type: string
      required:
        - error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT or Clerk ak_* API key
      description: >-
        Send `Authorization: Bearer <credential>` using either a Clerk session
        JWT or a Clerk API key (`ak_*`). API keys may identify a user (`user_*`)
        or organization (`org_*`) principal and are generated in the Clerk
        Dashboard under API keys.

````