Recipe Builder API
Run text through a chain of PithLab operations in order (decode, format, convert, change case, sort, dedupe, hash…) and return each step's output.
POST /api/v1/tools/recipe-builderMCP recipe_builderData & ConversionChain encoders, decoders and converters into one recipe: Base64 decode, format JSON, convert to YAML and more. Share it as a link. Runs in your browser.
Input
Send these as a JSON object. Unknown fields are rejected.
- input
- The starting text. (string, required)
- steps
- Comma-separated steps, each an operation id with an optional ":option" (the first choice is the default), e.g. "base64-decode,json-format,hash:SHA-256". Up to 20 steps. Operations: base64-encode, base64-decode, url-encode:<component|full>, url-decode, html-encode, html-decode, json-format:<2|4|tab>, json-minify, json-to-yaml, yaml-to-json, json-to-csv, csv-to-json, case:<upper|lower|title|sentence|camel|pascal|snake|kebab|constant|dot>, reverse:<characters|words|lines>, sort-lines:<az|za>, dedupe-lines, remove-empty-lines, clean-whitespace, slugify, to-bytes:<hex|binary>, from-bytes:<hex|binary>, hash:<SHA-256|SHA-512|SHA-384|SHA-1|MD5>. (string, up to 2000 characters, required)
curl https://pithlab.com/api/v1/tools/recipe-builder \n -H "Authorization: Bearer $PITHLAB_KEY" \n -H "Content-Type: application/json" \n -d '{"input":"eyJiIjoxLCJhIjoyfQ==","steps":"base64-decode,json-format,hash:SHA-256"}'Example response
{
"ok": true,
"result": {
"output": "6187abf18343848eb7b50e6a8977186128c84f5102f0094b4e843e4497d1768c",
"steps": [
{
"op": "base64-decode",
"output": "{\"b\":1,\"a\":2}"
},
{
"op": "json-format",
"option": "2",
"output": "{\n \"b\": 1,\n \"a\": 2\n}"
},
{
"op": "hash",
"option": "SHA-256",
"output": "6187abf18343848eb7b50e6a8977186128c84f5102f0094b4e843e4497d1768c"
}
]
}
}