OpenapiAuth
Authenticate user with email/username and password
Supports both email and username login. Returns a session token or requires TOTP verification if two-factor authentication is enabled for the user.
POST
Supports both email and username login. Returns a session token or requires TOTP verification if two-factor authentication is enabled for the user.
realmId*stringRealm ID
application/json- body
agreements?array<>|nullclientId*stringemail?string|nulloauthClientId?string|nullpassword*stringredirectUri?string|nullstate?string|nullturnstileToken?string|nullusername?string|nullSuccessful login.
application/json- response
accessToken*stringexpiresIn*integerFormat
int64Range
0 <= valuerefreshExpiresIn*integerFormat
int64Range
0 <= valuerefreshToken*stringtokenType*stringcurl -X POST 'https://example.com/api/auth/string/login' \
-H 'Content-Type: application/json' \
-d '{
"clientId": "string",
"password": "string"
}'Example Response
{
"accessToken": "string",
"expiresIn": 0,
"refreshExpiresIn": 0,
"refreshToken": "string",
"tokenType": "string"
}