Endpoint
POST https://requiems.xyz/v1/technology/base64/encode
Base64 Encode
Encode a plain-text string to Base64. Supports standard (RFC 4648) and URL-safe (base64url) variants.
Parameters
| Name | Type | Required | Location | Description |
|---|---|---|---|---|
value |
string | yes | body | The string to encode |
variant |
string | no | body | Encoding variant: standard (default) or url (URL-safe base64url, RFC 4648 §5) |
Request Example
{
"value": "Hello, world!",
"variant": "standard"
}
Response Example
{
"data": {
"result": "SGVsbG8sIHdvcmxkIQ=="
},
"metadata": {
"timestamp": "2026-01-01T00:00:00Z"
}
}
Response Fields
| Field | Type | Description |
|---|---|---|
result |
string | The Base64-encoded output string |
Errors
undefined400 — value field is missing or emptyundefined422 — variant is not standard or urlundefined401 — Missing or invalid API key