{"uid":"cap_ecGMhnqQUdz6VrmTaFpRb","slug":"agent-payload-tools-pipeline-ab5affd0","name":"Agent Payload Tools – Pipeline","description":"Run 1 to 12 deterministic encoding, decoding, JSON, or hashing operations in sequence.","url":"https://api.agent-payload-tools.workers.dev/pipeline","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"input":{"description":"Initial JSON-compatible value."},"operations":{"type":"array","items":{"type":"object","required":["type"],"properties":{"type":{"enum":["base64_encode","base64_decode","hex_encode","hex_decode","url_encode","url_decode","json_parse","json_canonicalize","sha256","sha512"],"type":"string","description":"Deterministic operation to apply to the current value."}}},"maxItems":12,"minItems":1,"description":"Ordered deterministic transformations."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_jVG41fWLZbqi7ZWXyZGtD","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Applies an ordered sequence of deterministic encoding, hashing, and JSON transformation operations to an input value in a single API call.","exampleAgentPrompt":"Take the string 'hello world', first SHA256 hash it, then base64 encode the result — apply those two operations in order using the pipeline.","exampleUseCases":[{"title":"Sign-ready canonical JSON preparation","prompt":"I need to prepare this JSON object for signing — first canonicalize it, then SHA256 hash it, then base64 encode the result: {\"amount\":100,\"currency\":\"USD\",\"recipient\":\"alice\"}."},{"title":"Decode and parse a base64 JWT payload","prompt":"I have this base64-encoded JWT payload segment and I need to first base64 decode it, then parse it as JSON so I can read the claims: 'eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIn0'."},{"title":"Hex-encode a hashed API secret","prompt":"Take my API secret string 'my-super-secret-key-2024', SHA512 hash it, then hex encode the output so I can store it safely."}],"resultDescription":"Returns the final transformed value after all ordered operations have been applied in sequence. The result type depends on the final operation — it may be a string (encoded/decoded), a hex digest, a base64 string, a parsed JSON object, or a canonical JSON string.","failureModes":["Invalid operation type specified — returns error if enum value is not one of the ten supported operations","Input incompatible with operation — e.g. base64_decode on a non-base64 string returns a decoding error","Chained operation type mismatch — e.g. trying to json_parse a value that is not a valid JSON string","Exceeding maxItems of 12 operations returns a validation error","Malformed input JSON in the request body returns 400","Payment not included or invalid x402 payment header returns 402 status"],"whenToPreferThis":"Choose this endpoint when you need deterministic, server-side encoding, hashing, or JSON transformation without running code locally — especially when chaining multiple operations (e.g. canonicalize → SHA256 → base64) in a single call. It is ideal for AI agents that cannot execute arbitrary code but need cryptographic or encoding primitives. Prefer it over general-purpose code execution tools when only encoding/hashing/JSON operations are needed, as it is cheaper and auditable.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:41:56.778Z","isFirstParty":false}