After you protect content on Truthlocks, you can embed a badge that links to the cryptographic proof. Visitors click the badge to verify authenticity without needing a Truthlocks account.Documentation Index
Fetch the complete documentation index at: https://docs.truthlocks.com/llms.txt
Use this file to discover all available pages before exploring further.
How badges work
Each protection generates a unique badge URL and a proof page URL. The badge is a dynamic SVG image that shows the current verification status — Protected (cyan/green) or Not Found (red). Clicking the badge opens the proof page where anyone can inspect the attestation details. Badge URL format:Badge styles
Badges are available in four styles. Append thestyle query parameter to choose a layout:
| Style | Description | Size |
|---|---|---|
| default | Two-tone shield badge with a gradient overlay and rounded corners | 300 × 36 px |
| flat | Same two-tone layout without gradients — clean and minimal | 300 × 36 px |
| large | Card-style badge showing status pill, content title, and protection date | 400 × 80 px |
| minimal | Text-only checkmark label with no background | 200 × 24 px |
Dark theme variant
Every style supports a dark theme variant. Appendtheme=dark to use lighter backgrounds and brighter accent colors suited for dark-background pages:
Embed formats
After protecting content, copy the badge embed code from the proof page or the success screen. Truthlocks provides two formats:ATTESTATION_ID with the ID returned when you minted the protection. To use a specific style, add ?style=flat (or any style name) to the badge URL. Add &theme=dark for dark pages.
Dynamic status
Badges reflect the real-time verification status of the underlying attestation:| Status | Appearance | Meaning |
|---|---|---|
| Protected | Cyan/green badge | The attestation exists and is valid on the transparency log |
| Not Found | Red badge | The attestation was not found or has been revoked |
Certificates
You can download a formal SVG certificate for any protection. The redesigned certificate features a premium layout with a dark gradient header, circular verification seal, corner ornaments, and a details card showing the category, date, attestation ID, issuer, and SHA-256 content hash.truthlocks-certificate-{id}.svg). The HTML version renders the certificate in a centered page layout suitable for printing or embedding.
Certificates are useful for legal evidence, portfolio displays, or print. Download them from the proof page or the protection success screen.
Where to use badges
- GitHub READMEs — prove authorship of open-source code
- Personal websites — show visitors your content is verified
- Portfolio pages — link each piece to its cryptographic proof
- Social media bios — share your proof page URL directly
Next steps
Content protection
Full guide to protecting content with cryptographic attestations.
Public portfolio
Showcase your protected content on a public profile page.
Proof bundle spec
Technical specification for the verification payload behind each badge.

