Get User Data
Authorization: Bearer ********************
{
"idOrEmail": "johndoe@gmail.com"
}
curl --location --request POST 'https://integration.returning.ai/apis/v1/users/info' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"idOrEmail": "johndoe@gmail.com"
}'
{
"status": "success",
"data": {
"_id": "66f178cs5df0d84eb50c1e6b",
"userId": "1243",
"username": "johndoe",
"xp": 15551,
"coins": 20905,
"roles": [
"@all",
"@Gold"
],
"highestRole": "@Gold",
"firstName": "John",
"lastName": "Doe",
"xpEarnedToday": 30,
"coinsEarnedToday": 30,
"language": "English",
"totalMessages": 84,
"totalReactions": 42,
"visitCount": 4418,
"replySent": 42,
"timeSpent": 660500,
"loginStreak": 89,
"customFields": {},
"tags": []
}
}