issue_attestation
Generate a signed JWT attestation with an agent's current trust scores, enabling third parties to verify the agent's reputation without querying the service.
Instructions
Issue a signed attestation (JWT) capturing an agent's current trust scores.
The attestation is portable — the agent can present it to third parties who verify the signature without querying this service.
The JWT includes:
sub: agent_id
scores: snapshot of all trust scores at issuance time
agentauth_linked: whether the agent has an AgentAuth identity
iss: 'agent-trust'
exp/nbf/iat: validity window
Attestations are signed with the service's Ed25519 key. Verifiers can check the signature using verify_attestation without authentication.
ttl_hours: validity period in hours (default: ATTESTATION_TTL_HOURS config) Requires authentication with trust.attest.issue scope.
Example call: issue_attestation(agent_id="550e8400-...", access_token="eyJ...", ttl_hours=24)
Example response: { "attestation_id": "b1c2d3e4-...", "subject_agent_id": "550e8400-...", "jwt_token": "eyJ...", "score_snapshot": {"overall": {"score": 0.82, "confidence": 0.71}}, "valid_from": "2026-03-20T12:00:00+00:00", "valid_until": "2026-03-21T12:00:00+00:00" }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | Yes | ||
| access_token | Yes | ||
| ttl_hours | No |