LastPing Health API

The Health API from LastPing — 1 operation(s) for health.

GitHub OpenAPI

Operations 1

GET /healthz Health check #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/lastping-dev:lastping-dev-health-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

lastping-dev-health-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: LastPing Management Health API
  version: '1.0'
  description: 'The LastPing Management API lets you create, configure, and manage uptime

    checks for your project. All mutating endpoints require a valid API key

    supplied in the `X-Api-Key` request header.


    ## MCP server for AI agents


    LastPing ships an MCP (Model Context Protocol) server so AI agents can

    create and manage monitors, query incidents, and set up their own

    dead-man''s-switch — all in one conversation. The hosted server is at

    `https://mcp.lastping.dev/mcp`; connect with `Authorization: Bearer `.

    See lastping.dev/mcp/ for setup instructions

    and the full tool list.'
  contact:
    url: https://lastping.dev
servers:
- url: /
  description: Management API (relative path — prepend your host)
security: []
tags:
- name: Health
paths:
  /healthz:
    get:
      operationId: getHealthz
      summary: Health check
      description: Returns 200 {"status":"ok"} when the api service is healthy. No auth required.
      tags:
      - Health
      security: []
      responses:
        '200':
          description: Service is healthy.
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    example: ok
              example:
                status: ok
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-Api-Key
      description: 'Project API key.  Obtain from your LastPing project settings.


        **Every key carries a scope**, which is what it is permitted to do:


        | Scope | Reaches |

        | --- | --- |

        | `read` | Every `GET`. |

        | `write` | Everything except API key management — the default for a new key. |

        | `admin` | Everything, including `/api/v1/api-keys`. |


        A request whose key ranks below an operation''s requirement is refused

        with `403` and a problem body carrying `required_scope`, the tier the

        operation needed. The rule is uniform: `GET` needs `read`, every other

        method needs `write`, and the three `/api/v1/api-keys` operations need

        `admin` — the list included, since key names, prefixes and lineage are

        what a caller needs in order to choose which key to revoke.


        Keys created before scopes existed are `admin`, so nothing that worked

        before this was introduced stops working. Enforcement of this refusal

        is switched on separately from the scope existing on a key.

        '
    BearerAuth:
      type: http
      scheme: bearer
      description: 'Project API key presented as a Bearer token.

        Accepted as an alternative to the X-Api-Key header, specifically

        to allow Prometheus scrape_config `authorization: { credentials: … }`.

        '
    SessionCookie:
      type: apiKey
      in: cookie
      name: lp_session
      description: 'The signed-in browser session, set by the sign-in flow at

        `/auth/login`. It is `HttpOnly`, `Secure` and `SameSite=Lax`, so it

        cannot be read by script and is not a credential you can obtain or

        store the way an API key is.


        A handful of operations accept **only** this, and refuse an API key of

        any scope with `403 SESSION_ONLY`. They act on a PERSON rather than on a

        project (`/api/v1/me/password`, `/api/v1/me/email`,

        `/api/v1/me/delete`), or they hand a stored credential back to the

        person who owns it. Those operations name `SessionCookie` and nothing

        else, so a client generated from this document does not offer a key

        where a key cannot work.


        Every write made with this cookie also needs the CSRF double-submit

        header: send the `lp_csrf` cookie''s value in `X-CSRF-Token` on `POST`,

        `PUT`, `PATCH` and `DELETE`, or the request is refused `403

        CSRF_REQUIRED`.


        While an admin is viewing an account read only, every write made with

        this cookie is refused `403 READ_ONLY_IMPERSONATION`. If the view-as

        state cannot be read, the request is answered `503

        IMPERSONATION_UNAVAILABLE` and nothing is served or written.


        The console sends `X-LP-View-As: <user id>` on every write while it

        believes it is viewing an account (the `user_id` GET /api/v1/me

        reported with `viewing_as` set). A write carrying that header when no

        view-as is active, or when the active one is of a different account,

        is refused `409 VIEW_AS_CHANGED` and nothing is written: the page''s

        picture of the session is stale, and it should re-read GET

        /api/v1/me. With a matching view-as the write is still refused `403

        READ_ONLY_IMPERSONATION`. Other clients never need to send it.

        '