User details (/me or /user) Print

  • user, information, details
  • 0

If you need to get your user information like current email, user name, permission level or tenant id you can use this method.

To do that, just send a GET request to https://nacp01.noraina.net/api/me (or /user) and don't forget to add the access token header.

curl --location --request GET 'https://nacp01.noraina.net/api/me' \
--header 'Content-Type: application/json' \
--header 'x-access-token: {{token}}'
curl --location --request GET 'https://nacp01.noraina.net/api/user' \
--header 'Content-Type: application/json' \
--header 'x-access-token: {{token}}'

You will get a response like this one below:

{
    "status": "success",
    "data": {
        "permissions": "read",
        "_id": "5af09871cdfc0000069a2f0e",
        "name": "Username",
        "mail": "[email protected]",
        "created_date": "2018-05-07T18:18:25.314Z",
        "tenant_id": "123456123456123456",
        "__v": 0
    }
}

Was this answer helpful?

« Back