{"uid":"cap_bB7TlG9KLDIoLUIoArgAH","slug":"pack-openverbs-com-decode-2a081c1d","name":"pack.openverbs.com Decode","description":"Decode a MessagePack or CBOR byte stream (supplied as a base64/base64url/hex string) back into a JSON value. A malformed envelope, malformed bytes, or a value that is not JSON-representable is rejected before payment.","url":"https://pack.openverbs.com/v1/decode","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["format","data"],"properties":{"data":{"type":"string","maxLength":5000000,"description":"The encoded bytes, in `inputEncoding`."},"format":{"enum":["msgpack","cbor"],"type":"string","description":"Binary format, one of msgpack, cbor."},"inputEncoding":{"enum":["base64","base64url","hex"],"type":"string","description":"Envelope encoding of the data string (base64, base64url, hex). Default base64."}},"additionalProperties":false},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.004","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.004/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_yCiv7lG_lEJgrw0SEuEwu","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Decodes a MessagePack or CBOR binary-encoded byte stream (supplied as base64, base64url, or hex) back into a JSON value","exampleAgentPrompt":"Decode this base64 MessagePack byte string back to JSON: 'gaNmb2+jYmFy' — it's in msgpack format encoded as base64.","exampleUseCases":[{"title":"Decode API response from IoT device","prompt":"I received this base64-encoded MessagePack payload from my IoT sensor: 'hKNrZXmjZm9vo3ZhbKNiYXI='. Can you decode it from msgpack back into readable JSON so I can see what the sensor reported?"},{"title":"Inspect CBOR-encoded blockchain data","prompt":"I have a hex-encoded CBOR blob from a blockchain transaction — 'a2616101616202' — can you decode it from CBOR using hex encoding so I can see the original JSON data structure?"},{"title":"Debug serialized message queue payload","prompt":"My message queue is producing base64url-encoded MessagePack messages and I need to inspect one for debugging. Here's the encoded string: 'g6NmZWWBo2Jhcg=='. Please decode it as msgpack from base64url so I can read its contents."}],"resultDescription":"A JSON value (object, array, string, number, boolean, or null) that was originally serialized into the binary format. If the input bytes are malformed, use an unsupported encoding, or produce a value not representable in JSON, the endpoint rejects the request before charging.","failureModes":["Malformed base64/base64url/hex string — rejected before payment","Bytes that are not valid MessagePack or CBOR — rejected before payment","Decoded value not representable in JSON (e.g. special float values) — rejected before payment","Payload exceeds 5MB data field limit","Missing required fields (format, data) — validation error","Unsupported format value other than msgpack or cbor"],"whenToPreferThis":"Choose this endpoint when you need to decode MessagePack or CBOR binary data back into JSON and want a simple, paid-per-call API with no infrastructure setup. Particularly useful in agentic pipelines that receive binary-serialized payloads from IoT devices, blockchains, or high-performance services and need to inspect or process the contents as JSON. Compared to running a local decoder, this removes the need for binary parsing libraries in your agent runtime.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:34:35.659Z","isFirstParty":false}