Cogine LLM Gateway

两步验证

获取2FA状态

GET
/api/user/2fa/status

Response Body

curl -X GET "https://loading/api/user/2fa/status"
Empty

设置2FA

POST
/api/user/2fa/setup

Response Body

curl -X POST "https://loading/api/user/2fa/setup"
Empty

启用2FA

POST
/api/user/2fa/enable

Request Body

application/json

code?string

Response Body

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

禁用2FA

POST
/api/user/2fa/disable

Request Body

application/json

code?string

Response Body

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

重新生成备用码

POST
/api/user/2fa/backup_codes

Response Body

curl -X POST "https://loading/api/user/2fa/backup_codes"
Empty

获取2FA统计

GET
/api/user/2fa/stats

Response Body

curl -X GET "https://loading/api/user/2fa/stats"
Empty