Approval Status
Approval Status
After you have sent a prompt to a user, you may need to track their progress and understand the actions taken upon completion. This document explains how you can manage redirection and receive updates about the approval prompts sent to users.
Redirection
Once the user clicks "finalize" after responding to the prompt, they will be redirected to a specified URL. Configure the redirection by including the following in your request:
{
"redirectUrl": "https://approval.test.entercheck.eu"
}
By setting redirectUrl
, you define where the user should be taken after completing the approval process. Make sure that this URL leads to a relevant page that confirms the completion or offers further instructions.
Webhooks
To get real-time notifications of the approval status, you can specify webhook URLs in your request. These webhooks will be triggered as the prompt status changes:
{
"primaryWebhookUrl": "https://webhook.site/",
"secondaryWebhookUrl": "https://webhook.site/"
}
Setting both a primary and secondary webhook URL ensures reliability, as the secondary webhook acts as a backup in case the primary fails.
Polling
For those who prefer to manually check the status, you can poll an endpoint to get the latest status of an approval prompt. This can be done by making a GET request to the following endpoint:
https://api.entercheck.eu/approval/prompt/:id/status
Make sure to replace :id
with the actual ID of the approval prompt. Polling intervals should be set up based on your specific needs and traffic considerations.
Remember that a combination of webhooks for immediate updates and polling as a fallback can provide a robust solution for tracking the approval status of your prompts.
Additional Resources
For more detailed information and further guidance on using the Approval Service, please refer to the full documentation available at: