/v1/auth/login 获取会话令牌。
接口
POST/v1/auth/register
认证:无
请求体
string
required
期望的用户名。必须唯一。
string
required
用户的邮箱地址。
string
required
密码,最小长度为 6 个字符。
响应
string
新创建用户的唯一标识符。
示例
409 Conflict:
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
在咏唱引擎 PIN 服务上注册新用户。需要唯一的用户名、邮箱以及至少 6 位的密码。
/v1/auth/login 获取会话令牌。
/v1/auth/register
认证:无
curl -X POST http://localhost:8001/v1/auth/register \
-H "Content-Type: application/json" \
-d '{"username":"alice","email":"[email protected]","password":"secret123"}'
{
"id": "usr_2vPqN9xL5wR8"
}
409 Conflict:
{
"error": "conflict",
"detail": "username already exists"
}
Was this page helpful?