Decode CBOR (IoT, WebAuthn, COSE) to readable JSON or encode JSON as compact CBOR. Bytes come back as base64, large integers as strings.
curl -X POST https://api.bigapi.dev/v1/cbor/convert -H 'Authorization: Bearer $KEY' -H 'Content-Type: application/json' -d '{"cborBase64":"omFhAWFigvVheA=="}'
New keys come with 100 free operations, no signup: curl -X POST https://api.bigapi.dev/v1/keys. Failed calls cost nothing.
| Name | Meaning |
|---|---|
file | A CBOR or JSON file; the direction is detected from the content unless to is set. Default: none, send file, json or cborBase64 |
to | Force the direction for an uploaded file: json decodes CBOR, cbor encodes JSON. Allowed: json, cborDefault: detected from the file |
json | JSON value to encode as CBOR (JSON request body instead of a file). Default: none |
cborBase64 | CBOR bytes as base64 to decode to JSON (JSON request body instead of a file). Default: none |
Returns application/json | application/cbor. Response headers carry the cost (X-BigAPI-Cost) and notes about your input (X-BigAPI-Warnings).
Connect BiGapi as an MCP server: https://api.bigapi.dev/mcp (hosted) or npx -y @bigapi/mcp (local). Then ask in plain words; the agent finds cbor_convert on its own.