Cogine LLM Gateway

用户登陆注册

发送邮箱验证码

GET
/api/verification

Query Parameters

email*string

Response Body

curl -X GET "https://loading/api/verification?email=string"
Empty

发送密码重置邮件

GET
/api/reset_password

Query Parameters

email*string

Response Body

curl -X GET "https://loading/api/reset_password?email=string"
Empty

重置密码

POST
/api/user/reset

Request Body

application/json

email?string
token?string
password?string

Response Body

curl -X POST "https://loading/api/user/reset" \  -H "Content-Type: application/json" \  -d '{}'
Empty

用户注册

POST
/api/user/register

Request Body

application/json

username?string
password?string
email?string
verification_code?string
aff_code?string

Response Body

curl -X POST "https://loading/api/user/register" \  -H "Content-Type: application/json" \  -d '{}'
Empty

用户登录

POST
/api/user/login

Request Body

application/json

username?string
password?string

Response Body

curl -X POST "https://loading/api/user/login" \  -H "Content-Type: application/json" \  -d '{}'
Empty

两步验证登录

POST
/api/user/login/2fa

Request Body

application/json

code?string

Response Body

curl -X POST "https://loading/api/user/login/2fa" \  -H "Content-Type: application/json" \  -d '{}'
Empty

用户登出

GET
/api/user/logout

Response Body

curl -X GET "https://loading/api/user/logout"
Empty

获取用户分组列表

GET
/api/user/groups

Response Body

curl -X GET "https://loading/api/user/groups"
Empty

开始Passkey登录

POST
/api/user/passkey/login/begin

Response Body

curl -X POST "https://loading/api/user/passkey/login/begin"
Empty

完成Passkey登录

POST
/api/user/passkey/login/finish

Response Body

curl -X POST "https://loading/api/user/passkey/login/finish"
Empty