- Returning.AI
- Auth
- User
- Server
- Category
- Role
- Channel
- Language Setting
- Leaderboard
- Badge
- Gamification
- Api Token
- Custom Userfields
- Integration
Get my user
Developing
GET
/users/me
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Header Params
Authorization
string
optional
Example:
Bearer {{token}}
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 'https://api.returning.ai/api/v1/users/me' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjE2IiwiaWF0IjoxNzIyMzMxOTAxLCJleHAiOjE3MjIzMzU1MDF9.vQBtt48eW_ZVpMvR70qKXY5_qW66_pX3CprE2WDQbkg'
Responses
🟢200Success
application/json
Body
meta
object
required
success
boolean
required
message
string
required
devMessage
string
required
body
object
required
id
string
required
name
string
required
email
string
required
displayname
string
required
first
string
required
last
string
required
nicename
string
required
signup_date
string
required
last_login
string
required
createdAt
string
required
updatedAt
string
required
__v
integer
required
isVerified
boolean
required
languageSettings
array [object {11}]
required
Example
{
"meta": {
"success": true,
"message": "User's information",
"devMessage": "User's information"
},
"body": {
"_id": "66a33e5fa41f3ab30088c26e",
"id": "1",
"name": "dennykate",
"email": "dennykate22@gmail.com",
"displayname": "dennykate",
"first": "Denny",
"last": "Kate",
"nicename": "dennykate",
"signup_date": "2024-07-26T06:12:47.240Z",
"last_login": "2024-07-26T10:03:39.981Z",
"createdAt": "2024-07-26T06:12:47.248Z",
"updatedAt": "2024-07-26T10:03:39.981Z",
"__v": 0,
"isVerified": true,
"languageSettings": [
{
"_id": "669e15b582fecc646b48b525",
"serverId": "669b462658695ff095d431af",
"userId": "1",
"supportedLanguages": [
"en",
"de",
"fr"
],
"language": "de",
"createdAt": "2024-07-22T08:17:57.034Z",
"updatedAt": "2024-07-22T08:17:57.034Z",
"__v": 0
},
{
"_id": "66a1a37060040fdad7e86096",
"serverId": "60d0fe4f5311236168a109ca",
"userId": "1",
"communityText": "Welcome to our community!",
"openaiApiKey": "sk-1234567890abcdef",
"aiMessageTranslation": true,
"supportedLanguages": [
"en",
"de",
"fr"
],
"language": "en",
"createdAt": "2024-07-25T00:59:28.925Z",
"updatedAt": "2024-07-25T00:59:28.925Z",
"__v": 0
}
]
}
}
Modified at 2024-07-30 11:45:50