OTP Verification
...
This method is designed to verify that provided in the declaration request phone number is valid and is in service. Initialization phase
Specification
Link | |
Resource | /api/verifications |
Scope | API paragraph not found |
Components |
SMS | |
Using Dictionaries | API paragraph not found |
Using Microservices | API paragraph not found |
Protocol type | REST |
Request type | POST |
Sync/Async | Sync |
Public/Private/Internal | Public |
Logic
The user enters the phone number into the system.
As a result, an SMS is sent to the entered number with OTP code and the system returns the following response to the request:
id = хххх |
---|
Generate verification code
...
Save generated verification code to DB
Preconditions
API paragraph not found
...
API paragraph not found
Input parameters
Attributes
Attribute | Values | Type | Description | Example |
---|---|---|---|---|
phone_number |
String |
Required | +380508887700 |
Filters
None
Request structure
...
Expand | ||
---|---|---|
| ||
|
Authorize
Request to process the request using a token in the headers
...
Expand | ||
---|---|---|
| ||
|
Validate request (JSON schema)
API paragraph not found
|
Validation data request
API paragraph not found
...
Expand | ||
---|---|---|
| ||
|
...
API paragraph not found
HTTP status codes
HTTP status code | Message | What caused the error |
---|---|---|
200 |
Response |
Backward compatibility
API paragraph not found