apyhub
DEVELOPER TOOLS · SECURITY & PRIVACY

Encode and Decode Base64 API

What it does

Base64 Encoder Decoder turns UTF-8 text into Base64 and converts Base64 back into readable text.

Send a text query parameter to /encode and get an encoded string in response. Use /decode with an encoded query parameter and get a decoded string back. The service is small on purpose: it focuses on two common transformations developers need when moving text through URLs, headers, config values, or systems that expect Base64 payloads.

Use Base64 Encoder Decoder when you need to inspect an encoded value, verify a round-trip conversion, or prepare text for transport between services that do not accept raw characters. Because the inputs and outputs are plain strings, it fits well into scripts, test suites, internal tools, and lightweight integrations.

If your workflow depends on predictable text encoding and decoding, this endpoint pair gives you a straightforward way to convert in either direction without extra metadata or file handling.

▣ ENDPOINT 01 / 02
GET
Base64-encode a UTF-8 string
http://localhost:8080/dosvak/base64-encode-decode/encode
QUICKSTARTGUIDE

Quickstart

Encode a text string by sending it as a query parameter.

curl -X GET "http://localhost:8080/dosvak/base64-encode-decode/encode?text=Hello%20world" \
  -H "apy-token: $APY_TOKEN"

What you'll get back

Returns a JSON object with an encoded string field containing the Base64-encoded result.

{
  "encoded": "SGVsbG8gd29ybGQ="
}
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.

About this endpoint

What it does

Base64-encodes the UTF-8 string provided in the text query parameter and returns the encoded value in the response.

Query Parameter(s)

AttributeTypeMandatoryDescription
textStringYesThe UTF-8 string to encode.

Response

Returns a JSON object with an encoded string field containing the Base64-encoded value of the input text.

AttributeTypeMandatoryDescription
encodedStringNoThe Base64-encoded representation of the input text.

Query parameters

Name
Type
Description
textREQUIRED
string
▣ ENDPOINT 02 / 02
GET
Base64-decode a string back to UTF-8 text
http://localhost:8080/dosvak/base64-encode-decode/decode
QUICKSTARTGUIDE

Quickstart

Decode a Base64 string by passing it as the encoded query parameter.

curl -X GET "http://localhost:8080/dosvak/base64-encode-decode/decode?encoded=aGVsbG8gd29ybGQ=" \
  -H "apy-token: $APY_TOKEN"

What you'll get back

Returns a JSON object with an optional decoded string field containing the decoded text.

{
  "decoded": "hello world"
}
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.

About this endpoint

What it does

Decodes a Base64-encoded string back into UTF-8 text. The endpoint takes the encoded input as a query parameter and returns the decoded text in a JSON object.

Query Parameter(s)

AttributeTypeMandatoryDescription
encodedStringYesBase64-encoded string to decode back to UTF-8 text.

Response

Returns a JSON object with a decoded string field containing the UTF-8 text produced by decoding the input value.

ParameterTypeMandatoryDescription
decodedStringNoThe decoded UTF-8 text.

Query parameters

Name
Type
Description
encodedREQUIRED
string
▣ 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.