Get User by Email

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

Node
  • /users?your-email-here
Examples

Send a GET request.

Sample Request
curl -X GET \
  'https://cloud.modjoul.com/dev/users?email={your-email-here}' \
  -H 'Authorization: your-authorization-token-here' 
Sample Response
[
    {
        "authRef": {
            "orgId": "ABC12345676Z"
        },
        "notifications": {
            "device_tokens": [
            ],
            "push": [
                "RED_CHECK",
                "YELLOW_CHECK"
            ],
            "email": [
                "RED_CHECK",
                "YELLOW_CHECK"
            ]
        },
        "surveyCompleted": false,
        "profileMimeType": "image/png",
        "isEmailVerified": false,
        "isDeleted": false,
        "_id": "ABC12345676Z",
        "orgId": "ABC12345676Z",
        "profilePhoto": null,
        "email": "{email}",
        "userName": "user@example.com",
        "firstName": "John",
        "lastName": "Doe",
        "stripeCustomerId": "ABC12345676Z",
        "customerId": "ABC12345676Z",
        "JITEmailNotifications": [
            "YELLOW_CHECK"
        ],
        "subscriptionStartDate": "1980-01-01T15:44:38.994Z",
        "subscriptionEndDate": "1980-01-01T15:44:38.995Z",
        "createdTimestamp": "1980-01-01T15:44:38.995Z"
    }
]