GET /v1/base64Base64 encode/decode
Format Utils lf-format-utils
Turns ordinary text into a scrambled code, or turns that code back into text. Encodes or decodes Base64 data. Mode can be 'encode' or 'decode'. Uses standard Base64 alphabet.
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
input | string | Yes | Input text to encode/decode |
mode | string | No | Operation mode (encode/decode) |
Response Schema
success (boolean): Operation success
input (string): Original input
mode (string): Operation mode
result (string): Encoded/decoded result
cURL Example
curl 'https://lf-format-utils.laminarforge.dev/v1/base64?input=<input>' -H 'Authorization: Bearer lf_YourApiKey'
Python Example
import requests
url = 'https://lf-format-utils.laminarforge.dev/v1/base64'
headers = {'Authorization': 'Bearer lf_YourApiKey'}
params = {'input': '<input>'}
response = requests.get(url, headers=headers, params=params)
print(response.json())