username
and password
in the request. Upon successful authentication,otp_attempt
otp_session_state
.curl --location --request POST '/auth/sign_in' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"username": "alice",
"password": "secret123"
}'
{
"status": 200,
"status_text": "OK",
"username": "john_doe",
"token": "string",
"sign_in_count": 10,
"role": "User",
"timezone": "UTC",
"verified": true,
"provider": "email",
"organization": {
"uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
"name": "Example Organization"
}
}