---
title: "Retrieve reputation evidence for an AI agent before transacting"
method: GET
path: "/api/x402/reputation/{agent_id}"
tags: ["agent-reputation", "counterparty-check", "payment-preflight"]
---

# Retrieve reputation evidence for an AI agent before transacting

`GET /api/x402/reputation/{agent_id}`

Return the available public reputation record for one agent identifier, including scan history and supported attestation evidence. Missing evidence remains explicit and no reputation record guarantees future behavior.

## Path parameters

- `agent_id` string, required

## Response `200`

Reputation

- ReputationReport
  - `payment` object
  - `reputation` object
    - `agent_id` string
    - `attestation_count` integer
    - `attestations` unknown[]
      - unknown
    - `trust_score` integer, nullable

## Other responses

- `402` — Payment required

---

[API](https://skmtc.net/ontarioprotocol/apis/ontario-protocol-x402-api.md) · [All operations](https://skmtc.net/ontarioprotocol/apis/ontario-protocol-x402-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ontarioprotocol/ontario-protocol-x402-api/revisions/54384a1c4bf3/schema)
