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

# Response time and outcome metrics



## OpenAPI

````yaml /openapi.json get /monitors/{monitor_id}/metrics
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:
  /monitors/{monitor_id}/metrics:
    get:
      tags:
        - Monitors
      summary: Response time and outcome metrics
      operationId: getMonitorsMonitor_idMetrics
      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: monitor_id
          schema:
            type: string
            format: uuid
          required: true
        - in: query
          name: window
          schema:
            type: string
            enum:
              - 1h
              - 24h
              - 7d
              - 14d
              - 30d
            default: 24h
      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:
                  window:
                    type: object
                    properties:
                      from:
                        type: string
                        format: date-time
                      to:
                        type: string
                        format: date-time
                      retention_days:
                        type: integer
                        exclusiveMinimum: 0
                      clamped:
                        type: boolean
                      code:
                        type: string
                        enum:
                          - 1h
                          - 24h
                          - 7d
                          - 14d
                          - 30d
                      bucket_seconds:
                        type: integer
                        exclusiveMinimum: 0
                      source:
                        type: string
                        enum:
                          - exact
                          - hourly
                    required:
                      - from
                      - to
                      - retention_days
                      - clamped
                      - code
                      - bucket_seconds
                      - source
                    additionalProperties: false
                  summary:
                    type: object
                    properties:
                      uptime:
                        type:
                          - number
                          - 'null'
                        minimum: 0
                        maximum: 1
                      counts:
                        type: object
                        properties:
                          active:
                            type: integer
                            minimum: 0
                          degraded:
                            type: integer
                            minimum: 0
                          error:
                            type: integer
                            minimum: 0
                          probe_error:
                            type: integer
                            minimum: 0
                          dispatch_error:
                            type: integer
                            minimum: 0
                          missing_check:
                            type: integer
                            minimum: 0
                          skipped:
                            type: integer
                            minimum: 0
                        required:
                          - active
                          - degraded
                          - error
                          - probe_error
                          - dispatch_error
                          - missing_check
                          - skipped
                        additionalProperties: false
                      latency:
                        type: object
                        properties:
                          samples:
                            type: integer
                            minimum: 0
                          avg_ms:
                            type:
                              - integer
                              - 'null'
                            minimum: 0
                          p50_ms:
                            type:
                              - integer
                              - 'null'
                            minimum: 0
                          p75_ms:
                            type:
                              - integer
                              - 'null'
                            minimum: 0
                          p95_ms:
                            type:
                              - integer
                              - 'null'
                            minimum: 0
                          p99_ms:
                            type:
                              - integer
                              - 'null'
                            minimum: 0
                        required:
                          - samples
                          - avg_ms
                          - p50_ms
                          - p75_ms
                          - p95_ms
                          - p99_ms
                        additionalProperties: false
                    required:
                      - uptime
                      - counts
                      - latency
                    additionalProperties: false
                  regions:
                    type: array
                    items:
                      type: object
                      properties:
                        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
                        summary:
                          type: object
                          properties:
                            uptime:
                              type:
                                - number
                                - 'null'
                              minimum: 0
                              maximum: 1
                            counts:
                              type: object
                              properties:
                                active:
                                  type: integer
                                  minimum: 0
                                degraded:
                                  type: integer
                                  minimum: 0
                                error:
                                  type: integer
                                  minimum: 0
                                probe_error:
                                  type: integer
                                  minimum: 0
                                dispatch_error:
                                  type: integer
                                  minimum: 0
                                missing_check:
                                  type: integer
                                  minimum: 0
                                skipped:
                                  type: integer
                                  minimum: 0
                              required:
                                - active
                                - degraded
                                - error
                                - probe_error
                                - dispatch_error
                                - missing_check
                                - skipped
                              additionalProperties: false
                            latency:
                              type: object
                              properties:
                                samples:
                                  type: integer
                                  minimum: 0
                                avg_ms:
                                  type:
                                    - integer
                                    - 'null'
                                  minimum: 0
                                p50_ms:
                                  type:
                                    - integer
                                    - 'null'
                                  minimum: 0
                                p75_ms:
                                  type:
                                    - integer
                                    - 'null'
                                  minimum: 0
                                p95_ms:
                                  type:
                                    - integer
                                    - 'null'
                                  minimum: 0
                                p99_ms:
                                  type:
                                    - integer
                                    - 'null'
                                  minimum: 0
                              required:
                                - samples
                                - avg_ms
                                - p50_ms
                                - p75_ms
                                - p95_ms
                                - p99_ms
                              additionalProperties: false
                          required:
                            - uptime
                            - counts
                            - latency
                          additionalProperties: false
                        series:
                          type: array
                          items:
                            type: object
                            properties:
                              bucket_start:
                                type: string
                                format: date-time
                              latency:
                                type: object
                                properties:
                                  samples:
                                    type: integer
                                    minimum: 0
                                  avg_ms:
                                    type:
                                      - integer
                                      - 'null'
                                    minimum: 0
                                  p50_ms:
                                    type:
                                      - integer
                                      - 'null'
                                    minimum: 0
                                  p75_ms:
                                    type:
                                      - integer
                                      - 'null'
                                    minimum: 0
                                  p95_ms:
                                    type:
                                      - integer
                                      - 'null'
                                    minimum: 0
                                  p99_ms:
                                    type:
                                      - integer
                                      - 'null'
                                    minimum: 0
                                required:
                                  - samples
                                  - avg_ms
                                  - p50_ms
                                  - p75_ms
                                  - p95_ms
                                  - p99_ms
                                additionalProperties: false
                              phases:
                                type: object
                                properties:
                                  dns:
                                    type: object
                                    properties:
                                      samples:
                                        type: integer
                                        minimum: 0
                                      avg_ms:
                                        type:
                                          - integer
                                          - 'null'
                                        minimum: 0
                                    required:
                                      - samples
                                      - avg_ms
                                    additionalProperties: false
                                  tcp_connect:
                                    type: object
                                    properties:
                                      samples:
                                        type: integer
                                        minimum: 0
                                      avg_ms:
                                        type:
                                          - integer
                                          - 'null'
                                        minimum: 0
                                    required:
                                      - samples
                                      - avg_ms
                                    additionalProperties: false
                                  tls_handshake:
                                    type: object
                                    properties:
                                      samples:
                                        type: integer
                                        minimum: 0
                                      avg_ms:
                                        type:
                                          - integer
                                          - 'null'
                                        minimum: 0
                                    required:
                                      - samples
                                      - avg_ms
                                    additionalProperties: false
                                  ttfb:
                                    type: object
                                    properties:
                                      samples:
                                        type: integer
                                        minimum: 0
                                      avg_ms:
                                        type:
                                          - integer
                                          - 'null'
                                        minimum: 0
                                    required:
                                      - samples
                                      - avg_ms
                                    additionalProperties: false
                                  transfer:
                                    type: object
                                    properties:
                                      samples:
                                        type: integer
                                        minimum: 0
                                      avg_ms:
                                        type:
                                          - integer
                                          - 'null'
                                        minimum: 0
                                    required:
                                      - samples
                                      - avg_ms
                                    additionalProperties: false
                                required:
                                  - dns
                                  - tcp_connect
                                  - tls_handshake
                                  - ttfb
                                  - transfer
                                additionalProperties: false
                            required:
                              - bucket_start
                              - latency
                              - phases
                            additionalProperties: false
                      required:
                        - region_code
                        - summary
                        - series
                      additionalProperties: false
                required:
                  - window
                  - summary
                  - regions
                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:
            - monitors: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.