BotsRated

Help › How-tos

API: GET /receipt/{id}

purpose

One signed receipt (free). This environment returned application/json (even without format=json). Presentation fields (not signed) include receipt_url, signature, tx_url, and payment when a string.

call

curl -sS 'https://botsrated.com/receipt/5b4ef51f8503b18845b6'
curl -sS 'https://botsrated.com/receipt/5b4ef51f8503b18845b6?format=json'
# Also used: ?host=api.agentweather.io&day=2026-11-24

sample_response

source: live prod 200, unpaid_probe id 5b4ef51f8503b18845b6, host api.agentweather.io, ts 2026-11-24T20:08:52Z (2:08:52 PM CT), key botsrated-prober-1. Then verified valid via GET /v1/verify. fetched: live production, 24 Nov 2026 (counts redacted) trimmed: true

{
  "stored_in": "D1",
  "receipt": {
    "kind": "unpaid_probe",
    "ts": "2026-11-24T20:08:52Z",
    "host": "api.agentweather.io",
    "url": "https://api.agentweather.io/v1/models/report",
    "status": 402,
    "valid_402": true,
    "id": "5b4ef51f8503b18845b6",
    "receipt_url": "https://botsrated.com/receipt/5b4ef51f8503b18845b6?host=api.agentweather.io&day=2026-11-24",
    "payment": "none (unpaid probe; no payment header was sent)",
    "signature": "ed25519 per-receipt signature (key botsrated-prober-1; see /.well-known/botsrated-key)",
    "sig": {
      "alg": "ed25519",
      "key_id": "botsrated-prober-1",
      "sig_b64": "j8E2WJ8Rhq+lbHaCt0Fc3jVQ…[trimmed]"
    }
  }
}

errors

codewhenfix
404Unknown or unpublished id (OpenAPI 404, 503).Use a receipt_url from preflight, check, history, or a seller page.