Skip to end of metadata
Go to start of metadata
You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
Version 1
Next »
Validate request
- Validate request using JSON schema
- In case validation failed - generate 422 error
Authorize user
- Verify the validity of access token
- Check user scopes in order to perform this action
- In case error - generate 401 response
Generate verification code
- Generate verification code using basic random (default) function or time-based algorithm
- Verification code format - digits only ^[1-9][0-9]*$
- Verification code length - configuration parameter (default = 4)
- Verification code expiration period - configuration parameter (default = 15 min)
- Set expiration period using configuration parameter
Deactivate active verification code
- Search active verification code(s) for this phone number
- If found - change status to INACTIVE
Save verification code
- Save generated verification code to DB
Send SMS
- Send SMS via API
- Message template - configuration parameter