Skip to main content
POST
Login as another user

Authorizations

Authorization
string
header
required

Get a token from auth/login endpoint and then pass it in the Authorization HTTP header in every subsequent API call. For more information visit our help center.

Body

application/json

User to log in as

Request to log in as another user

userName
string
required

Username of the user to log in as

Maximum string length: 255
userUid
string

When not filled, default user of identity will be logged in

Response

OK

Successful login response containing the API token and the logged-in user

expires
string<date-time>

Date and time when the API token expires

lastInvalidateAllSessionsPerformed
string<date-time>

Date and time when all sessions were last invalidated for the user

token
string

API token to authenticate subsequent requests

user
object