Cloudreve
  1. User
Cloudreve
  • Site
    • Ping
      GET
    • Get CAPTCHA
      GET
    • Get site settings
      GET
  • Session
    • Token
      • Password sign-in
      • Finish sign-in with 2FA
      • Refresh Token
    • OpenID
      • Prepare OpenID sign-in
      • Finish OpenID sign-in
      • Unlink OpenID
    • Passkey
      • Prepare Passkey sign-in
      • Finish Passkey sign-in
    • Prepare login
      GET
  • User
    • Sign up
      POST
    • Send reset password email
      POST
    • Reset password via temp link
      PATCH
    • Get profile picture
      GET
    • Get user
      GET
    • List user's share links
      GET
  • Callback
    • Complete OneDrive upload
      GET
    • Complete COS upload
      GET
    • Complete S3 upload
      GET
    • Complete OBS uploa
      GET
  • Workflow
    • List tasks
      GET
    • Get task progress
      GET
  • File
  1. User

Get user

GET
http://localhost:5212/api/v4/user/info/{user_id}
Auth: JWT Optional
Get user by ID. Authorization is optional, but email field will be redacted for anonymous request.

Request

Authorization
Add the parameter
Authorization
to Headers
,whose value is to concatenate the Token after the Bearer.
Example:
Authorization: Bearer ********************
Path Params
user_id
string 
required
User ID.
Example:
Nru9

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://localhost:5212/api/v4/user/info/Nru9'

Responses

🟢200Success
application/json
Body
data
object 
required
Response content
id
string 
required
ID of the user.
Example:
6JIo
email
string  | null 
optional
Email of the user. For anonymous session, it is empty.
nickname
string  | null 
required
Display name of the user.
Example:
Johnny Zhang
created_at
string <date-time>
required
Time at which the user is created. For anonymous session, this value is invalid.
Example:
2023-08-06T19:21:59+08:00
group
object 
required
code
integer 
required
Response code.
0 - Success.
Default:
0
Example:
0
msg
string 
optional
Human readable error message (if any).
error
string  | null 
optional
Internal error message, only visable in debug mode.
correlation_id
string <uuid> | null 
optional
Correlation ID of the request. Only presented on failed reqeust.
Example:
b4351ecc-ee1a-4455-bc94-2c3dbcc58538
Example
{
  "data": {
    "id": "6JIo",
    "email": "Estevan92@gmail.com",
    "nickname": "Johnny Zhang",
    "created_at": "2023-08-06T19:21:59+08:00",
    "group": {
      "id": "1AI8",
      "name": "Admin"
    }
  },
  "code": 0,
  "msg": ""
}
Previous
Get profile picture
Next
List user's share links
Built with