Skip to main content

User Details

user details

Get details

Intro

You will need to be logged in to Get change link. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec vel dolor lacinia, pellentesque ligula vitae, ultrices dui. In tincidunt velit sit amet neque aliquet, a vulputate purus lobortis.

Request Headers

Origin: <CLIENT_APP_URL>
client_id: <API_CLIENT_ID>
Authorization: <BEARER_TOKEN>

Request Body


Body Validation

No body


Request

GET
http://localhost:5501/api/v1/auth/id/me

Response

{
"status": "success",
"user": {
"_id": "String",
"photo": "String",
"name": "String",
"job": "String",
"department": "String",
"organization": "String",
"location": "String",
"timeZone": "String",
"email": "String",
"devices": [
{
"key": "String",
"clientType": "String",
"application": "String",
"device": "String",
"brand": "String",
"os": "String",
"osversion": "String"
}
],
"identifier": "String",
"role": "String",
"phone": "String",
"isVerified": "Boolean",
"isActive": "Boolean",
"age": "String",
"gender": "String",
"createdby": "String",
"date": "String",
"lastLogin": "String",
"bio": "String"
}
}

Response Validation

Self explanatory


Example

Headers

Origin: http://localhost:3000
client_id: pSpisBrYn4yIP1vGILcdZ
Authorization: Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Body


Response

{
"status": "success",
"user": {
"_id": "629ad74878103d4e4a74e9e6",
"photo": "629ad74878103d4e4a74e9e6-1658134017506.jpeg",
"name": "John Doe",
"job": "CEO techkey",
"department": "IT",
"organization": "TECHKEY CYBERNETICS",
"location": "ngara nairobi",
"timeZone": "utc nairobi",
"email": "info@techkey.co.ke",
"devices": [
{
"key": "Device-Postman Desktop-x64-device-1.0.0",
"clientType": "library",
"application": "Postman Desktop",
"device": "x64",
"brand": "device",
"os": "device",
"osversion": "1.0.0"
}
],
"identifier": "email",
"role": "629a0ee3f1780010a260ded2",
"phone": "0718888988",
"isVerified": true,
"isActive": true,
"age": "22",
"gender": "male",
"createdby": "techkey",
"date": "2022-06-04T03:53:06.432Z",
"__v": 10,
"lastLogin": "2022-06-25T05:26:54.806Z",
"bio": "i am a devszzz"
}
}