Validating Event Parameters
When you create events in Reteno, it is essential that the names of the entered parameters are correct.
The Reteno system gives you the possibility to validate events and provide immediate feedback if their parameters contain errors.
Using the event parameters validation, you can:
- Check that a parameter is in a defined set.
- Check that a required parameter is set.
Validating Event Parameters in Your Account
To activate the event parameters validation when creating a new event or editing an existing event:
Enable the Validate parameters slide button.
- Click + Add parameter.
- Enabling Validate Parameters

- Enter the parameter name in the corresponding field and select the Required parameter checkbox if that parameter is required.
- Add other parameters as necessary, then click Add.

See Events to learn more about how to create events in Reteno.
When the Validate parameters option is enabled, the system will accept an event only if it meets the specified structure, otherwise, it will not accept it and send the error “400 bad request” and the required event structure.
Validating Event Parameters using API
You can validate event parameters using Reteno API Generate event:
POST | https://api.reteno.com/api/v2/event |
To validate the event parameters in your API request, indicate the parameters you need to validate in params of the request body.

If the parameters do not meet the specified structure, you will get the “400 bad request” error and the required event structure in the response.
Response example:
The event should have the following params: [
{
"name": "EmailAddress",
"required": true
},
{
"name": "Phone Number",
"required": false
},
{
"name": "Name",
"required": false
}
]
See API documentation for more information.
Updated 5 months ago