You can test your custom actions by sending API calls from the administration section of Journey Optimizer user interface. This capability helps you troubleshoot your custom actions before or after using them in a journey.
As an administrator, use the Send test request capability to validate your custom action configurations by making real API calls directly from Adobe Journey Optimizer. This feature ensures that the request structure, headers, authentication, and payload are correctly formatted before being used in a journey.
Use this capability streamlines the testing and validation process, ensuring that custom actions function correctly in live journeys.
To use the Send test request capability, a custom action must be pre-configured with a URL, headers, and authentication settings.
For the administrators to use this capability, the following permissions are required:
Learn more about journey permissions in this section.
To test a custom action, follow these steps:
Navigate to the Actions configuration screen, and select a custom action.
Click on the Send test request button at the bottom of the action configuration screen.
In the pop-up window, allowing you to specify request parameters:
If the custom action method is GET, no payload is required.
If the custom action method is POST, you must provide a JSON payload.
Adobe Journey Optimizer will raise an error if the structure of this JSON is incorrect, but will not do it if there is a mismatch with a data type. For instance, there will be no error if an integer parameter is used for what should be a string.
If authentication is defined, you will be prompted to enter authentication details.
Click Send to execute the request.
The response from the API, including headers and status codes, will be displayed in the interface.
When a custom action includes authentication, Adobe Journey Optimizer requires the user to enter authentication details for each test request:
As a Journey Optimizer administrator, you can also use external tools (e.g., Postman) to test your custom actions. Key benefits of the in-product troubleshooting capability compared to an external testing are listed below:
The test request is executed by AJO Journey, meaning:
The Send test request capability can be used for troubleshooting live journeys, as the custom action is already deployed.
This in-product testing capability eliminates the need to manually copy configuration details between tools, reducing the risk of errors.
If the request fails, you can check: