Base64 decode
Try it interactively →POST /api/base64-decodeDecode standard or URL-safe base64 to bytes. Whitespace and base64url variants are accepted; padding is optional.
Inputs
| Name | Type | Default | Description |
|---|---|---|---|
| encoded* | string | — | Base64 or base64url text. Whitespace and missing padding are tolerated. |
Response
Modes: binary, json. Cache: yes (24h TTL).
Code samples
Built from the hello example.
curl -X POST https://api.xtract.bot/api/base64-decode \
-H "Content-Type: application/json" \
-H "Accept: application/octet-stream" \
-H "X-Account-Id: $XTRACT_ACCOUNT_ID" \
-H "X-Api-Key: $XTRACT_API_KEY" \
-d '{
"encoded": "SGVsbG8sIHdvcmxkIQ=="
}'