API Documentation
Use DevDash tools programmatically. Free tier: 100 calls/day. Upgrade to Pro for 10,000/day.
Endpoints
POST https://devdash.tools/api/v1/decodeDecode/encode/convert using a specific tool
POST https://devdash.tools/api/v1/detectSmart Paste API: auto-detect type and decode in one call
/decode Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| tool | string | Yes | Tool name (see list below) |
| input | string | Yes | Data to process |
/detect Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| input | string | Yes | Any data -- we auto-detect what it is |
Detectable types: jwt, base64, epoch, uuid, json, url-encoded, hex, cron
Rate Limits
| Plan | Daily Limit | Price |
|---|---|---|
| Free | 100 calls/day | $0 |
| Pro | 10,000 calls/day | $12/mo |
Code Examples
cURL
# Decode a JWT
curl -X POST https://devdash.tools/api/v1/decode \
-H "Content-Type: application/json" \
-d '{"tool": "jwt-decoder", "input": "eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxMjM0NTY3ODkwIn0.dozjgNryP4J3jVmNHl0w5N_XgL0n3I9PlFUP0THsR8U"}'
# Auto-detect (Smart Paste API)
curl -X POST https://devdash.tools/api/v1/detect \
-H "Content-Type: application/json" \
-d '{"input": "1700000000"}'JavaScript
// Decode endpoint
const res = await fetch("https://devdash.tools/api/v1/decode", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ tool: "epoch-converter", input: "1700000000" }),
});
const data = await res.json();
console.log(data.iso); // "2023-11-14T22:13:20.000Z"
// Detect endpoint (Smart Paste)
const detect = await fetch("https://devdash.tools/api/v1/detect", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ input: "eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxMjM0NTY3ODkwIn0.xxx" }),
});
const result = await detect.json();
console.log(result.type); // "jwt"
console.log(result.decoded); // { header: {...}, payload: {...} }Python
import requests
# Decode
res = requests.post("https://devdash.tools/api/v1/decode", json={
"tool": "base64-decode",
"input": "SGVsbG8gV29ybGQ="
})
print(res.json()["result"]) # "Hello World"
# Detect
res = requests.post("https://devdash.tools/api/v1/detect", json={
"input": "550e8400-e29b-41d4-a716-446655440000"
})
print(res.json()) # {"type": "uuid", "decoded": {"version": "v4", ...}}Available Tools (/decode)
| Tool Name | Description |
|---|---|
| jwt-decoder | Decode JWT header, payload, and expiry status |
| epoch-converter | Convert Unix timestamps to dates and vice versa |
| base64-encode | Encode text to Base64 |
| base64-decode | Decode Base64 to text |
| url-encode | URL-encode text |
| url-decode | URL-decode text |
| hex-encode | Convert text to hex |
| hex-decode | Convert hex to text |
| html-encode | Escape HTML entities |
| html-decode | Unescape HTML entities |
| json-formatter | Pretty-print JSON |
| color-converter | Convert HEX to RGB and HSL |
Error Handling
// 400 Bad Request
{ "error": "Missing 'tool' field.", "available": [...] }
// 422 Processing Error
{ "error": "Processing failed: Invalid JWT...", "tool": "jwt-decoder" }
// 429 Rate Limited
{ "error": "Rate limit exceeded...", "limit": 100, "remaining": 0 }
// CORS: All origins allowed