Identify a User

Retrieve information about the holder of an access token.

Use the JWT generated during user creation or user login as a bearer token. (If you use your developer token, this will return 404.)

Identify User Request
cURL
GET- /workspaces/:workspaceSlug/databases/:databaseName/users/me
curl 'https://api.thenile.dev/workspaces/<string>/databases/<string>/users/me' \
--header 'Authorization: Bearer <string>'

The response will contain the user id, email address and tenants associated with the holder of the access token.

Identify User Response
200
{
  "id": "018b6216-27a1-7e2b-aa83-67d7ba500982",
  "tenants": [
    "018b61ec-af9e-77e5-b27f-77239cd4a0bc"
  ],
  "email": "an.important.user@mail.tld",
  "name": "Important User",
  "givenName": null,
  "familyName": null,
  "picture": null
}