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

# Get a monitor

> Reads one monitor. A heartbeat's response includes its `pingUrl` (the URL the job pings) so the owner can recover it after create.



## OpenAPI

````yaml https://www.sentivel.com/api/v1/openapi.json get /monitors/{id}
openapi: 3.1.0
info:
  title: Sentivel API
  version: 1.0.0
  description: >-
    Provision and read your Sentivel workspace programmatically: components,
    monitors, status pages and incidents. Authenticate with an org API token
    (create one under Developers → API tokens in the dashboard).
  contact:
    name: Sentivel
    url: https://www.sentivel.com
servers:
  - url: https://www.sentivel.com/api/v1
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Identity
    description: Who the token is
  - name: Components
    description: Status-page components (status units)
  - name: Monitors
    description: Uptime/HTTP checks
  - name: Status pages
    description: Public status pages
  - name: Incidents
    description: Incidents (read + manual create)
  - name: People
    description: Workspace members
  - name: Integrations
    description: Outbound alert destinations
  - name: On-call
    description: On-call schedules
  - name: Maintenance
    description: Scheduled maintenance windows
paths:
  /monitors/{id}:
    get:
      tags:
        - Monitors
      summary: Get a monitor
      description: >-
        Reads one monitor. A heartbeat's response includes its `pingUrl` (the
        URL the job pings) so the owner can recover it after create.
      operationId: getMonitor
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: The monitor.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/Monitor'
        '401':
          description: Unauthorized.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: No such monitor.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Monitor:
      type: object
      properties:
        id:
          type: string
          format: uuid
        name:
          type:
            - string
            - 'null'
        componentId:
          type:
            - string
            - 'null'
          format: uuid
        type:
          type: string
          enum:
            - http
            - heartbeat
            - tcp
            - dns
        target:
          type: string
        method:
          type: string
        intervalSeconds:
          type: integer
        timeoutMs:
          type: integer
        openThreshold:
          type: integer
        resolveThreshold:
          type: integer
        environment:
          type:
            - string
            - 'null'
        enabled:
          type: boolean
        maintenanceUntil:
          type:
            - string
            - 'null'
          format: date-time
          description: >-
            End of a bounded maintenance window, or null when not in maintenance
            or in open-ended maintenance (see openEndedMaintenance).
        openEndedMaintenance:
          type: boolean
          description: In maintenance with no fixed end (cleared with DELETE).
        lastCheckedAt:
          type:
            - string
            - 'null'
          format: date-time
        createdAt:
          type: string
          format: date-time
        pingUrl:
          type: string
          format: uri
          description: >-
            Heartbeat only, returned on create. The URL the scheduled job pings.
            It's a secret credential, so it is not returned by the list/get
            endpoints.
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              enum:
                - unauthorized
                - forbidden
                - not_found
                - invalid_request
                - rate_limited
                - conflict
                - internal
            message:
              type: string
            details:
              type: object
          required:
            - code
            - message
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Sent as `Authorization: Bearer <token>`. Three kinds are accepted: an
        ORG token (`sv_…`), bound to one workspace with a fixed role; a PERSONAL
        token (`svu_…`), which acts as you with your own live role in whichever
        workspace it is pointed at; and an OAUTH access token (`mcp_at_…`) from
        a connected app, limited to the workspaces you granted it. A personal or
        OAuth token names its workspace with the `X-Sentivel-Workspace` header
        (a slug or an id). Without it an OAuth token falls back to the
        connection's primary workspace, while a personal token in more than one
        workspace is rejected `400 invalid_request` with the choices in
        `error.details.workspaces`. Membership is re-read every request, so
        leaving a workspace or revoking the grant takes effect at once.

````