ToolYourToolYourAPI Docs

Developer Tools

JSON, encoding, regex, HTTP helpers, and formatters — REST and TypeScript SDK via /api/v1/developer-apis.

TypeScript SDK

Namespace: ty.other for developer-apis slugs (e.g. json-formatterjsonFormatter). Full table: SDK Tool Map → Developer.

import { ToolYour } from "@toolyour/sdk";
const ty = ToolYour({ apiKey: process.env.TOOLYOUR_API_KEY! });

await ty.other.jsonFormatter({ text: '{"a":1,"b":[2,3]}', space: 2 });
await ty.other.jsonValidator({ text: '{"ok":true}' });

Base path: /api/v1/developer-apis

List tools

curl -s "https://api.toolyour.com/api/v1/developer-apis/catalog"

No API key required for the catalog.

Run a tool

JSON formatter / pretty-print or minify (browser: /developer-tools/json-formatter; MCP: jsonFormatter):

curl -X POST "https://api.toolyour.com/api/v1/developer-apis/json-formatter" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: $API_KEY" \
  -d '{"text":"{\"a\":1,\"b\":[2,3]}","space":2}'
await ty.other.jsonFormatter({
  text: '{"a":1,"b":[2,3]}',
  space: 2,
});

JSON validator / check syntax (browser: /developer-tools/json-validator; MCP: jsonValidator):

curl -X POST "https://api.toolyour.com/api/v1/developer-apis/json-validator" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: $API_KEY" \
  -d '{"text":"{\"ok\":true}"}'
await ty.other.jsonValidator({
  text: '{"ok":true}',
});

Base64 encode / decode (browser: /developer-tools/base64-encoder-decoder; MCP: base64EncoderDecoder):

curl -X POST "https://api.toolyour.com/api/v1/developer-apis/base64-encoder-decoder" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: $API_KEY" \
  -d '{"text":"Hello ToolYour","mode":"encode"}'
await ty.other.base64EncoderDecoder({
  text: "Hello ToolYour",
  mode: "encode",
});

URL encode / percent-encode (browser: /developer-tools/url-encoder-decoder; MCP: urlEncoderDecoder):

curl -X POST "https://api.toolyour.com/api/v1/developer-apis/url-encoder-decoder" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: $API_KEY" \
  -d '{"text":"hello world & more","mode":"encode"}'
await ty.other.urlEncoderDecoder({
  text: "hello world & more",
  mode: "encode",
});

UUID generator (browser: /developer-tools/uuid-generator; MCP: uuidGenerator):

curl -X POST "https://api.toolyour.com/api/v1/developer-apis/uuid-generator" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: $API_KEY" \
  -d '{"count":3,"version":"v4"}'
await ty.other.uuidGenerator({
  count: 3,
  version: "v4",
});

Timestamp converter / Unix ↔ ISO (browser: /developer-tools/timestamp-converter; MCP: timestampConverter):

curl -X POST "https://api.toolyour.com/api/v1/developer-apis/timestamp-converter" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: $API_KEY" \
  -d '{"value":"1710000000","mode":"auto"}'
await ty.other.timestampConverter({
  value: "1710000000",
  mode: "auto",
});

Regex tester (browser: /developer-tools/regex-tester; MCP: regexTester):

curl -X POST "https://api.toolyour.com/api/v1/developer-apis/regex-tester" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: $API_KEY" \
  -d '{"pattern":"\\\\w+","flags":"g","text":"hello world 123"}'
await ty.other.regexTester({
  pattern: "\\w+",
  flags: "g",
  text: "hello world 123",
});

Wave 2b — JSON codegen

JSON to TypeScript (browser: /developer-tools/json-to-typescript; MCP: jsonToTypescript):

curl -X POST "https://api.toolyour.com/api/v1/developer-apis/json-to-typescript" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: $API_KEY" \
  -d '{"json":"{\"hello\":\"world\",\"count\":1}","name":"Root"}'
await ty.other.jsonToTypescript({
  json: '{"hello":"world","count":1}',
  name: "Root",
});

JSON to Zod (browser: /developer-tools/json-to-zod; MCP: jsonToZod):

curl -X POST "https://api.toolyour.com/api/v1/developer-apis/json-to-zod" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: $API_KEY" \
  -d '{"json":"{\"hello\":\"world\",\"count\":1}","name":"schema"}'
await ty.other.jsonToZod({
  json: '{"hello":"world","count":1}',
  name: "schema",
});

JSON to Go struct (browser: /developer-tools/json-to-go-struct; MCP: jsonToGoStruct):

curl -X POST "https://api.toolyour.com/api/v1/developer-apis/json-to-go-struct" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: $API_KEY" \
  -d '{"json":"{\"hello\":\"world\",\"count\":1}","name":"Root"}'
await ty.other.jsonToGoStruct({
  json: '{"hello":"world","count":1}',
  name: "Root",
});

JSON to Python (browser: /developer-tools/json-to-python; MCP: jsonToPython):

curl -X POST "https://api.toolyour.com/api/v1/developer-apis/json-to-python" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: $API_KEY" \
  -d '{"json":"{\"hello\":\"world\",\"count\":1}","name":"Root"}'
await ty.other.jsonToPython({
  json: '{"hello":"world","count":1}',
  name: "Root",
});

YAML to JSON (browser: /developer-tools/yaml-to-json; MCP: yamlToJson):

curl -X POST "https://api.toolyour.com/api/v1/developer-apis/yaml-to-json" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: $API_KEY" \
  -d '{"yaml":"hello: world\ncount: 1\n"}'
await ty.other.yamlToJson({
  yaml: "hello: world\ncount: 1\n",
});

JSON to YAML (browser: /developer-tools/json-to-yaml; MCP: jsonToYaml):

curl -X POST "https://api.toolyour.com/api/v1/developer-apis/json-to-yaml" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: $API_KEY" \
  -d '{"json":"{\"hello\":\"world\",\"count\":1}"}'
await ty.other.jsonToYaml({
  json: '{"hello":"world","count":1}',
});

XML Formatter (browser: /developer-tools/xml-formatter; MCP: xmlFormatter):

curl -X POST "https://api.toolyour.com/api/v1/developer-apis/xml-formatter" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: $API_KEY" \
  -d '{"xml":"<root><item id=\"1\">hi</item></root>"}'
await ty.other.xmlFormatter({
  xml: '<root><item id="1">hi</item></root>',
});

For validate → format → Zod codegen in one agent loop, use MCP playbook dev-json-pipeline. For a YAML→JSON→XML format pipeline, use dev-format-transform. Single HTML/CSS/JS/SQL format, minify, cron, and color jobs are one-shots via plan_task / invoke_tool.

Wave 2c — HTTP / auth helpers

JWT Generator (browser: /developer-tools/jwt-generator; MCP: jwtGenerator). HS256 test tokens only — disposable secrets:

curl -X POST "https://api.toolyour.com/api/v1/developer-apis/jwt-generator" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: $API_KEY" \
  -d '{"payload":{"sub":"user-1","role":"tester"},"secret":"dev-only-secret","expiresIn":"1h"}'
await ty.other.jwtGenerator({
  payload: { sub: "user-1", role: "tester" },
  secret: "dev-only-secret",
  expiresIn: "1h",
});

For mint → decode in one agent loop, use MCP playbook dev-auth-debug.

HTTP Headers Checker (browser: /developer-tools/http-headers-checker; MCP: httpHeadersChecker). Raw response headers only — 3 credits; not a security score:

curl -G "https://api.toolyour.com/api/v1/developer-apis/http-headers-checker" \
  -H "X-Api-Key: $API_KEY" \
  --data-urlencode "url=https://example.com"
await ty.other.httpHeadersChecker({
  url: "https://example.com",
});

For graded CSP/HSTS scoring, use the security-headers playbook (Security Tools), not this one-shot.

API Request Builder (browser: /developer-tools/api-request-builder; MCP: apiRequestBuilder). Compose only — nothing is sent:

curl -X POST "https://api.toolyour.com/api/v1/developer-apis/api-request-builder" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: $API_KEY" \
  -d '{"method":"POST","url":"https://example.com/api","headers":{"Content-Type":"application/json","Authorization":"Bearer TOKEN"},"body":"{\"ok\":true}"}'
await ty.other.apiRequestBuilder({
  method: "POST",
  url: "https://example.com/api",
  headers: { "Content-Type": "application/json", Authorization: "Bearer TOKEN" },
  body: '{"ok":true}',
});

User Agent Parser (browser: /developer-tools/user-agent-parser; MCP: userAgentParser):

curl -X POST "https://api.toolyour.com/api/v1/developer-apis/user-agent-parser" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: $API_KEY" \
  -d '{"userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36"}'
await ty.other.userAgentParser({
  userAgent:
    "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36",
});

IP Address Tools (browser: /developer-tools/ip-address-tools; MCP: ipAddressTools). Local validation only — no geo/ASN:

curl -X POST "https://api.toolyour.com/api/v1/developer-apis/ip-address-tools" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: $API_KEY" \
  -d '{"ip":"192.168.1.10"}'
await ty.other.ipAddressTools({
  ip: "192.168.1.10",
});

Wave 2d — Formatters / minifiers / cron

HTML Formatter (browser: /developer-tools/html-formatter; MCP: htmlFormatter):

curl -X POST "https://api.toolyour.com/api/v1/developer-apis/html-formatter" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: $API_KEY" \
  -d '{"html":"<div><p>hello</p></div>"}'
await ty.other.htmlFormatter({
  html: "<div><p>hello</p></div>",
});

CSS Formatter (browser: /developer-tools/css-formatter; MCP: cssFormatter):

curl -X POST "https://api.toolyour.com/api/v1/developer-apis/css-formatter" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: $API_KEY" \
  -d '{"css":".box{color:red;margin:0}"}'
await ty.other.cssFormatter({ css: ".box{color:red;margin:0}" });

JS Formatter (browser: /developer-tools/js-formatter; MCP: jsFormatter):

curl -X POST "https://api.toolyour.com/api/v1/developer-apis/js-formatter" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: $API_KEY" \
  -d '{"code":"const x=1;function f(){return x}"}'
await ty.other.jsFormatter({ code: "const x=1;function f(){return x}" });

SQL Formatter (browser: /developer-tools/sql-formatter; MCP: sqlFormatter):

curl -X POST "https://api.toolyour.com/api/v1/developer-apis/sql-formatter" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: $API_KEY" \
  -d '{"sql":"select id,name from users where active=1 order by name"}'
await ty.other.sqlFormatter({ sql: "select id,name from users where active=1 order by name" });

SQL Validator (browser: /developer-tools/sql-validator; MCP: sqlValidator):

curl -X POST "https://api.toolyour.com/api/v1/developer-apis/sql-validator" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: $API_KEY" \
  -d '{"sql":"SELECT id FROM users WHERE (active = 1"}'
await ty.other.sqlValidator({ sql: "SELECT id FROM users WHERE (active = 1" });

Regex Generator (browser: /developer-tools/regex-generator; MCP: regexGenerator). Vetted presets — not AI-written:

curl -X POST "https://api.toolyour.com/api/v1/developer-apis/regex-generator" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: $API_KEY" \
  -d '{"kind":"email"}'
await ty.other.regexGenerator({ kind: "email" });

Cron Expression Generator (browser: /developer-tools/cron-expression-generator; MCP: cronExpressionGenerator):

curl -X POST "https://api.toolyour.com/api/v1/developer-apis/cron-expression-generator" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: $API_KEY" \
  -d '{"minute":"0","hour":"3","dayOfMonth":"*","month":"*","dayOfWeek":"*"}'
await ty.other.cronExpressionGenerator({
  minute: "0",
  hour: "3",
  dayOfMonth: "*",
  month: "*",
  dayOfWeek: "*",
});

Cron Expression Parser (browser: /developer-tools/cron-expression-parser; MCP: cronExpressionParser):

curl -X POST "https://api.toolyour.com/api/v1/developer-apis/cron-expression-parser" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: $API_KEY" \
  -d '{"expression":"15 2 * * 1-5"}'
await ty.other.cronExpressionParser({ expression: "15 2 * * 1-5" });

CSS Minifier (browser: /developer-tools/css-minifier; MCP: cssMinifier). Lite pass — not cssnano:

curl -X POST "https://api.toolyour.com/api/v1/developer-apis/css-minifier" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: $API_KEY" \
  -d '{"css":".box {\n  color: red;\n  margin: 0;\n}\n"}'
await ty.other.cssMinifier({ css: ".box {\n  color: red;\n  margin: 0;\n}\n" });

JS Minifier (browser: /developer-tools/js-minifier; MCP: jsMinifier). Lite pass — not Terser:

curl -X POST "https://api.toolyour.com/api/v1/developer-apis/js-minifier" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: $API_KEY" \
  -d '{"code":"const x = 1;\nfunction f() { return x; }\n"}'
await ty.other.jsMinifier({ code: "const x = 1;\nfunction f() { return x; }\n" });

Color Converter (browser: /developer-tools/color-converter; MCP: colorConverter):

curl -X POST "https://api.toolyour.com/api/v1/developer-apis/color-converter" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: $API_KEY" \
  -d '{"color":"#336699"}'
await ty.other.colorConverter({ color: "#336699" });

Available Wave 2a slugs

json-formatter, json-validator, base64-encoder-decoder, url-encoder-decoder, uuid-generator, timestamp-converter, regex-tester

Available Wave 2b slugs (codegen)

json-to-typescript, json-to-zod, json-to-go-struct, json-to-python, yaml-to-json, json-to-yaml, xml-formatter

Available Wave 2c slugs (HTTP / auth)

jwt-generator, http-headers-checker, api-request-builder, user-agent-parser, ip-address-tools

Available Wave 2d slugs (formatters / cron / color)

html-formatter, css-formatter, js-formatter, sql-formatter, sql-validator, regex-generator, cron-expression-generator, cron-expression-parser, css-minifier, js-minifier, color-converter

Request body fields vary by tool — check the Developer APIs entries in the API reference.

On this page