获取个人信息
开发中
GET
https://one.ocoolai.com/api/user/self
请求参数
Query 参数
p
string
可选
示例值:
0
pageSize
string
每页展示数量
示例值:
10
Header 参数
Authorization
string
可选
示例值:
{{你的系统令牌}}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://one.ocoolai.com/api/user/self?p=0&pageSize=10' \
--header 'Authorization: {{你的系统令牌}}'
返回响应
🟢200成功
application/json
Body
data
object
必需
id
integer
用户ID
username
string
用户名
role
integer
用户角色
status
integer
状态
email
string
绑定的邮箱
quota
integer
余额
used_quota
integer
已使用额度
group
string
分组
githubId
string
GithubID
telegramId
string
tgID
wechatId
string
微信ID
larkId
string
飞书ID
requestCount
integer
请求次数
affCode
string
邀请码
inviterId
integer
邀请人ID
lastLoginTime
integer
最后登录时间
lastLoginIp
string
最后登录IP
affHistoryQuota
integer
已消耗金额
topupGroupMinLimit
integer
分组最低充值金额
modelFixedPrice
object
按次计费模型价格
示例
{
"data": {
"id": 5381,
"username": "APItest",
"password": "",
"display_name": "APItest",
"role": 1,
"status": 1,
"email": "",
"github_id": "",
"telegram_id": "",
"wechat_id": "",
"lark_id": "",
"access_token": "",
"quota": -900620,
"used_quota": 620,
"request_count": 4,
"group": "default",
"aff_code": "C1mk",
"inviter_id": 0,
"last_login_time": 1720142836,
"register_time": 0,
"last_login_ip": "111.197.18.21",
"rate_limit": 0,
"rate_limit_exceeded_message": "",
"remark": "",
"quota_expire_time": 0,
"phone_number": "",
"sms_verification_code": "",
"admin_access_flags": 0,
"verification_code": "",
"inviteUserNumber": 0,
"aff_quota": 0,
"aff_history_quota": 0,
"TopupGroupMinLimit": 10,
"ModelFixedPrice": {
"mj": 0.16,
"mj-chat": 0.14,
...(省略)
},
"InviteBonusRatio": 0,
"ShowPackagePlan": false
},
"message": "",
"success": true
}
修改于 2024-07-07 08:39:28