🔑 开发者 API
生成 API Key 后,可用 HTTP 请求读写平台文件(适合脚本 / 启动器 / CI 调用,无需网页登录)。
API 文档(请求头 Authorization: Bearer <KEY>)
GET /api/v1/me — 账号信息
GET /api/v1/files — 文件列表
GET /api/v1/file?path=src/main.vb — 读取文件
PUT /api/v1/file — 写入/新建(body: {path, content})
DELETE /api/v1/file — 删除(body: {path})
GET /api/v1/tokens — Token 统计
curl 示例:curl -X PUT -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" -d '{"path":"x.vb","content":"..."}' https://pclx-collab.pages.dev/api/v1/file