API Documentation
DevToolBox API lets you use developer tools programmatically. Ideal for AI agents, automation scripts, and CI/CD pipelines.
Quick Start
curl -X POST https://usedevtools.com/api/v1/tools/base64 \
-H "Authorization: Bearer dtb_YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input": "Hello, World!", "mode": "encode"}'
# Response:
# {"output": "SGVsbG8sIFdvcmxkIQ==", "tool": "base64"}Authentication
Rate Limits
| Plan | Limit | Headers |
|---|---|---|
| Free | No API access | — |
| Pro | 1,000 req/day | X-RateLimit-Remaining, X-RateLimit-Reset |
Endpoint
POST /api/v1/tools/{slug}
Content-Type: application/json
Authorization: Bearer dtb_...Response
// Success (200)
{"output": "result", "tool": "slug"}
// Validation error (422)
{"error": "description", "tool": "slug"}
// Auth error (401/403)
{"error": "description"}
// Rate limit (429)
{"error": "Rate limit exceeded"}Available Tools (18)
Discovery endpoint: GET /api/v1/tools (no auth required)
base64Base64Base64 encode/decode text
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
input | string | Yes | — | Text to encode/decode |
mode | string "encode" | "decode" | No | encode | Operation mode |
curl -X POST https://usedevtools.com/api/v1/tools/base64 \
-H "Authorization: Bearer dtb_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"input":"Hello, World!","mode":"encode"}'hash-generatorHash GeneratorGenerate MD5, SHA-1, SHA-256, SHA-512 hashes
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
input | string | Yes | — | Text to hash |
algorithm | string "md5" | "sha1" | "sha256" | "sha512" | No | sha256 | Hash algorithm |
curl -X POST https://usedevtools.com/api/v1/tools/hash-generator \
-H "Authorization: Bearer dtb_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"input":"password123","algorithm":"sha256"}'json-formatterJSON FormatterFormat/minify JSON
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
input | string | Yes | — | JSON string to format |
indent | number | No | 2 | Indentation spaces (0 for minify) |
curl -X POST https://usedevtools.com/api/v1/tools/json-formatter \
-H "Authorization: Bearer dtb_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"input":"{\"a\":1,\"b\":2}","indent":2}'url-encodeURL Encode/DecodeURL encode/decode text
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
input | string | Yes | — | Text to encode/decode |
mode | string "encode" | "decode" | No | encode | Operation mode |
curl -X POST https://usedevtools.com/api/v1/tools/url-encode \
-H "Authorization: Bearer dtb_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"input":"hello world & foo=bar","mode":"encode"}'uuidUUID GeneratorGenerate UUID v4
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
count | number | No | 1 | Number of UUIDs to generate (1-100) |
curl -X POST https://usedevtools.com/api/v1/tools/uuid \
-H "Authorization: Bearer dtb_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"count":5}'timestampTimestamp ConverterConvert between Unix timestamp and ISO 8601
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
input | string | No | — | Timestamp or date string to convert |
mode | string "to-iso" | "to-unix" | "now" | Yes | — | Conversion direction |
curl -X POST https://usedevtools.com/api/v1/tools/timestamp \
-H "Authorization: Bearer dtb_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"input":"1700000000","mode":"to-iso"}'password-generatorPassword GeneratorGenerate secure random passwords
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
length | number | No | 20 | Password length (4-128) |
uppercase | boolean | No | true | Include uppercase letters |
lowercase | boolean | No | true | Include lowercase letters |
numbers | boolean | No | true | Include numbers |
symbols | boolean | No | false | Include symbols |
curl -X POST https://usedevtools.com/api/v1/tools/password-generator \
-H "Authorization: Bearer dtb_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"length":32,"symbols":true}'regex-testerRegex TesterTest regular expressions against input text
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
pattern | string | Yes | — | Regular expression pattern |
input | string | Yes | — | Text to test against |
flags | string | No | Regex flags (g, i, m, etc.) |
curl -X POST https://usedevtools.com/api/v1/tools/regex-tester \
-H "Authorization: Bearer dtb_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"pattern":"\\d+","input":"abc 123 def","flags":"g"}'diffText DiffCompare two texts and show differences
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
text1 | string | Yes | — | First text to compare |
text2 | string | Yes | — | Second text to compare |
curl -X POST https://usedevtools.com/api/v1/tools/diff \
-H "Authorization: Bearer dtb_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"text1":"hello world","text2":"hello earth"}'number-baseNumber Base ConverterConvert numbers between bases (binary, decimal, hex, octal)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
input | string | Yes | — | Number to convert |
from | number | No | 10 | Source base (2-36) |
to | number | No | 16 | Target base (2-36) |
curl -X POST https://usedevtools.com/api/v1/tools/number-base \
-H "Authorization: Bearer dtb_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"input":"255","from":10,"to":16}'json-yamlJSON/YAML ConverterConvert between JSON and YAML
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
input | string | Yes | — | JSON or YAML string to convert |
mode | string "json-to-yaml" | "yaml-to-json" | No | json-to-yaml | Conversion direction |
curl -X POST https://usedevtools.com/api/v1/tools/json-yaml \
-H "Authorization: Bearer dtb_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"input":"{\"name\":\"test\",\"value\":42}","mode":"json-to-yaml"}'lorem-ipsumLorem Ipsum GeneratorGenerate placeholder text
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
paragraphs | number | No | 1 | Number of paragraphs (1-20) |
curl -X POST https://usedevtools.com/api/v1/tools/lorem-ipsum \
-H "Authorization: Bearer dtb_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"paragraphs":2}'slug-generatorSlug GeneratorGenerate URL-friendly slugs from text
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
input | string | Yes | — | Text to convert to slug |
curl -X POST https://usedevtools.com/api/v1/tools/slug-generator \
-H "Authorization: Bearer dtb_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"input":"Hello World! This is a Test."}'line-counterLine/Word/Character CounterCount lines, words, and characters in text
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
input | string | Yes | — | Text to count |
curl -X POST https://usedevtools.com/api/v1/tools/line-counter \
-H "Authorization: Bearer dtb_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"input":"hello world\nfoo bar baz"}'jwt-decoderJWT DecoderDecode JWT tokens and check expiration
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
token | string | Yes | — | JWT token to decode |
curl -X POST https://usedevtools.com/api/v1/tools/jwt-decoder \
-H "Authorization: Bearer dtb_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"token":"eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxMjM0In0.signature"}'csv-jsonCSV/JSON ConverterConvert between CSV and JSON formats (RFC 4180 compliant)
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
input | string | Yes | — | CSV or JSON string to convert |
mode | string "csv-to-json" | "json-to-csv" | No | csv-to-json | Conversion direction |
delimiter | string | No | , | CSV delimiter character |
headers | boolean | No | true | First row contains headers (csv-to-json) |
curl -X POST https://usedevtools.com/api/v1/tools/csv-json \
-H "Authorization: Bearer dtb_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"input":"name,age\nAlice,30\nBob,25","mode":"csv-to-json"}'cron-parserCRON ParserParse CRON expressions into human-readable text
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
expression | string | Yes | — | CRON expression (5 fields: min hour dom mon dow) |
curl -X POST https://usedevtools.com/api/v1/tools/cron-parser \
-H "Authorization: Bearer dtb_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"expression":"0 9 * * 1-5"}'html-encodeHTML Entity Encoder/DecoderEncode/decode HTML special characters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
input | string | Yes | — | Text to encode/decode |
mode | string "encode" | "decode" | No | encode | Operation mode |
curl -X POST https://usedevtools.com/api/v1/tools/html-encode \
-H "Authorization: Bearer dtb_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"input":"<script>alert(\"xss\")</script>","mode":"encode"}'Error Codes
| Code | Meaning |
|---|---|
| 400 | Invalid request body |
| 401 | Missing or invalid API key |
| 403 | Pro subscription required or expired |
| 404 | Tool not found |
| 422 | Input validation failed |
| 429 | Rate limit exceeded (1000/day) |