Skip to content
All’s Well
API reference

Badges

Last updated MarkdownOpenAPI 3.1

A badge is a small SVG image showing a monitor's name, its status and its uptime over the plan's history window, up to 30 days, for a README or a web page. It reads like Storefront | UP 99.9%, or PAUSED while the monitor is paused, or UNAVAILABLE, with no figure, while the site's bot protection is blocking its checks.

Only monitors shown on a public status page have a badge, because the badge makes the same information public. Add the monitor to a public status page first; any other monitor's badge is a 404. The badge uses the name the status page shows, so a display name set on the page is used rather than the monitor's own name.

The SVG names itself (role="img" with a title such as Storefront: UP 99.9%), so a screen reader reads it even without alt text. Give the <img> alt text anyway, as in the examples below.

Embed it

The quickest way is to copy it: a public status page's edit screen lists a ready-made badge for each monitor on the page, in Markdown or HTML, with the right ID, name and link.

Markdown:

[![Storefront status](https://alls-well.io/badge/48213)](https://alls-well.io/status/northwind)

HTML:

<a href="https://alls-well.io/status/northwind"><img src="https://alls-well.io/badge/48213" alt="Storefront status" height="20"></a>

Get a monitor's status badge

GET /badge/{monitor}

Returns an SVG badge with the monitor's name as its public status page shows it, its status and its uptime over the plan's history window, up to 30 days, for a README or a web page. Only monitors shown on a public status page have a badge; any other is a 404. Responses are cached for 60 seconds.

Authentication None (public)
Rate limit None

Parameters

Name In Type Required Description
monitor path integer Yes The monitor's ID.

Example request

curl https://alls-well.io/badge/48213

Responses

Status When Body
200 The badge. An SVG image
404 The monitor doesn't exist or isn't shown on a public status page. Problem, or a "not found" SVG badge when the request accepts images
500 Something went wrong on our side. Try again; if it persists, contact support. Problem

200

An SVG image 20 pixels high, as wide as its text.

404

{"type": "about:blank", "title": "Not Found", "status": 404}

A request whose Accept header asks for images, as an <img> tag's does, gets a grey status | NOT FOUND SVG badge with the same 404 status instead, so an embed shows a badge rather than a broken image.

500

{"type": "about:blank", "title": "Internal Server Error", "status": 500}