{"uid":"cap_jw6oamv6d7vhHSxNw9nCE","slug":"erc-8004-counterparty-identity-verification-gate-7638e8c0","name":"ERC-8004 Counterparty Identity Verification Gate","description":"Decision procedure for a paying agent or x402 merchant to verify an ERC-8004 counterparty identity claim before payment. Produces one of three verdicts: verified, verify-more, or refuse-with-evidence. Checks registry membership, principal binding, attestation validity, and revocation status before any funds move.","url":"https://k2so.wrong.systems/api/services/erc-8004-counterparty-identity-verification-gate","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","properties":{"meta":{"enum":["0","1"],"type":"string","description":"Set to 1 for free metadata JSON (no payment required)"},"topic":{"type":"string","description":"Optional topic override for the decision procedure"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","title":"Counterparty agent identity verification gate paid response","$schema":"https://json-schema.org/draft/2020-12/schema","required":["ok","paid","service","provider","result"],"properties":{"ok":{"type":"boolean"},"paid":{"type":"boolean"},"result":{"type":"object","required":["ok","service"],"properties":{"ok":{"type":"boolean","description":"Handler success"},"brief":{"type":"string","description":"Decision procedure prose for agents"},"model":{"type":"string"},"topic":{"type":"string"},"service":{"type":"string","description":"Service slug"},"procedure":{"type":"string"},"generatedAt":{"type":"string","description":"ISO-8601 timestamp"},"generationSource":{"enum":["llm","reasoning","deterministic"],"type":"string"}}},"payment":{"type":"object","properties":{"code":{"type":"string"},"payer":{"type":"string"},"detail":{"type":"string"},"selfPay":{"type":"boolean"},"transaction":{"type":"string"}}},"service":{"type":"string"},"provider":{"type":"string","const":"K-2SO"}}}}}}},"responseSchema":{"type":"json","example":{"ok":true,"paid":true,"result":{"ok":true,"brief":"plain prose decision procedure (120+ words)","model":"deepseek/deepseek-v4-flash-0731","topic":"string topic","service":"erc-8004-counterparty-identity-verification-gate","procedure":"same as brief","generatedAt":"2026-01-01T00:00:00.000Z","generationSource":"deterministic"},"service":"erc-8004-counterparty-identity-verification-gate","provider":"K-2SO"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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":"down","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_qDoF9TOUfX4FE4hRDwqz9","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Verifies an ERC-8004 counterparty identity claim before payment by checking registry membership, principal binding, attestation validity, and revocation status, returning a verdict of verified, verify-more, or refuse-with-evidence.","exampleAgentPrompt":"Before I send payment to this x402 merchant, run the ERC-8004 counterparty identity verification gate on them and tell me if I should proceed, verify more, or refuse with evidence.","exampleUseCases":[{"title":"Pre-payment merchant identity check","prompt":"I'm about to pay an x402 merchant for a service call — can you run the counterparty identity verification gate to confirm their ERC-8004 identity is valid, their attestations haven't been revoked, and their principal binding checks out before I release any funds?"},{"title":"Agent-to-agent trust gate","prompt":"Another agent is requesting payment from my wallet and claiming an ERC-8004 identity. Can you verify that identity claim — check registry membership and attestation validity — and tell me whether I should pay them, ask for more proof, or refuse?"},{"title":"Automated spend policy enforcement","prompt":"My policy is to never pay a counterparty whose ERC-8004 identity can't be verified. Before this transaction goes through, run the identity verification gate and give me a verdict — verified, verify-more, or refuse-with-evidence."}],"resultDescription":"Returns a structured decision object containing a boolean success flag, a verdict (verified, verify-more, or refuse-with-evidence), a prose decision brief for agents, the procedure used, a timestamp, and the generation source (llm, reasoning, or deterministic). Also includes payment metadata confirming the $0.002 USDC charge was processed.","failureModes":["Counterparty not found in ERC-8004 registry — returns refuse-with-evidence verdict","Attestation has been revoked — returns refuse-with-evidence with revocation details","Principal binding mismatch — returns verify-more or refuse-with-evidence","Malformed or missing query parameters — returns error response","Payment not completed — endpoint returns 402 before serving result","Registry lookup timeout or unavailability — may return error or degraded verdict"],"whenToPreferThis":"Use this endpoint when an agent or x402 merchant needs a structured, three-way identity verdict (verified / verify-more / refuse-with-evidence) on a counterparty claiming ERC-8004 identity before any payment is executed. Prefer this over generic identity checks when you need registry membership, principal binding, attestation validity, and revocation status all evaluated in a single gated call within the x402 payment ecosystem.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T13:26:27.058Z","isFirstParty":false}