Skip to main content
POST
/
api2
/
v3
/
auth
/
loginToSession
Login to session
curl --request POST \
  --url https://cloud.memsource.com/web/api2/v3/auth/loginToSession \
  --header 'Content-Type: application/json' \
  --header 'None: <api-key>' \
  --data '
{
  "password": "<string>",
  "userName": "<string>",
  "rememberMe": true,
  "twoFactorCode": 123,
  "userUid": "<string>"
}
'
{
  "cookie": "<string>",
  "csrfToken": "<string>",
  "user": {
    "email": "<string>",
    "firstName": "<string>",
    "id": "<string>",
    "lastName": "<string>",
    "uid": "<string>",
    "userName": "<string>"
  }
}

Authorizations

None
string
header
required

No authentication required. This is used for public endpoints.

Body

application/json

Login credentials

Credentials for logging in to a browser session

password
string
required

Password

userName
string
required

Username

rememberMe
boolean

When true, the session is kept alive beyond the default expiration

twoFactorCode
integer<int32>

Two-factor authentication code. Required if two-factor authentication is enabled

userUid
string

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

Response

OK

Response of a successful session login

Session cookie identifier

csrfToken
string

CSRF token to send with subsequent session requests

user
object