Email OTP

{
    "emailAddress": "ratiouser@example.com"
}
curl --location --request POST 'https://api.ratio.me/v1/auth/otp/email:send' \
--header 'ratio-client-id: <YOUR_CLIENT_ID>' \
--header 'ratio-client-secret: <YOUR_CLIENT_SECRET>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "emailAddress":"ratiouser@example.com"
}'
{
    "emailId": "email-test-01234abc-0000-0000-0000-0123456789",
    "otp": "123456",
}
curl --location --request POST 'https://api.ratio.me/v1/auth/otp/email:authenticate' \
--header 'ratio-client-id: <YOUR_CLIENT_ID>' \
--header 'ratio-client-secret: <YOUR_CLIENT_SECRET>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "otp": "123456",
    "emailId": "email-test-01234abc-0000-0000-0000-0123456789"
}'

Last updated