SMSGatewayCenter allows you to add custom parameters and headers to webhooks, giving you flexibility to include additional data or authentication details. Here’s how to do it:
Steps to Add Custom Parameters: #
- While setting up a webhook (e.g., for DLR or WhatsApp MO), check the Add Custom Parameters checkbox.
- Enter the parameter name and value (e.g., campaign_id=123).
- Click Add More to include additional parameters (e.g., user_id=456).
- These parameters will be sent along with the default parameters (e.g., Transaction ID, Mobile Number).
Steps to Add Custom Headers: #
- Check the Add Custom Headers checkbox during webhook setup.
- Enter the header name and value (e.g., Authorization: Bearer your_token).
- Click Add More to add multiple headers (e.g., Content-Type: application/json).
- These headers will be included with the default headers in the HTTP request.
Why Are They Useful? #
- Custom Parameters: Pass additional data to your system (e.g., campaign tracking IDs) for better analytics or processing.
- Custom Headers: Add authentication tokens or specify content types to secure and customize webhook requests.
Best Practices: #
- Use meaningful parameter names to easily identify their purpose in your system.
- Test the webhook after adding custom parameters/headers to ensure your endpoint processes them correctly.
Custom parameters and headers enhance the functionality of webhooks on SMSGatewayCenter, making integrations more robust. For assistance, contact our support team.