- Returning.AI
- Auth
- Server
- Role
- Channel
- Badge
- Integration
user data
Developing
POST
/apis/v1/users/info
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Body Params application/json
idOrEmail
string
required
Example
{
"idOrEmail": ""
}
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 POST 'https://integration.returning.ai/apis/v1/users/info' \
--header 'Content-Type: application/json' \
--data-raw '{
"idOrEmail": ""
}'
Responses
🟢200Success
application/json
Body
object {0}
Example
{
"status": "success",
"data": {
"userId": "123",
"xp": 123,
"coins": 123,
"roles": [
"@all"
],
"highestRole": "@all",
"firstName": "---",
"lastName": "---",
"xpEarnedToday": 0,
"coinsEarnedToday": 0,
"language": "English",
"totalMessages": 0,
"totalReactions": 0,
"visitCount": 0,
"replySent": 0,
"timeSpent": 0,
"loginStreak": 0,
"customFields": {}
}
}
Modified at 2025-06-09 01:55:19