Badges

API key

Put into badge links and copied URLs. Or open this page as /<api key>.

Generator

Build a badge, preview it and copy its URL or Markdown.

px, 0..20
api key: invalid
URL
/API_KEY
Markdown

Parameters

GET /<api key>/<type>.svg?label=…&message=…

ParameterDefaultMeaning
labelemptyLeft text. Empty: message only.
messageemptyRight text. Label or message is required, each at most 100 characters.
colorblueMessage background: a name or hex (4c1, %23e05d44).
label_colorgreyLabel background, same format.
styledefaultSize, predefined per type (below).
radiusper styleCorner radius in px, 0..20. rounded=false is radius=0.

Colors by name: green, success, passed, yellowgreen, yellow, running, pending, orange, red, failed, blue, purple, grey, gray, lightgrey, lightgray, skipped, canceled, black, white. Text is white or dark, whichever reads better on the background.

Type gitlab

Its styles

StyleHeightExampleURL
small 18px pipeline: passed
/API_KEY/gitlab.svg?label=pipeline&message=passed&color=green&style=small
default 20px pipeline: passed
/API_KEY/gitlab.svg?label=pipeline&message=passed&color=green&style=default
large 28px pipeline: passed
/API_KEY/gitlab.svg?label=pipeline&message=passed&color=green&style=large

More examples

ExampleURL
/API_KEY/gitlab.svg?label=coverage&message=87.5%25&color=yellowgreen
/API_KEY/gitlab.svg?label=status&message=failed&color=failed
/API_KEY/gitlab.svg?message=custom&color=ff69b4
/API_KEY/gitlab.svg?label=docs&message=latest&label_color=%23333&color=white
/API_KEY/gitlab.svg?label=release&message=v1.2.3&rounded=false

In GitLab

Settings → General → Badges, Badge image URL

https://badgekit-3-ac56a7ae2120.neodeploy-review.neopoly.dev/API_KEY/gitlab.svg?label=project&message=%{project_path}

GitLab fills in its placeholders before requesting the image.