Verify

POST /v1/verify

Verifies an Agent Badge's cryptographic signature against the identity_bridge's public key. Returns the agent's public profile on success.

This is the primary trust signal — any service that receives a badge can call this endpoint to confirm it's authentic, unexpired, and not revoked.

Auth: None

Timeout: 10 seconds


Request

curl -X POST https://identity.sentryagent.ai/v1/verify \
  -H "Content-Type: application/json" \
  -d '{ "badge": "eyJhbGciOiJFZERTQSIs..." }'

Success Response

{
  "valid": true,
  "did": "did:sentryagent:abc123",
  "public_profile": {
    "agent_name": "My AI Agent",
    "agent_version": "1.0.0",
    "developer_name": "Acme Corp",
    "contact_email": "dev@acme.com",
    "primary_goal": "Customer support automation",
    "tools": ["web-search", "email"],
    "trust_tier": "community",
    "data_residency": "us-east-1"
  }
}

Invalid Badge Response

{ "valid": false }