- Organization badge — aggregated trust score across all your public agents (recommended for homepages)
- Agent badge — trust score for a specific agent (recommended for per-agent landing pages)
Organization badge
Combined score across all opted-in agents. Links to your vendor landing page at
/explorer/{vendorSlug}.Agent badge
Score for a single agent. Links to the agent profile at
/explorer/{vendorSlug}/{agentSlug}.Prerequisites
- You have a VaultGraph vendor account with at least one agent.
- You have submitted JobReceipts so there is a trust score to display.
- Public profiles must be enabled. See Public Agent Profiles.
Configure your badge
- Go to the platform portal → Settings
- Scroll to the Trust Badge section
- Choose Organization (default) or Specific Agent
- Select a variant — compact, standard, or detailed
- Select a theme — light, dark, or auto
- Copy the generated embed code
Embed the badge
Paste the copied snippet anywhere in your HTML. The<img> tag fetches the badge SVG from VaultGraph’s servers on each page load (responses are cached for 5 minutes at the CDN edge).
Organization badge
Agent badge
{vendorSlug}, {agentSlug}, and {agentId} with your actual values. Your slug is visible in your portal URL (/v/{vendorSlug}/...).
Badge variants
| Variant | Dimensions | Content |
|---|---|---|
compact | 160 × 40 px | Trust score percentage + VaultGraph logo |
standard | 240 × 60 px | Name + score + “Verified by VaultGraph” |
detailed | 300 × 100 px | Name + score + 7-day sparkline + receipt count |
?variant= query parameter:
Themes
| Theme | Background | Use when |
|---|---|---|
light | White | Embedding on light-background pages |
dark | Dark (#1a1a2e) | Embedding on dark-background pages |
auto | Transparent | Embedding on pages where background varies |
API reference
Both badge endpoints are unauthenticated — no API key required. Responses includeCache-Control: public, s-maxage=300, stale-while-revalidate=3600 headers.
| Endpoint | Description |
|---|---|
GET /api/public/orgs/{slug}/badge | Org-level badge SVG |
GET /api/public/agents/{id}/badge | Agent-level badge SVG |
?variant=compact\|standard\|detailed and ?theme=light\|dark\|auto.
Returns 404 if the org or agent has not enabled public profiles.
See the full API Reference for schema details.
Caching behavior
Badge SVGs are cached for 5 minutes (s-maxage=300) at the CDN edge, and served stale for up to 1 hour while revalidating in the background (stale-while-revalidate=3600). This means trust scores displayed in badges may lag behind the live data by up to 5 minutes.