Encoding Endpoints
Base64 Encode/Decode
Encode or decode Base64 strings.
POST /api/v1/base64
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
input | string | Yes | String to encode or decode |
mode | string | Yes | "encode" or "decode" |
Example
curl -X POST https://www.toolbox-kit.com/api/v1/base64 \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{"input": "Hello, World!", "mode": "encode"}'
{ "result": "SGVsbG8sIFdvcmxkIQ==" }
URL Encode/Decode
URL-encode or decode strings.
POST /api/v1/url-encode
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
input | string | Yes | String to encode or decode |
mode | string | Yes | "encode" or "decode" |
Example
curl -X POST https://www.toolbox-kit.com/api/v1/url-encode \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{"input": "hello world & foo=bar", "mode": "encode"}'
{ "result": "hello%20world%20%26%20foo%3Dbar" }
HTML Entities
Encode or decode HTML entities.
POST /api/v1/html-entities
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
input | string | Yes | String to encode or decode |
mode | string | Yes | "encode" or "decode" |
Example
curl -X POST https://www.toolbox-kit.com/api/v1/html-entities \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{"input": "<div class=\"test\">Hello</div>", "mode": "encode"}'
{ "result": "<div class="test">Hello</div>" }