LastPing Status Pages API
The StatusPages API from LastPing — 2 operation(s) for statuspages.
The StatusPages API from LastPing — 2 operation(s) for statuspages.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/lastping-dev:lastping-dev-statuspages-api"
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.
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: 3.2.0
info:
title: LastPing Management Status Pages 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: StatusPages
paths:
/api/v1/status-pages:
post:
operationId: createStatusPage
summary: Create a status page
description: 'Creates a new status page for the authenticated project.
**Free-tier limit:** at most one `public` status page per project.
Attempting to create a second public page returns 403.
`slug` is optional. Omit it to have one generated automatically. The
slug namespace is global across all LastPing accounts (it backs the
public `/status/{slug}` URL); a 409 is returned only if an explicitly
supplied slug is already taken — a generated slug cannot collide with
another account''s page.'
tags:
- StatusPages
security:
- ApiKeyAuth: []
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/StatusPageCreate'
example:
title: My Services
check_ids:
- 550e8400-e29b-41d4-a716-446655440000
visibility: public
responses:
'201':
description: Status page created.
content:
application/json:
schema:
$ref: '#/components/schemas/StatusPage'
'400':
description: Invalid request body, bad slug, missing title, or invalid visibility.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
'401':
description: Missing or invalid API key.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
'403':
description: Free-tier public status page limit reached (max 1 per project).
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
'409':
description: 'The supplied `slug` is already taken. Since the slug namespace is
global, this can be another account''s page, not just your own.
'
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
get:
operationId: listStatusPages
summary: List status pages
description: Returns all status pages for the authenticated project as a JSON array (never null).
tags:
- StatusPages
security:
- ApiKeyAuth: []
responses:
'200':
description: Array of status pages (may be empty).
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/StatusPage'
'401':
description: Missing or invalid API key.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
/api/v1/status-pages/{id}:
parameters:
- name: id
in: path
required: true
description: UUID of the status page.
schema:
type: string
format: uuid
example: d1e2f3a4-0000-0000-0000-000000000001
get:
operationId: getStatusPage
summary: Get a status page
description: Returns the status page for the authenticated project. 404 if not found (or belongs to another project).
tags:
- StatusPages
security:
- ApiKeyAuth: []
responses:
'200':
description: The status page.
content:
application/json:
schema:
$ref: '#/components/schemas/StatusPage'
'400':
description: id is not a valid UUID.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
'401':
description: Missing or invalid API key.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
'404':
description: Status page not found in this project.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
patch:
operationId: updateStatusPage
summary: Update a status page
description: 'Replaces all mutable fields of the status page. All fields (`slug`,
`title`, `visibility`, `check_ids`) must be supplied; this is a full
replacement of the resource''s config. Unlike create, `slug` is
required here — it is not auto-generated on update.
**Free-tier limit:** upgrading `visibility` from `private` to `public`
counts against the 1-public-page limit; returns 403 if already at limit.
Changing `slug` to one already taken returns 409. The slug namespace
is global across all LastPing accounts, so this can be another
account''s page.'
tags:
- StatusPages
security:
- ApiKeyAuth: []
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/StatusPageUpdate'
example:
slug: my-services-v2
title: My Services (updated)
check_ids: []
visibility: private
responses:
'200':
description: Updated status page.
content:
application/json:
schema:
$ref: '#/components/schemas/StatusPage'
'400':
description: Invalid request body, bad slug, missing title, or invalid visibility.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
'401':
description: Missing or invalid API key.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
'403':
description: Free-tier public status page limit reached.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
'404':
description: Status page not found in this project.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
'409':
description: 'The supplied `slug` is already taken. Since the slug namespace is
global, this can be another account''s page, not just your own.
'
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
delete:
operationId: deleteStatusPage
summary: Delete a status page
description: Permanently removes the status page from the project. Returns 204 No Content on success.
tags:
- StatusPages
security:
- ApiKeyAuth: []
responses:
'204':
description: Status page deleted.
'400':
description: id is not a valid UUID.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
'401':
description: Missing or invalid API key.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
'404':
description: Status page not found in this project.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
components:
schemas:
StatusPageUpdate:
type: object
description: 'Body for PATCH /api/v1/status-pages/{id} (update). Unlike
StatusPageCreate, `slug` is required here — PATCH replaces the
resource''s full config, so every mutable field must be supplied.
'
required:
- slug
- title
properties:
slug:
type: string
description: 'URL-safe slug for the status page, must match
`^[a-z0-9][a-z0-9-]{1,48}[a-z0-9]$` (3–50 chars, lowercase alphanumeric
with hyphens, start/end alphanumeric).
The slug namespace is **global across all LastPing accounts**
(it backs the public `/status/{slug}` URL), so changing it to a
name already taken returns 409 — possibly another account''s.
Required on update: PATCH is a full replacement of the resource''s
config, so the current slug must be supplied even when unchanged.
'
example: my-services
title:
type: string
description: Human-readable display title for the status page.
example: My Services
check_ids:
type: array
items:
type: string
format: uuid
description: 'Ordered list of check UUIDs to display on the page. All checks must
belong to the authenticated project. Duplicates are silently deduped.
Omit or pass an empty array for a page with no checks.
'
example:
- 550e8400-e29b-41d4-a716-446655440000
visibility:
type: string
enum:
- public
- private
description: '`public` pages are accessible without authentication at `/status/{slug}`.
`private` pages are visible only in the dashboard.
Required on update — no default is applied.
'
example: public
StatusPage:
type: object
description: A status page resource returned by the API.
properties:
id:
type: string
format: uuid
description: Unique status page identifier.
example: d1e2f3a4-0000-0000-0000-000000000001
slug:
type: string
description: URL-safe slug for the page.
example: my-services
title:
type: string
description: Human-readable display title.
example: My Services
check_ids:
type: array
items:
type: string
format: uuid
description: Ordered list of check UUIDs displayed on this page (never null; may be empty).
example:
- 550e8400-e29b-41d4-a716-446655440000
visibility:
type: string
enum:
- public
- private
description: Page visibility.
example: public
public_url:
type: string
description: 'Full URL of the public status page (e.g. `https://app.lastping.dev/status/my-services`).
Empty string when `visibility` is `private`.
'
example: https://app.lastping.dev/status/my-services
created_at:
type: string
format: date-time
description: RFC 3339 UTC timestamp when the status page was created.
example: '2026-07-01T12:00:00Z'
Problem:
type: object
description: RFC 7807 problem detail returned on errors (Content-Type application/problem+json).
properties:
type:
type: string
description: URI identifying the problem type. Currently always "about:blank".
example: about:blank
title:
type: string
description: Short human-readable summary of the problem type.
example: Not Found
status:
type: integer
description: HTTP status code.
example: 404
detail:
type: string
description: Human-readable explanation specific to this occurrence.
example: check not found
engine:
type: string
description: Always "lastping".
example: lastping
service_version:
type: string
description: Running version of the api service.
example: dev
request_id:
type: string
description: Echo of X-Request-Id header (or a generated UUID when absent).
example: b5d3f2a1-0c7e-4b8d-a991-f3e0c2d1a4b7
code:
type: string
description: 'Machine-readable, SCREAMING_SNAKE_CASE error code (e.g.
`MONITOR_NOT_FOUND`, `SESSION_ONLY`, `CSRF_REQUIRED`,
`READ_ONLY_IMPERSONATION`, `IMPERSONATION_UNAVAILABLE`,
`VIEW_AS_CHANGED`, `INVALID_SCHEDULE`). Omitted for the small set of errors that
predate this convention and never got one. A client should branch
on `code`, not on `detail`''s prose, which may change wording
without notice.
'
example: MONITOR_NOT_FOUND
fix:
type: string
description: 'One-sentence, human-readable remediation for this `code` — what
to send instead, or what to do next. Omitted when `code` is
omitted.
'
example: Verify the check id belongs to your project; use GET /api/v1/checks to list your monitors.
StatusPageCreate:
type: object
description: Body for POST /api/v1/status-pages (create). See StatusPageUpdate for PATCH.
required:
- title
properties:
slug:
type: string
description: 'URL-safe slug for the status page. If supplied, must match
`^[a-z0-9][a-z0-9-]{1,48}[a-z0-9]$` (3–50 chars, lowercase alphanumeric
with hyphens, start/end alphanumeric).
The slug namespace is **global across all LastPing accounts**
(it backs the public `/status/{slug}` URL), so an explicitly supplied
slug may collide with another account''s and return 409.
`slug` is optional on create: omitting it generates a random,
collision-free slug in the same format, so this hazard only
applies to callers who deliberately choose a name.
'
example: my-services
title:
type: string
description: Human-readable display title for the status page.
example: My Services
check_ids:
type: array
items:
type: string
format: uuid
description: 'Ordered list of check UUIDs to display on the page. All checks must
belong to the authenticated project. Duplicates are silently deduped.
Omit or pass an empty array for a page with no checks.
'
example:
- 550e8400-e29b-41d4-a716-446655440000
visibility:
type: string
enum:
- public
- private
description: '`public` pages are accessible without authentication at `/status/{slug}`.
`private` pages are visible only in the dashboard.
Defaults to `private` on create if omitted.
'
example: public
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.
'