Tool Chain Endpoint
Run a pipeline of text transformations in a single request. Chain processors like base64-encode, uppercase, sha256, find-replace, and 30+ more.
Chain Request
POST /api/v1/tool-chain
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
input | string | Yes | Input text for the chain |
steps | array | Yes | Array of { processorId, options? }. Max 20 steps. |
Example
curl -X POST https://www.toolbox-kit.com/api/v1/tool-chain \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{"input": "Hello World", "steps": [{"processorId": "uppercase"}, {"processorId": "base64-encode"}]}'
{
"result": "SEVMTE8gV09STEQ=",
"steps": [
{ "step": 1, "processorId": "uppercase", "output": "HELLO WORLD" },
{ "step": 2, "processorId": "base64-encode", "output": "SEVMTE8gV09STEQ=" }
]
}
Available Processors
Encoding
| Processor ID | Description |
|---|---|
base64-encode | Encode text to Base64 |
base64-decode | Decode Base64 to text |
url-encode | URL-encode text |
url-decode | URL-decode text |
html-encode | Encode HTML entities |
html-decode | Decode HTML entities |
Case Conversion
| Processor ID | Description |
|---|---|
uppercase | Convert to UPPERCASE |
lowercase | Convert to lowercase |
title-case | Convert to Title Case |
camel-case | Convert to camelCase |
pascal-case | Convert to PascalCase |
snake-case | Convert to snake_case |
kebab-case | Convert to kebab-case |
constant-case | Convert to CONSTANT_CASE |
Formatting
| Processor ID | Description |
|---|---|
json-prettify | Pretty-print JSON |
json-minify | Minify JSON |
trim | Trim whitespace |
remove-blank-lines | Remove empty lines |
sort-lines | Sort lines alphabetically |
reverse-lines | Reverse line order |
unique-lines | Remove duplicate lines |
Transform
| Processor ID | Description |
|---|---|
reverse | Reverse the string |
rot13 | Apply ROT13 cipher |
number-lines | Add line numbers |
Manipulate
| Processor ID | Description |
|---|---|
find-replace | Find and replace text (requires options.find and options.replace) |
prefix | Add prefix to each line (requires options.prefix) |
suffix | Add suffix to each line (requires options.suffix) |
wrap-lines | Wrap each line (requires options.before and options.after) |
join-lines | Join all lines with separator (requires options.separator) |
Hashing
| Processor ID | Description |
|---|---|
sha1 | Generate SHA-1 hash |
sha256 | Generate SHA-256 hash |
sha512 | Generate SHA-512 hash |
Chaining with Options
Some processors accept options. Pass them in the step object:
{
"input": "Hello World\nFoo Bar",
"steps": [
{ "processorId": "uppercase" },
{ "processorId": "find-replace", "options": { "find": "WORLD", "replace": "EARTH" } },
{ "processorId": "prefix", "options": { "prefix": "> " } }
]
}