Callback events are used to authorize and manage your verification requests and return verification results.
This callback event is a POST request to the specified verification callback URL and is triggered when a new verification request is made from the SDK client or the Verification Request API. This callback event is only triggered when a verification callback URL is specified in your dashboard.
{- "id": "1234567890",
- "event": "VerificationRequestEvent",
- "identity": {
- "type": "number",
- "endpoint": "+11235551234"
}, - "reference": "string",
- "custom": "string",
- "method": "sms",
- "price": {
- "currencyId": "USD",
- "amount": 0.0127
}
}
{- "action": "allow",
- "sms": {
- "code": "3688",
- "acceptLanguage": [
- "en-US"
]
}
}
This callback event is a POST request to the specified verification callback URL and triggered when a verification has been completed and the result is known. It's used to report the verification result to the developer's backend application. This callback event is only triggered when the verification callback URL is specified in your dashboard.
status required | string (VerificationStatus) The status of the verification
| ||||||||||||||||||||||||||||||
id required | string The ID of the verification request. | ||||||||||||||||||||||||||||||
event required | string The type of the event.
| ||||||||||||||||||||||||||||||
method required | string (VerificationMethod) The type of the verification request.
| ||||||||||||||||||||||||||||||
required | object (Identity) Specifies the type of endpoint that will be verified and the particular endpoint. | ||||||||||||||||||||||||||||||
reference | string Used to pass your own reference in the request for tracking purposes. | ||||||||||||||||||||||||||||||
custom | string Can be used to pass custom data in the request. | ||||||||||||||||||||||||||||||
reason | string (VerificationStatusReason) Displays the reason why a verification has
| ||||||||||||||||||||||||||||||
source | string (Source) With the PIN SMS verification method, a user's phone number is verified by sending an SMS containing a PIN code that must be manually returned. If you are are using an Android handset, you could instead intercept the SMS message delivery and capture the PIN code automatically.
|
You must return an empty 200
response.
{- "id": "1234567890",
- "event": "VerificationResultEvent",
- "identity": {
- "type": "number",
- "endpoint": "+11235551234"
}, - "reference": "string",
- "custom": "string",
- "method": "sms",
- "status": "PENDING",
- "reason": "Expired",
- "source": "intercepted"
}
This callback event is a POST request to the specified verification callback URL and is triggered when an SMS delivery receipt is received. It is used to report the final delivery status of the verification SMS. This callback event is only triggered when a verification callback URL is specified in your dashboard.
id required | string The ID of the verification request. | ||||||
event required | string The type of the event.
| ||||||
smsResult required | string The result of the SMS delivery. Possible values can be extended in the future.
| ||||||
custom | string Can be used to pass custom data in the request. | ||||||
reference | string Used to pass your own reference in the request for tracking purposes. |
You must return an empty 200
response.
{- "id": "1234567890",
- "event": "VerificationSmsDeliveredEvent",
- "smsResult": "Successful",
- "custom": "string",
- "reference": "string"
}