api.tools.11dz.cn
11DZ Tools API
版本 0.1.0。面向程序、开发者、Codex Skill 与未来 MCP 的确定性工具 API。
快速开始
curl -sS https://api.tools.11dz.cn/v1/json/format \
-H 'Content-Type: application/json' \
--data '{"input":"{\"name\":\"11DZ\"}","indent":2}'
接口
| 方法 | 路径 | 用途 | operationId |
|---|---|---|---|
POST |
/v1/json/format |
Format JSON | formatJson |
POST |
/v1/json/validate |
Validate JSON | validateJson |
POST |
/v1/json/minify |
Minify JSON | minifyJson |
POST |
/v1/encoding/base64/encode |
Encode Base64 | encodeBase64 |
POST |
/v1/encoding/base64/decode |
Decode Base64 | decodeBase64 |
POST |
/v1/encoding/url/encode |
Encode URL text | encodeUrl |
POST |
/v1/encoding/url/decode |
Decode URL text | decodeUrl |
POST |
/v1/crypto/hash |
Hash text with SHA-2 | hashText |
POST |
/v1/developer/jwt/decode |
Decode JWT without verification | decodeJwt |
POST |
/v1/time/convert |
Convert a timestamp | convertTime |
处理与隐私边界
输入会发送到 API Worker 处理。第一阶段无状态,不持久化请求正文;结构化日志不记录原始输入、JWT 或 Authorization。
请求正文上限为 262144 bytes(256 KiB)。公开接口允许 Access-Control-Allow-Origin: *,不使用 Cookie 或 credentials。
JSON 格式化与压缩会在序列化前拒绝超过 128 层的嵌套或超过 1048576 bytes(1 MiB)的预计 UTF-8 输出,并返回 JSON_TOO_DEEP 或 JSON_OUTPUT_TOO_LARGE。
JWT 接口只解码,不验证签名;响应始终包含 verified: false。
版本策略
兼容变更保留在 /v1。破坏性变更使用新的 URL 主版本。错误响应提供稳定的 error.code。