{"uid":"cap_g3h8J7QqFecnwtxTiURMm","slug":"x402-hash-tools-api-5e21cdbd","name":"x402 Hash Tools API","description":"USDC pay-per-call APIs for AI agents via the x402 protocol (v2, exact, Base mainnet). Send a request, receive HTTP 402 with payment requirements, pay with @x402/fetch or any x402 client, retry with the PAYMENT-SIGNATURE header.","url":"https://call402.com/api/hash-tools?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"op":{"enum":["hash","base64-encode","base64-decode","uuid"],"type":"string"},"text":{"type":"string"}}},"responseSchema":{"type":"json","example":{"sha256":"2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824","sha512":"9b71d224bd62f3785d96d46ad3ea3d73319bfbc2890caadae2dff72519673ca7"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_HJUJc26BpsOhrkWRZZQpw","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes SHA-256/SHA-512 hashes, Base64 encodes/decodes text, or generates UUIDs via a pay-per-call USDC micropayment endpoint","exampleAgentPrompt":"Can you hash the text 'hello world' using SHA-256 for me?","exampleUseCases":[{"title":"Checksum verification for data integrity","prompt":"Hash the string 'mySecretPassword123' with SHA-256 so I can compare it against a stored digest."},{"title":"Base64 encoding for API payloads","prompt":"Base64 encode this text for me: 'username:password' — I need to send it as an Authorization header value."},{"title":"UUID generation for new database records","prompt":"Generate a fresh UUID I can use as a unique ID for a new database record I'm creating."}],"resultDescription":"A JSON object containing the computed result: for 'hash' operations, both sha256 and sha512 hex digest strings; for 'base64-encode' or 'base64-decode', the transformed string; for 'uuid', a newly generated UUID string.","failureModes":["Missing or invalid 'op' enum value returns a 400 error","Missing 'text' field for operations that require it","Payment not provided results in HTTP 402 with payment requirements; must retry with PAYMENT-SIGNATURE header","Malformed Base64 input for decode operation may return an error","Network or facilitator issues may cause payment verification failures"],"whenToPreferThis":"Choose this endpoint when your agent needs lightweight cryptographic utilities (SHA-256/SHA-512 hashing, Base64 encoding/decoding, or UUID generation) via a pay-per-call micropayment model without requiring API key management. Ideal for agentic workflows on Base mainnet using the x402 protocol where per-call USDC billing is preferred over subscription access.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-28T06:37:02.547Z","isFirstParty":false,"canonicalSlug":"x402-hash-tools-api-5e21cdbd"}