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

# Get component status history

> Status history is a change log: each entry is a change of the component's
status (plus a daily reconciliation entry where the recorded status had
drifted), not a periodic sample. A component that held one status for the
whole `from`/`to` range has no entry inside it.




## OpenAPI

````yaml /openapi/api-docs.yaml get /v1/components/{component_id}/history
openapi: 3.0.3
info:
  title: StatusStack API
  description: >
    API for managing status monitoring, incidents, stacks, and website
    monitoring.


    You can import this specification directly into Postman, Insomnia or any
    other

    OpenAPI-compatible client.


    Only the operations documented here are part of the supported public API.
    Any other

    endpoint is unstable and may change without a version bump.
  version: 1.4.0
  contact:
    name: StatusStack Support
    url: https://statusstack.com/support
servers:
  - url: https://statusstack.com/api
    description: Production server
security: []
paths:
  /v1/components/{component_id}/history:
    parameters:
      - name: component_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
    get:
      summary: Get component status history
      description: >
        Status history is a change log: each entry is a change of the
        component's

        status (plus a daily reconciliation entry where the recorded status had

        drifted), not a periodic sample. A component that held one status for
        the

        whole `from`/`to` range has no entry inside it.
      parameters:
        - name: from
          in: query
          schema:
            type: string
            format: date
        - name: to
          in: query
          schema:
            type: string
            format: date
        - name: per_page
          in: query
          schema:
            type: integer
            default: 20
            minimum: 1
            maximum: 100
      responses:
        '200':
          description: Component history
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/ComponentHistory'
                  meta:
                    type: object
                    properties:
                      current_page:
                        type: integer
                      total:
                        type: integer
                      per_page:
                        type: integer
      security:
        - bearerAuth: []
components:
  schemas:
    ComponentHistory:
      type: object
      properties:
        id:
          type: string
          format: uuid
        component_id:
          type: string
          format: uuid
        status:
          type: string
          enum:
            - operational
            - degraded
            - outage
            - maintenance
        message:
          type: string
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >
        StatusStack authenticates requests with API keys, created via the
        dashboard with

        granular permissions (read, write, delete, admin, *).


        API keys support version compatibility:

        - v1 keys: Can only access v1 endpoints

        - v2 keys: Can access both v1 and v2 endpoints


        Available permissions:

        - `read`: View resources (GET requests)

        - `write`: Create and update resources (POST, PUT requests)

        - `delete`: Delete resources (DELETE requests)

        - `admin`: Administrative access to all resources

        - `*`: Wildcard permission (all actions allowed)

````

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