{"uid":"cap_VrpaItwOmQEeuwpdArFgU","slug":"kevaremesh-gateway-finalize-cf149ebe","name":"KEVAREMESH Gateway Finalize","description":"Buyer-first MCP procurement gateway that discovers, compares and routes live x402 APIs without making the buyer choose a provider.","url":"https://kevaremesh-web.vercel.app/api/x402/gateway/finalize?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["finalize_token","gateway_request_id"],"properties":{"finalize_token":{"type":"string"},"gateway_request_id":{"type":"string"}}},"responseSchema":{"type":"object","required":["service","product","gateway_request_id","job_success","gateway_payment_settled","gateway_fee_usd","results"],"properties":{"product":{"type":"string"},"results":{"type":"array","items":{"type":"object"}},"service":{"type":"string"},"job_success":{"type":"boolean"},"generated_at":{"type":"string"},"gateway_fee_usd":{"type":"number"},"gateway_request_id":{"type":"string","format":"uuid"},"gateway_payment_settled":{"type":"boolean"},"upstream_execution_count":{"type":"integer"}},"additionalProperties":true},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0001","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.0001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_KazyCOAc8_fIBM-cfBEsx","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Finalizes a previously initiated gateway request and retrieves the results of a paid AI agent capability job.","exampleAgentPrompt":"I submitted a KEVAREMESH gateway job earlier — use finalize token 'tok_abc123' and gateway request ID 'req-uuid-456' to finalize it and bring back the results.","exampleUseCases":[{"title":"Collecting results of a paid AI task","prompt":"I kicked off a KEVAREMESH gateway job a moment ago. Finalize it using finalize token 'ftok_xyz789' and gateway request ID '3f2a1b00-aaaa-4c2d-9999-000000000001' and show me what came back."},{"title":"Confirming payment settlement after job run","prompt":"Check whether the payment for my KEVAREMESH gateway request '3f2a1b00-bbbb-4c2d-8888-000000000002' was settled and fetch the output using finalize token 'ftok_settle99'."},{"title":"Automated workflow result retrieval","prompt":"My agent pipeline just finished submitting a KEVAREMESH capability job — now finalize it with request ID '3f2a1b00-cccc-4c2d-7777-000000000003' and token 'ftok_pipeline55' so I can pass the results to the next step."}],"resultDescription":"Returns an object containing the service and product name, the original gateway request ID, a boolean indicating whether the job succeeded, whether the gateway payment was settled, the gateway fee in USD, an array of result objects from the upstream capability, a timestamp, and the count of upstream executions performed.","failureModes":["Invalid or expired finalize_token returns an authentication or token error","Unknown gateway_request_id returns a not-found error","Payment not yet settled may return gateway_payment_settled: false with incomplete results","Job failure indicated by job_success: false with potentially empty results array","Network timeout if upstream capability execution is still in progress"],"whenToPreferThis":"Use this endpoint as the second step after initiating a KEVAREMESH gateway capability request — it is the designated finalization and result-retrieval endpoint for the buyer-side Capability Gateway, needed to collect job output and confirm payment settlement after a prior submission.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T04:04:31.495Z","isFirstParty":false,"canonicalSlug":"kevaremesh-gateway-finalize-cf149ebe"}