文档
认证接口
POST /api/auth/register — 注册
bash
curl -X POST https://prompt.solokit.run/api/auth/register \
-H "Content-Type: application/json" \
-d '{"name":"张三","email":"zs@example.com","password":"pass1234"}'POST /api/auth/login — 登录
bash
curl -X POST https://prompt.solokit.run/api/auth/login \
-H "Content-Type: application/json" \
-d '{"email":"zs@example.com","password":"pass1234"}'POST /api/auth/token — 获取 API Token
bash
curl -X POST https://prompt.solokit.run/api/auth/token \
-H "Content-Type: application/json" \
-d '{"email":"zs@example.com","password":"pass1234"}'GET /api/auth/token — 验证 Token
bash
curl https://prompt.solokit.run/api/auth/token \ -H "Authorization: Bearer ph_your_token"
DELETE /api/auth/token — 吊销并重置 Token
bash
curl -X DELETE https://prompt.solokit.run/api/auth/token \ -H "Authorization: Bearer ph_your_token"