Skip to content
Protocol primitive

Protobuf decode

Decode a raw protobuf payload to JSON.

POSTapi.tikultra.com/v1/tools/protobuf-decodePrimitive · 2 credits
Upstreamlocal · protobuf decoderEvery plan

Parameters

NameTypeDescription
hexrequiredstringThe payload as hex.
e.g. 080c120474657374

Pricing

PlanPer callPer 1,000 calls
Starter2 credits$0.23
Growth2 credits$0.16
Scale2 credits$0.12

Responses

A 200 returns JSON with stable field names. Every response carries x-credits-cost, x-credits-tier and x-credits-remaining. Errors return a JSON body with a stable code and cost 0 credits. Error codes

curl -X POST https://api.tikultra.com/v1/tools/protobuf-decode \
  -H "x-api-key: $TIKULTRA_KEY" \
  -H "content-type: application/json" \
  -d '{"hex":"080c120474657374"}'
{
  "byte_length": 8,
  "fields": [
    {
      "field_number": 1,
      "wire_type": "varint",
      "value": 12
    },
    {
      "field_number": 2,
      "wire_type": "bytes_utf8",
      "value": "test"
    }
  ],
  "inferred_proto": "message DecodedPayload {\n  int64 field_1 = 1;\n  string field_2 = 2;\n}"
}
Try it in the playgroundFull reference in the docs

More in Devices, signing & primitives

Ready to build?

Start with 2,500 free credits and test every public endpoint, then pick a plan.