Preview an Inline Hook
Preview a new Inline Hook before you enable it to see how it will interact with your custom code. You can configure the Inline Hook request and then troubleshoot how your code responds.
Currently, SAML, Registration, and Telephony Inline Hooks are available for preview. See Preview a Telephony Inline Hook.
- In the Admin Console, go to Workflow > Inline Hooks.
- Locate the Inline Hook that you want to preview, and then click its Actions menu. By default, active Inline Hooks are listed first, but you can sort the table by type or name.
- Select Preview.
- Complete these tasks on the Preview tab:
- In the Configure section, select a user from the user profile drop-down menu.
- In the Preview example Inline Hook request section, click Generate Request. Verify that the example JSON payload of the request is populated with the user profile objects you configured.
- Optionally, prior to testing the preview data, if you want additional customization, click Edit to edit the JSON payload of the request.
- In the View Service Response section, click View Response.
Generated hook preview data can contain placeholder values and may differ from the preview request.
After you configure the telephony hook for your service provider, you can test its operation using the Preview action.
To test your connection to the telephony service provider:
In the Admin Console, go to Workflow > Inline Hooks.
Identify the telephony Inline Hook that is currently Active.
Click Actions, then select Preview.
Select a user profile for a user with a phone as a valid authenticator.
Select the event that results in an SMS text message or voice call you want to test.
For example, select one of the following event actions:
Click Generate request to generate the HTTP request to send to your telephony provider.
Optionally, you can edit the generated request, by clicking Edit. For example, you might want to edit the profile to send a text message to a phone number that you use for testing purposes.
Click View response to view the response from your service provider.