登录用户信息
GET
/user/profile
请求参数
Header 参数
Accept
string
可选
默认值:
application/json
Authorization
string
可选
默认值:
Bearer {{token}}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://127.0.0.1:8000/api/v2/user/profile' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {{token}}'
返回响应
🟢200成功
application/json
Body
status
string
必需
message
string
必需
data
object
必需
id
integer
用户ID
avatar_url
string
头像,可能为空
name
string
用户昵称
username
string
用户名
email
string
邮箱
phone
string
必需
tagline
string
个性签名
bio
string
个人简介
url
string
个人主页
location
string
所在位置
company
string
公司
company_title
string
公司职称
interests
array[string]
兴趣标签
socials
array[string]
社交账号
options
object
必需
is_admin
boolean
是否为管理员
country_code
string
必需
login_ip
string
最后登录ip
email_verified_at
string
必需
phone_verified_at
null
必需
created_at
string
注册时间
group_count
integer
购买角色组数量
capacity_count
integer
购买容量数量
order_count
integer
订单数量
share_count
integer
分享数量
ticket_count
integer
工单数量
photo_count
integer
图片数量
album_count
integer
相册数量
used_storage
number
必需
total_storage
integer
总储存(kb)
time
integer
必需
示例
{
"status": "success",
"message": "successful",
"data": {
"id": 1,
"avatar_url": "",
"name": "admin",
"username": "admin",
"email": "admin@qq.com",
"phone": "18155655975",
"tagline": "",
"bio": "",
"url": "",
"location": "",
"company": "",
"company_title": "",
"interests": [],
"socials": [],
"options": {
"language": "zh_CN",
"show_original_photos": false,
"encode_copied_url": true,
"auto_upload_after_select": false
},
"is_admin": true,
"country_code": "cn",
"login_ip": "127.0.0.1",
"email_verified_at": "2024-11-08T20:53:21.000000Z",
"phone_verified_at": null,
"created_at": "2024-11-08T20:53:21.000000Z",
"group_count": 1,
"capacity_count": 1,
"order_count": 3,
"share_count": 5,
"ticket_count": 0,
"photo_count": 12,
"album_count": 1,
"used_storage": 4117.51,
"total_storage": 1073741824
},
"time": 1731229345
}
修改于 2025-04-30 05:00:16