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

# Create a monitor or a heartbeat (`config.type: heartbeat`)



## OpenAPI

````yaml /openapi.json post /monitors
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:
    post:
      tags:
        - Monitors
      summary: 'Create a monitor or a heartbeat (`config.type: heartbeat`)'
      operationId: postMonitors
      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'
      requestBody:
        content:
          application/json:
            schema:
              anyOf:
                - type: object
                  properties:
                    name:
                      type: string
                      minLength: 1
                      maxLength: 100
                    description:
                      type:
                        - string
                        - 'null'
                      maxLength: 500
                    interval_seconds:
                      type: integer
                    timeout_ms:
                      type: integer
                      minimum: 100
                      maximum: 30000
                    degraded_after_ms:
                      type:
                        - integer
                        - 'null'
                      minimum: 1
                      maximum: 30000
                    max_attempts:
                      type: integer
                      minimum: 1
                      maximum: 3
                    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
                      minItems: 1
                      maxItems: 25
                    config:
                      oneOf:
                        - type: object
                          properties:
                            type:
                              type: string
                              const: http
                            url:
                              type: string
                              minLength: 1
                              maxLength: 2048
                            method:
                              type: string
                              enum:
                                - GET
                                - HEAD
                                - POST
                            request_headers:
                              type: array
                              items:
                                type: object
                                properties:
                                  name:
                                    type: string
                                    pattern: ^[!#$%&'*+.^_`|~0-9A-Za-z-]{1,64}$
                                  value:
                                    type: string
                                    pattern: ^[^\r\n\0]*$
                                    maxLength: 2048
                                required:
                                  - name
                                  - value
                                additionalProperties: false
                              maxItems: 20
                            request_body:
                              type:
                                - string
                                - 'null'
                              maxLength: 65536
                            expected_status:
                              type: array
                              items:
                                type: integer
                                minimum: 100
                                maximum: 599
                              minItems: 1
                              maxItems: 10
                            follow_redirects:
                              type: boolean
                            max_redirects:
                              type: integer
                              minimum: 0
                              maximum: 10
                            header_assertions:
                              type: array
                              items:
                                oneOf:
                                  - type: object
                                    properties:
                                      comparison:
                                        type: string
                                        enum:
                                          - equals
                                          - contains
                                      name:
                                        type: string
                                        pattern: ^[!#$%&'*+.^_`|~0-9A-Za-z-]{1,64}$
                                      value:
                                        type: string
                                        maxLength: 1024
                                    required:
                                      - comparison
                                      - name
                                      - value
                                    additionalProperties: false
                                  - type: object
                                    properties:
                                      comparison:
                                        type: string
                                        enum:
                                          - exists
                                          - not_exists
                                      name:
                                        type: string
                                        pattern: ^[!#$%&'*+.^_`|~0-9A-Za-z-]{1,64}$
                                    required:
                                      - comparison
                                      - name
                                    additionalProperties: false
                              maxItems: 10
                            body_assertions:
                              type: array
                              items:
                                type: object
                                properties:
                                  comparison:
                                    type: string
                                    enum:
                                      - contains
                                      - not_contains
                                  value:
                                    type: string
                                    minLength: 1
                                    maxLength: 1024
                                required:
                                  - comparison
                                  - value
                                additionalProperties: false
                              maxItems: 10
                          required:
                            - type
                            - url
                            - method
                            - request_headers
                            - request_body
                            - expected_status
                            - follow_redirects
                            - max_redirects
                            - header_assertions
                            - body_assertions
                          additionalProperties: false
                        - type: object
                          properties:
                            type:
                              type: string
                              const: tcp
                            host:
                              type: string
                              minLength: 1
                              maxLength: 255
                            port:
                              type: integer
                              minimum: 1
                              maximum: 65535
                          required:
                            - type
                            - host
                            - port
                          additionalProperties: false
                        - type: object
                          properties:
                            type:
                              type: string
                              const: dns
                            name:
                              type: string
                              minLength: 1
                              maxLength: 253
                            record_type:
                              type: string
                              enum:
                                - A
                                - AAAA
                                - CNAME
                                - MX
                                - TXT
                                - NS
                            assertions:
                              type: array
                              items:
                                type: object
                                properties:
                                  comparison:
                                    type: string
                                    enum:
                                      - equals
                                      - contains
                                  value:
                                    type: string
                                    minLength: 1
                                    maxLength: 512
                                required:
                                  - comparison
                                  - value
                                additionalProperties: false
                              maxItems: 10
                          required:
                            - type
                            - name
                            - record_type
                            - assertions
                          additionalProperties: false
                  required:
                    - name
                    - description
                    - interval_seconds
                    - timeout_ms
                    - degraded_after_ms
                    - max_attempts
                    - regions
                    - config
                  additionalProperties: false
                - type: object
                  properties:
                    name:
                      type: string
                      minLength: 1
                      maxLength: 100
                    description:
                      type:
                        - string
                        - 'null'
                      maxLength: 500
                    config:
                      type: object
                      properties:
                        type:
                          type: string
                          const: heartbeat
                        schedule:
                          oneOf:
                            - type: object
                              properties:
                                kind:
                                  type: string
                                  const: period
                                period_seconds:
                                  type: integer
                                  minimum: 60
                                  maximum: 2592000
                              required:
                                - kind
                                - period_seconds
                              additionalProperties: false
                            - type: object
                              properties:
                                kind:
                                  type: string
                                  const: cron
                                cron:
                                  type: string
                                  minLength: 1
                                  maxLength: 120
                                timezone:
                                  type: string
                                  minLength: 1
                                  maxLength: 64
                              required:
                                - kind
                                - cron
                                - timezone
                              additionalProperties: false
                        grace_seconds:
                          type: integer
                          minimum: 60
                          maximum: 604800
                        keep_messages:
                          type: boolean
                      required:
                        - type
                        - schedule
                        - grace_seconds
                        - keep_messages
                      additionalProperties: false
                  required:
                    - name
                    - description
                    - config
                  additionalProperties: false
      responses:
        '201':
          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:
                  monitor:
                    type: object
                    properties:
                      id:
                        type: string
                        format: uuid
                      name:
                        type: string
                      description:
                        type:
                          - string
                          - 'null'
                      type:
                        type: string
                        enum:
                          - http
                          - tcp
                          - dns
                          - heartbeat
                      target:
                        type: string
                      enabled:
                        type: boolean
                      status:
                        type: string
                        enum:
                          - paused
                          - unknown
                          - active
                          - degraded
                          - error
                      in_maintenance:
                        type: boolean
                      heartbeat:
                        type: object
                        properties:
                          schedule:
                            oneOf:
                              - type: object
                                properties:
                                  kind:
                                    type: string
                                    const: period
                                  period_seconds:
                                    type: integer
                                    minimum: 60
                                    maximum: 2592000
                                required:
                                  - kind
                                  - period_seconds
                                additionalProperties: false
                              - type: object
                                properties:
                                  kind:
                                    type: string
                                    const: cron
                                  cron:
                                    type: string
                                    minLength: 1
                                    maxLength: 120
                                  timezone:
                                    type: string
                                    minLength: 1
                                    maxLength: 64
                                required:
                                  - kind
                                  - cron
                                  - timezone
                                additionalProperties: false
                          grace_seconds:
                            type: integer
                          keep_messages:
                            type: boolean
                          token_hint:
                            type: string
                          last_ping_at:
                            type:
                              - string
                              - 'null'
                            format: date-time
                          last_start_at:
                            type:
                              - string
                              - 'null'
                            format: date-time
                          next_due_at:
                            type:
                              - string
                              - 'null'
                            format: date-time
                        required:
                          - schedule
                          - grace_seconds
                          - keep_messages
                          - token_hint
                          - last_ping_at
                          - last_start_at
                          - next_due_at
                        additionalProperties: false
                      interval_seconds:
                        type: integer
                      selected_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
                      last_transition_at:
                        type:
                          - string
                          - 'null'
                        format: date-time
                      created_at:
                        type: string
                        format: date-time
                      updated_at:
                        type: string
                        format: date-time
                      timeout_ms:
                        type: integer
                      degraded_after_ms:
                        type:
                          - integer
                          - 'null'
                      max_attempts:
                        type: integer
                      config_version:
                        type: integer
                      config:
                        oneOf:
                          - type: object
                            properties:
                              type:
                                type: string
                                const: http
                              url:
                                type: string
                                minLength: 1
                                maxLength: 2048
                              method:
                                type: string
                                enum:
                                  - GET
                                  - HEAD
                                  - POST
                              request_headers:
                                type: array
                                items:
                                  type: object
                                  properties:
                                    name:
                                      type: string
                                      pattern: ^[!#$%&'*+.^_`|~0-9A-Za-z-]{1,64}$
                                    value:
                                      type: string
                                      pattern: ^[^\r\n\0]*$
                                      maxLength: 2048
                                  required:
                                    - name
                                    - value
                                  additionalProperties: false
                                maxItems: 20
                              request_body:
                                type:
                                  - string
                                  - 'null'
                                maxLength: 65536
                              expected_status:
                                type: array
                                items:
                                  type: integer
                                  minimum: 100
                                  maximum: 599
                                minItems: 1
                                maxItems: 10
                              follow_redirects:
                                type: boolean
                              max_redirects:
                                type: integer
                                minimum: 0
                                maximum: 10
                              header_assertions:
                                type: array
                                items:
                                  oneOf:
                                    - type: object
                                      properties:
                                        comparison:
                                          type: string
                                          enum:
                                            - equals
                                            - contains
                                        name:
                                          type: string
                                          pattern: ^[!#$%&'*+.^_`|~0-9A-Za-z-]{1,64}$
                                        value:
                                          type: string
                                          maxLength: 1024
                                      required:
                                        - comparison
                                        - name
                                        - value
                                      additionalProperties: false
                                    - type: object
                                      properties:
                                        comparison:
                                          type: string
                                          enum:
                                            - exists
                                            - not_exists
                                        name:
                                          type: string
                                          pattern: ^[!#$%&'*+.^_`|~0-9A-Za-z-]{1,64}$
                                      required:
                                        - comparison
                                        - name
                                      additionalProperties: false
                                maxItems: 10
                              body_assertions:
                                type: array
                                items:
                                  type: object
                                  properties:
                                    comparison:
                                      type: string
                                      enum:
                                        - contains
                                        - not_contains
                                    value:
                                      type: string
                                      minLength: 1
                                      maxLength: 1024
                                  required:
                                    - comparison
                                    - value
                                  additionalProperties: false
                                maxItems: 10
                            required:
                              - type
                              - url
                              - method
                              - request_headers
                              - request_body
                              - expected_status
                              - follow_redirects
                              - max_redirects
                              - header_assertions
                              - body_assertions
                            additionalProperties: false
                          - type: object
                            properties:
                              type:
                                type: string
                                const: tcp
                              host:
                                type: string
                                minLength: 1
                                maxLength: 255
                              port:
                                type: integer
                                minimum: 1
                                maximum: 65535
                            required:
                              - type
                              - host
                              - port
                            additionalProperties: false
                          - type: object
                            properties:
                              type:
                                type: string
                                const: dns
                              name:
                                type: string
                                minLength: 1
                                maxLength: 253
                              record_type:
                                type: string
                                enum:
                                  - A
                                  - AAAA
                                  - CNAME
                                  - MX
                                  - TXT
                                  - NS
                              assertions:
                                type: array
                                items:
                                  type: object
                                  properties:
                                    comparison:
                                      type: string
                                      enum:
                                        - equals
                                        - contains
                                    value:
                                      type: string
                                      minLength: 1
                                      maxLength: 512
                                  required:
                                    - comparison
                                    - value
                                  additionalProperties: false
                                maxItems: 10
                            required:
                              - type
                              - name
                              - record_type
                              - assertions
                            additionalProperties: false
                          - type: object
                            properties:
                              type:
                                type: string
                                const: heartbeat
                              schedule:
                                oneOf:
                                  - type: object
                                    properties:
                                      kind:
                                        type: string
                                        const: period
                                      period_seconds:
                                        type: integer
                                        minimum: 60
                                        maximum: 2592000
                                    required:
                                      - kind
                                      - period_seconds
                                    additionalProperties: false
                                  - type: object
                                    properties:
                                      kind:
                                        type: string
                                        const: cron
                                      cron:
                                        type: string
                                        minLength: 1
                                        maxLength: 120
                                      timezone:
                                        type: string
                                        minLength: 1
                                        maxLength: 64
                                    required:
                                      - kind
                                      - cron
                                      - timezone
                                    additionalProperties: false
                              grace_seconds:
                                type: integer
                                minimum: 60
                                maximum: 604800
                              keep_messages:
                                type: boolean
                            required:
                              - type
                              - schedule
                              - grace_seconds
                              - keep_messages
                            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
                            status:
                              type: string
                              enum:
                                - unknown
                                - active
                                - degraded
                                - error
                            last_checked_at:
                              type:
                                - string
                                - 'null'
                              format: date-time
                          required:
                            - region_code
                            - status
                            - last_checked_at
                          additionalProperties: false
                    required:
                      - id
                      - name
                      - description
                      - type
                      - target
                      - enabled
                      - status
                      - interval_seconds
                      - selected_regions
                      - last_transition_at
                      - created_at
                      - updated_at
                      - timeout_ms
                      - degraded_after_ms
                      - max_attempts
                      - config_version
                      - config
                      - regions
                    additionalProperties: false
                  ping_url:
                    type: string
                    format: uri
                required:
                  - monitor
                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:write
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.