Skip to main content

Sign in by username and password

In order to sign in a user by username and password, the recommended flow is to use below endpoints

curl --request POST \
--url https://dev-iam.razi.ai/v1/authentication/users/login \
--header 'Content-Type: application/json' \
--data '{
"email": "john.doe@gmail.com",
"orgId": "271296458001489512",
"password": "Password123"
}'

Above call will return new session information as below

{
"sessionId": "1234567890",
"sessionToken": "Nngj9fM-aaHr1Y1G851fauHHQb1Y5DPtqF__pKiDrqYlRiCbAh6wkO7xvhXwqVCp-8LHnChY3T8gYg",
"userId": "270471239863153410"
}