Get User by Id

Getting information about Modjoul users is an identical process; All that is needed is the user’s ID.

Node
  • /users/your-user-id-here
Examples

Send a GET /id request, where id a user-id.

Sample Request
curl -X GET \
  https://cloud.modjoul.com/dev/users/{your-user-id-here} \
  -H 'Authorization: your-authorization-token-here' 
Sample Response
{
    "authRef": {
        "orgId": "ABC12345676Z"
    },
    "notifications": {
        "device_tokens": [],
        "push": [],
        "email": []
    },
    "surveyCompleted": false,
    "profileMimeType": "image/png",
    "isEmailVerified": false,
    "isDeleted": false,
    "_id": "{user-id}",
    "orgId": "ABC12345676Z",
    "email": "user@example.com",
    "userName": "user@example.com",
    "firstName": "John",
    "lastName": "Doe",
    "profilePhoto": "http://example.com/image.jpg",
    "subscriptionStartDate": "1980-01-0121:35:59.069Z",
    "subscriptionEndDate": "1980-01-01T21:35:59.069Z",
    "createdTimestamp": "1980-01-01T21:35:59.069Z",
    "__v": 0
}