Discovery

Get Call Receipt

Receipt for a paid call — endpoint, status, outcome, charged price, payment method, network, pay-to address, settlement transaction and payer. Every paid response carries X-Receipt-Id and X-Receipt-Url headers pointing here. Receipts are kept for 30 days. A receipt is unsigned: its evidence is the settlement transaction, which anyone can check on-chain.

get/receipts/{requestId}

Request

  • Base URL: https://api.weblens.dev
  • URL: https://api.weblens.dev/receipts/{requestId}
  • Auth: none required

Path parameters

requestIdstring required

The X-Request-Id / X-Receipt-Id of the paid call

Response

Receipt for the call

type'weblens-call-receipt-v1'
requestIdstring
endpointstring
methodstring
statusinteger

HTTP status the caller received

outcome'success' | 'error'
pricestring

Charged price, e.g. "$0.015". Absent when the call was not charged.

currency'USD'
paymentMethodstring

"x402" or "credits"

networkstring
payTostring
transactionstring

Settlement transaction (EVM tx hash or Solana signature) — the on-chain proof of payment. Absent for credits.

payerstring

Address that paid

servedAtstring

Changes

No recorded changes to this operation across all 1 revision of this API.