BCC Badge

Every Bonded Credibility Certificate issued through AgentLair has a public SVG badge at /v1/bcc/:id/badge.svg. Embed it in a GitHub README or any HTML page with a single <img> tag. The badge resolves through agentlair.dev on each render and reflects the current credential status — verified, expired, or revoked.


Endpoint

GET https://agentlair.dev/v1/bcc/:id/badge.svg

:id matches /^bcc_[A-Za-z0-9_-]+$/. The /badge path (without .svg) returns the same content.


Embed examples

Markdown

![BCC](https://agentlair.dev/v1/bcc/<id>/badge.svg)

HTML

<img src="https://agentlair.dev/v1/bcc/<id>/badge.svg" alt="BCC" />

JSX

<img src="https://agentlair.dev/v1/bcc/<id>/badge.svg" alt="BCC" />

Query parameters

ParameterValuesDefault
styleflat, flat-square, for-the-badgeflat
labelAny string — overrides the left-side labelBCC
compacttrue — uses short label AL-BCC

Status colors

StatusColorMeaning
verifiedgreen #4caf50Signature valid, window active
expiredamber #ff9800Signature valid, commitment window past
revokedred #f44336Revoked or signature invalid
unknowngray #9e9e9eCredential not found

Caching

AgentLair sets Cache-Control: public, max-age=300, s-maxage=300 (5 minutes). GitHub’s camo proxy caches independently.


Live example

BCC