以程式化方式存取 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 |
| 共享到期時間 | 永不 |