Anatomy of a badge
A Trust Badge token carries:vendorId— the verified company’s Vouchmark IDband—verified,partially_verified, orself_assertedscore— the score at issue timeissuedAtandexpiresAt— badges are short-lived; refresh nightlyiss— alwaysvouchmark.com
TRUST_BADGE_SECRET, a key dedicated to badges (never reused for user authentication).
Issuing a badge
A badge is issued automatically when a verified company hits a score threshold. You can also force a re-evaluation from the dashboard. Programmatically:Response
badgeToken is only populated while status is active; once a badge is revoked it is null.
Verifying a badge
Anyone — no auth — can verify a token:Response
200; validity is expressed in data.valid. It validates the signature and checks the badge’s status in the database. A badge that has been revoked (after a sanction hit, say, or a failed re-verification) returns data.valid: false with a reason — even though the JWT signature is intact.
Embedding the badge
Drop this snippet on the verified company’s website:Revocation
Badges are revoked when:- Smart Sentinel detects a material change (e.g. CAC status flipped to
INACTIVE, sanction hit, FIRS TIN deactivated). - The owner manually disables it from the dashboard.
- The underlying score drops below the issuing threshold on a nightly re-score.
valid: false.