{"uid":"cap_WoNM6XErGyualddfpNuzT","slug":"x402-hash-api-base64-encode-decode-1c806543","name":"x402 Hash API – Base64 Encode/Decode","description":"Pay-per-call hashing and encoding for AI agents (USDC on Base)","url":"https://x402-hash-api.vercel.app/api/v1/base64?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"op":{"type":"string","description":"encode or decode"},"data":{"type":"string"}}},"responseSchema":{"type":"json","example":{"result":"aGVsbG8="}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_qENrHrthwkEY5g8YSqdbZ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Encodes or decodes a string using Base64, billed per call at $0.001 USDC via the x402 micropayment protocol on Base","exampleAgentPrompt":"Base64-encode the string 'Hello, World!' for me using the x402 pay-per-call hash API.","exampleUseCases":[{"title":"Encode credentials for HTTP Basic Auth","prompt":"Base64-encode the string 'myuser:mypassword' so I can use it in an HTTP Basic Authorization header."},{"title":"Decode a Base64 payload from an API response","prompt":"I got this base64 string 'aGVsbG8gd29ybGQ=' from an API — can you decode it back to plain text for me?"},{"title":"Encode webhook secret before storing","prompt":"Take the webhook secret 'wh_sec_abc123XYZ' and base64-encode it so I can safely embed it in a config file."}],"resultDescription":"A JSON object with a single 'result' field containing the Base64-encoded or decoded string, e.g. {\"result\": \"aGVsbG8=\"}","failureModes":["Missing or invalid 'op' field — only 'encode' or 'decode' are accepted; returns error if omitted or misspelled","Missing 'data' field — request must include the string to process","Invalid Base64 input when decoding — malformed or non-Base64 data will cause a decoding error","Payment failure — x402 micropayment of $0.001 USDC on Base may fail if wallet has insufficient funds or payment header is malformed","Rate limiting or cold-start latency on Vercel serverless deployment"],"whenToPreferThis":"Choose this endpoint when you need a simple, pay-per-call Base64 encode or decode operation within an x402-compatible agentic workflow and want to avoid setting up a local encoding library. Ideal for AI agents operating on Base/USDC that need occasional encoding without bundling dependencies. Not ideal if you need bulk/batch encoding, symmetric encryption, hashing (SHA/MD5), or other encoding formats beyond Base64.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T12:31:10.272Z","isFirstParty":false,"canonicalSlug":"x402-hash-api-base64-encode-decode-1c806543"}