apyhub
Back

Base64 Encode & Decode API

What it does

Base64 Encoder Decoder converts text to Base64 and back again. Send a text string with an action of encode or decode, and it returns the performed action, the tool name, and the resulting result string.

Use it when you need to safely move plain text through systems that expect Base64-encoded values, such as email payloads, configuration values, or webhook integrations. It also helps when you need to decode an encoded string back into readable text for debugging or data handling.

The request schema is intentionally small: one input object with text and action, no extra fields. The response is equally direct, so you can plug the result into downstream logic without parsing unrelated metadata.

Base64 Encoder Decoder is a fit for basic encoding and decoding workflows where you want deterministic text transformation and a compact response shape.

POST
Base64 Encode / Decode Text
https://api.eu.apyhub.com/freedailypro/base64-encode-decode-api/security/base64

QUICKSTART

GUIDE

Quickstart

Encode or decode a string by sending the required text and action fields.

curl -X POST "https://api.eu.apyhub.com/freedailypro/base64-encode-decode-api/security/base64" \
  -H "apy-token: $APY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"text":"Hello, world!","action":"encode"}'

What you'll get back

The live response to the request above:

{
  "tool": "Base64 tool client and server side from freedailypro",
  "action": "encode",
  "result": "SGVsbG8sIHdvcmxkIQ=="
}
TRY ITLIVE · 10 ATOMS
Loading your default key…
The full key is used to call the gateway and stays in this tab — never sent to orbit or saved.
body*

About this endpoint

What it does

Encodes text to Base64, or decodes Base64 back to text, chosen with action. Unicode text such as non-English letters and emoji is supported. Use it to embed data in JSON, URLs, headers or config files.

Request Body

ParameterTypeMandatoryDescription
textStringYesThe text to encode or decode. Decoding invalid Base64 returns an empty result.
actionENUMYesOperation to perform: encode or decode.

Response

A successful call returns a JSON object with these fields:

ParameterTypeDescription
toolStringName of the tool that produced the response.
actionStringThe action that was performed (echoes the request).
resultStringThe Base64-encoded or decoded text.
▣ COMMON ERRORS

Errors any endpoint can return

400bad_request

Required parameter missing or malformed body.

401unauthorized

API key missing, revoked, or not authorized for this service.

429rate_limited

Your plan's per-second rate exceeded. Retry with exponential backoff.

503upstream_busy

Backend temporarily unavailable. Try again in a few seconds.