以编程方式访问 alltools.one 功能。通过 REST API 管理代码片段、共享数据并跟踪历史记录。
https://api.alltools.oneShare a JSON / YAML / CSV config once, then pull it in GitHub Actions or GitLab CI. Reading a share is public, so no token is needed.
# .github/workflows/validate.yml
- name: Fetch saved formatter config
run: |
curl -sf "https://api.alltools.one/api/shares/abc123def4" | jq '.data'When your automation workflow produces a formatted CSV or JSON, POST it directly as a named snippet for later retrieval.
curl -X POST https://api.alltools.one/api/snippets \
-H "Authorization: Bearer <firebase_id_token>" \
-H "Content-Type: application/json" \
-d '{
"tool": "csv-formatter",
"title": "Daily Report 2025-01-15",
"data": { "csv": "name,value\nAlice,42\nBob,99" },
"tags": ["automated", "daily"]
}'Create a shareable link for any formatted output — useful for embedding live data previews in Notion, Slack, or documentation.
curl -X POST https://api.alltools.one/api/shares \
-H "Content-Type: application/json" \
-d '{
"tool": "json-formatter",
"title": "API Response Sample",
"data": { "input": "{\"status\":\"ok\",\"result\":42}" }
}'
# Returns: { "id": "abc123def4", "url": "https://alltools.one/s/abc123def4", "expires_at": null }需要账户的端点在 Authorization 请求头中接受 Firebase ID 令牌。
通过 Firebase Auth 获取令牌,然后将其包含在 Authorization 标头中:
curl https://api.alltools.one/api/auth/profile \
-H "Authorization: Bearer <firebase_id_token>"保存和管理工具输出。每个账户都有代码片段上限;超出上限时创建会返回 403。
为工具数据创建分享链接。分享永久有效;超过大小上限的数据会被拒绝并返回 413。
记录工具使用情况。每个账户在历史上限内保留最新条目;较早的条目会被删除。
为未来版本准备的密钥管理端点。目前没有任何端点接受这些密钥。
| 代码 | 含义 | 常见原因 |
|---|---|---|
200 | OK | Request succeeded |
201 | Created | Resource created |
400 | Bad Request | Validation error or malformed input |
401 | Unauthorized | Missing or invalid auth token |
403 | Forbidden | Account limit reached or not the resource owner |
404 | Not Found | Resource does not exist |
409 | Conflict | Duplicate resource (e.g. email already subscribed) |
413 | Payload Too Large | Data exceeds size limit (5MB) |
429 | Too Many Requests | Rate limit exceeded |
每 IP 地址每 60 秒 5 次请求。
| 功能 | 免费 |
|---|---|
| 已保存代码片段 | 500 |
| 历史记录条目 | 500 |
| 最大共享大小 | 5 MB |
| 共享过期时间 | 永不 |