Utility Endpoints
UUID Generator
Generate UUID v4 strings.
POST /api/v1/uuid
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
count | number | No | Number of UUIDs (1-100, default 1) |
uppercase | boolean | No | Uppercase output (default false) |
Example
curl -X POST https://www.toolbox-kit.com/api/v1/uuid \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{"count": 5}'
{ "result": ["550e8400-e29b-41d4-a716-446655440000", "..."], "count": 5 }
Timestamp Converter
Convert between Unix timestamps and date strings.
POST /api/v1/timestamp
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
timestamp | number | No | Unix timestamp (seconds or ms) |
date | string | No | Date string to convert |
now | boolean | No | Return current time |
Example
curl -X POST https://www.toolbox-kit.com/api/v1/timestamp \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{"now": true}'
{ "result": { "unix": 1709913600, "iso": "2024-03-08T...", "utc": "Fri, 08 Mar..." } }
Number Base Converter
Convert numbers between decimal, hex, binary, and octal.
POST /api/v1/number-base
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
value | string | Yes | Number to convert |
from | string | Yes | "decimal", "hex", "binary", or "octal" |
Example
curl -X POST https://www.toolbox-kit.com/api/v1/number-base \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{"value": "255", "from": "decimal"}'
{ "result": { "decimal": 255, "hex": "0xFF", "binary": "0b11111111", "octal": "0o377" } }
Color Converter
Convert colors between hex, RGB, and HSL.
POST /api/v1/color-convert
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
color | string or object | Yes | Hex string or {r,g,b} or {h,s,l} |
from | string | Yes | "hex", "rgb", or "hsl" |
Example
curl -X POST https://www.toolbox-kit.com/api/v1/color-convert \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{"color": "#3b82f6", "from": "hex"}'
{ "result": { "hex": "#3b82f6", "rgb": { "r": 59, "g": 130, "b": 246 }, "hsl": { "h": 217, "s": 91, "l": 60 } } }
JWT Decode
Decode JWT tokens (without signature verification).
POST /api/v1/jwt-decode
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
token | string | Yes | JWT token to decode |
Example
curl -X POST https://www.toolbox-kit.com/api/v1/jwt-decode \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{"token": "eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxMjM0NTY3ODkwIn0.dozjg..."}'
{ "result": { "header": { "alg": "HS256" }, "payload": { "sub": "1234567890" } } }
Regex Tester
Test a regex pattern against a string and return matches.
POST /api/v1/regex-test
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
pattern | string | Yes | Regex pattern |
text | string | Yes | String to test against |
flags | string | No | Regex flags (default "g") |
Example
curl -X POST https://www.toolbox-kit.com/api/v1/regex-test \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{"pattern": "\\d+", "text": "abc 123 def 456", "flags": "g"}'
{ "result": { "isMatch": true, "matchCount": 2, "matches": [{ "match": "123", "index": 4 }, ...] } }