Log into the account

Returns an access token and the refresh token.

POST/v3/accounts/login

Parameters

NameTypeInDescription
originstringheader
user-Agentstringheader

Request Body Schema

PropertyTypeDescriptionConstraints
accountId*stringUnique identifier of the account.min: 0, max: 36
accountAliasstringUnique account alias.min: 0, max: 256
email*stringEmail address of the user.min: 1, max: 256, format: email
password*stringPassword of the user.min: 8, max: 256
twoFactorCodestringTwo factor code generated by Authenticator app.min: 6, max: 6
twoFactorRecoveryCodestringTwo factor recovery code.min: 1, max: 256
rememberMe*booleanRemember me. When true, the refresh token is valid for 7 days instead of 1 day.

Request Example

{
  "accountId": "string",
  "accountAlias": "string",
  "email": "user@example.com",
  "password": "stringst",
  "twoFactorCode": "string",
  "twoFactorRecoveryCode": "string",
  "rememberMe": true
}

Responses

200 OK
{
  "accessToken": "string",
  "refreshToken": "string"
}