{"uid":"cap_T-ykD1d23AW2G0Ea3-nYe","slug":"agentproof-fetch-credit-pack-purchase-97b7a65d","name":"AgentProof Fetch – Credit Pack Purchase","description":"Provenance fetch for AI agents: turn a public URL into clean markdown with SHA-256 hashes of the raw bytes and the normalised markdown, plus an Ed25519-signed receipt that anyone can verify offline. Honours robots.txt; refuses private networks.","url":"https://agentproof-fetch-production.agentproof.workers.dev/v1/credits?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","properties":{},"description":"No input: the pack is fixed. Send {} (or an empty body).","additionalProperties":false},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"op":"credit_pack","pack":{"usage":"Authorization: Bearer <credit_key> on POST /v1/fetch or /v1/check","price_usd":"0.45","credit_usd":"0.50","prices_usd":{"check_changed":"0.002","fetch_markdown":"0.005"},"valid_until":"2027-09-24T12:00:00.000Z","credit_atomic":"500000"},"state":"SETTLED","job_id":"job_<24 hex>","receipt":{"alg":"Ed25519","payload":{"v":1,"type":"agentproof.receipt"},"signature":"<base64url>"},"credit_key":"apk_<43 base64url>"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.45","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.45/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.45","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.45","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_0zMwFQjc9Wsdh_uAQWkfz","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.45","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Purchase a prepaid credit pack for AgentProof Fetch, returning a bearer credit key and Ed25519-signed receipt that authorizes subsequent provenance fetch and change-check calls.","exampleAgentPrompt":"I need to start using AgentProof to fetch and verify web pages — can you pay for a credit pack so I get the bearer key and signed receipt to authorize my fetch calls?","exampleUseCases":[{"title":"Agent bootstrapping provenance pipeline","prompt":"Set up my agent with AgentProof credits so it can fetch URLs and get cryptographically signed receipts — go ahead and pay for the $0.45 credit pack and give me the bearer key."},{"title":"Fact-checking workflow setup","prompt":"I'm building a fact-checking tool that needs signed provenance for web pages — buy an AgentProof credit pack so I have enough credits to run fetch and check-changed calls, and return the credit key."},{"title":"Compliance audit trail initialization","prompt":"For my compliance audit pipeline I need to start capturing signed SHA-256 receipts of public URLs via AgentProof — can you purchase the credit pack and hand me the bearer token so I can begin?"}],"resultDescription":"Returns a JSON object containing: a `credit_key` (bearer token prefixed `apk_`) to authorize future `/v1/fetch` and `/v1/check` calls; a `credit_pack` object with total credit balance ($0.50 USD), per-operation prices (fetch_markdown: $0.005, check_changed: $0.002), and expiry date; a `job_id`; settlement `state`; and an Ed25519-signed `receipt` (with base64url signature and payload) that can be verified offline.","failureModes":["Payment not settled — state is not SETTLED, no credit_key issued","Insufficient USDC balance — payment rejected before receipt is generated","Network timeout on Cloudflare Worker — transient 5xx error, retry safe if no settlement confirmed","Malformed request body — 400 error if body does not conform to schema (must be empty object {})","Double-spend or replay detected — payment provider rejects duplicate payment attempts"],"whenToPreferThis":"Use this endpoint when an agent needs to acquire authorization to call AgentProof's `/v1/fetch` or `/v1/check` endpoints and does not yet have a valid credit key. This is the required first step before any provenance fetching can occur. Prefer this over alternatives when you need Ed25519-signed, offline-verifiable receipts tied to SHA-256 hashes of fetched content, which no generic scraping or caching API provides.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T06:35:14.649Z","isFirstParty":false,"canonicalSlug":"agentproof-fetch-credit-pack-purchase-97b7a65d"}