UserV1

Get current user

get/user/v1

Request

  • Base URL: https://api.danalock.com
  • URL: https://api.danalock.com/user/v1
  • Auth: OAuth 2 (authorization code, authorization URL /oauth2/authorize, token URL /oauth2/token)

Headers

X-Assume-Userstring

Assume the identity of the user in another domain

Response

Current user name.

idstring
usernamestring
display_namestring
email_addressstring
domainstring
aliasstring
2faboolean

Example response

{
  "id": "user-7646c328e9d8",
  "username": "user@example.com",
  "display_name": "John Doe",
  "email_address": "user@example.com",
  "domain": "user@example.com's domain",
  "alias": "John"
}

Changes

No recorded changes to this operation across all 1 revision of this API.