Lifecycles
When you send an OTP code, Prelude starts an authentication lifecycle. Here’s how it works:1
Start an authentication
Your user enters their phone number in your application and you send it to us.
2
Filter-out fraud
We analyze the request and check for fraud using our existing database and
the Signals you provided.If the authentication is suspicious, we don’t send any code.
3
Send a code
Prelude compares all of the available and send a code using the best one.
If the user didn’t receive the code, you can create another authentication by calling the Authentication endpoint.
Prelude then switch to another route to increase the chances of the user receiving the code.
4
Verify the code
The user receives the code and enters it in your application.
You then send it to the Check endpoint.
If it’s correct, the endpoint returns a
valid
status code.