语言
/v1/paste/create
存储文本字符串(代码、日志、配置文件)并接收粘贴 ID。 粘贴在可配置的 TTL(默认 1 小时,最长 24 小时)后过期。 指定一个可选的语言标记,以便在检索时进行语法突出显示。 存储在 Cloudflare 的边缘 KV 上,以实现快速全局读取。
The text content to store.
Time to live in seconds. Default 3600 (1 hour), max 86400 (24 hours).
Language identifier for syntax highlighting (e.g., "javascript", "python", "json").
curl -X POST https://api.botoi.com/v1/paste/create \ -H "Content-Type: application/json" \ -d '{"content":"console.log(\"hello world\");","ttl":3600,"language":"javascript"}'
粘贴堆栈跟踪或日志片段并在 Slack 中共享 ID。 粘贴会在事件窗口后自动过期,因此敏感日志数据不会保留在公共粘贴箱中。
在一个 CI 步骤中生成配置文件,将其存储为粘贴,并在后续步骤或并行作业中检索它。 TTL 确保管道完成后自动清除数据。
Free tier includes 5 requests per minute with no credit card required. Upgrade for higher limits.