- Site
- Session
- User
- Callback
- Workflow
- File
Get user
GET
http://localhost:5212/api/v4/user/info/{user_id}
Auth: JWT Optional
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
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
id
string
required
Example:
6JIo
email
string | null
optional
nickname
string | null
required
Example:
Johnny Zhang
created_at
string <date-time>
required
Example:
2023-08-06T19:21:59+08:00
group
object
required
code
integer
required
0
- Success.Default:
0
Example:
0
msg
string
optional
error
string | null
optional
correlation_id
string <uuid> | null
optional
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": ""
}