Skip to main content
POST
/
api2
/
v3
/
auth
/
loginOther
Login as another user
curl --request POST \
  --url https://cloud.memsource.com/web/api2/v3/auth/loginOther \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "userName": "<string>",
  "userUid": "<string>"
}
'
{
  "expires": "2023-11-07T05:31:56Z",
  "lastInvalidateAllSessionsPerformed": "2023-11-07T05:31:56Z",
  "token": "<string>",
  "user": {
    "email": "<string>",
    "firstName": "<string>",
    "id": "<string>",
    "lastName": "<string>",
    "uid": "<string>",
    "userName": "<string>"
  }
}

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

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