{"slug":"code-halowerk-com-v1-status-badge-13b2e2","title":"Render a status badge as SVG (flat, flat-square or for-the-badge) from a label a","host":"code.halowerk.com","method":"POST","resource":"https://code.halowerk.com/v1/status-badge","category":"code","description":"Render a status badge as SVG (flat, flat-square or for-the-badge) from a label and message, or from a value with thresholds that pick the color. Builds a shields-style SVG badge with text widths measured from the font metrics of Liberation Sans and fixed with textLength, an accessible title and uniq","price_listed":0.002,"price_asked":0.002,"state":"answering","state_label":"Answering","checks_7d":7,"answered_7d":7,"latency_ms_median":1002,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"label":"uptime","thresholds":{"higher_is_better":true,"ok":99.9,"warn":99},"unit":"%","value":99.95},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"additionalProperties":false,"properties":{"color":{"maxLength":20,"type":"string"},"decimals":{"maximum":6,"minimum":0,"type":"integer"},"label":{"maxLength":60,"minLength":1,"type":"string"},"label_color":{"maxLength":20,"type":"string"},"message":{"maxLength":60,"minLength":1,"type":"string"},"style":{"default":"flat","enum":["flat","flat-square","for-the-badge"],"type":"string"},"thresholds":{"additionalProperties":false,"properties":{"higher_is_better":{"default":true,"type":"boolean"},"ok":{"type":"number"},"warn":{"type":"number"}},"required":["ok","warn"],"type":"object"},"unit":{"maxLength":10,"type":"string"},"value":{"type":"number"}},"required":["label"],"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-11-26","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.002,"price_match":true,"latency_ms":1002,"error":null},{"day":"2026-11-25","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.002,"price_match":true,"latency_ms":915,"error":null},{"day":"2026-11-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.002,"price_match":true,"latency_ms":910,"error":null},{"day":"2026-11-23","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.002,"price_match":true,"latency_ms":888,"error":null},{"day":"2026-11-22","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.002,"price_match":true,"latency_ms":1193,"error":null},{"day":"2026-11-21","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.002,"price_match":true,"latency_ms":1164,"error":null},{"day":"2026-11-20","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.002,"price_match":true,"latency_ms":1174,"error":null}],"description_full":"Render a status badge as SVG (flat, flat-square or for-the-badge) from a label and message, or from a value with thresholds that pick the color. Builds a shields-style SVG badge with text widths measured from the font metrics of Liberation Sans and fixed with textLength, an accessible title and unique element IDs so several badges can be inlined in one page. Colors are hex values or the shields.io palette names (CC0).","last_updated":"2026-11-20T13:47:48.56Z","schemes":["exact"]}