This method is used by the mobile and web Verification SDKs to start a verification. It can also be used to request a verification from your backend, by making an request.
In SMS Verification, value of Accept-Language header is used to determine the language of an SMS message.
Specifies the type of endpoint that will be verified and the particular endpoint. number is currently the only supported endpoint type.
The type of the verification request.
| Enum Value | Description |
|---|---|
| sms | Verification by SMS message with an OTP code. |
| flashcall | Verification by placing a flashVerificationResultEvent call (missed call) and detecting the incoming calling number (CLI). |
| callout | Verification by placing a PSTN call to the user's phone and playing an announcement, asking the user to press a particular digit to verify the phone number. |
| seamless | Data verification. Verification by accessing internal infrastructure of mobile carriers to verify if given verification attempt was originated from device with matching phone number. |
Verification by WhatsApp message with an OTP code. |
Used to pass your own reference in the request for tracking purposes. Must be a unique value for each started verification request. The value must be encodable in the URL path segment. This value is passed to all events and returned from the status and report endpoints. The reference can be used to check the status of verifications, like with ID or identity.
- https://verification.api.sinch.comhttps://verification.api.sinch.com/verification/v1/verifications
curl -i -X POST \
-u '<username>:<password>' \
https://verification.api.sinch.com/verification/v1/verifications \
-H 'Accept-Language: string' \
-H 'Content-Type: application/json' \
-d '{
"identity": {
"type": "number",
"endpoint": "+46700000000"
},
"method": "sms"
}'A success response, or an Error.
The type of the verification request.
| Enum Value | Description |
|---|---|
| sms | Verification by SMS message with an OTP code. |
| flashcall | Verification by placing a flashVerificationResultEvent call (missed call) and detecting the incoming calling number (CLI). |
| callout | Verification by placing a PSTN call to the user's phone and playing an announcement, asking the user to press a particular digit to verify the phone number. |
| seamless | Data verification. Verification by accessing internal infrastructure of mobile carriers to verify if given verification attempt was originated from device with matching phone number. |
Verification by WhatsApp message with an OTP code. |
{ "id": "1234567890", "method": "sms", "_links": [ { … } ], "sms": { "template": "Your verification code is {{CODE}}", "interceptionTimeout": 32, "codeType": "Numeric" } }