Prerequisites:
- A server or local environment to host your webhook endpoints
- A Flowent instance with API Gateway enabled
- Admin access to your Flowent instance
Set up your development server
Create a simple webhook server to receive requests from Flowent. Here are the requirements:
- Accept POST requests with JSON payloads
- Validate HMAC signatures using your HMAC key
- Return responses in the expected format:
{ "result": "...", "error": "" } - Handle test validation requests during action registration
Obtain your credentials
- Log into your Flowent admin panel
- Navigate to Gateway Management
- Create an API Token (keep this secure)
- Create an HMAC Key (store this on your server)
Test your webhook endpoint
Ensure your webhook endpoint is accessible from the Flowent instance:Your server should return a 2xx status code.
Local Development Best Practices
Environment Variables
Store sensitive credentials in environment variables, never hardcode them:Logging
Log all webhook requests for debugging:Testing
Always test your webhook handler with test requests:Exposing Local Server to Flowent
If you’re running Flowent and your development server on the same network:- Use your local IP address in the webhook URL (e.g.,
http://192.168.1.100:8000/actions) - Use tunneling tools like
ngrokto expose your local server:
Troubleshooting
Webhook not receiving calls
Webhook not receiving calls
- Verify your webhook URL is accessible from the Flowent instance
- Check that your endpoint returns a 2xx status code for test requests
- Verify your server logs are showing incoming requests
- Ensure the action is properly registered (check admin panel)
HMAC signature validation failing
HMAC signature validation failing
- Most common issue: Make sure you’re calculating HMAC on the payload WITHOUT the signature field
- Verify you’re using the correct HMAC key from the admin panel
- Check that your JSON serialization matches Flowent’s format
- Use logging to compare your calculated vs received signature
- See the Signature Validation guide for detailed examples
JWT token expired
JWT token expired
Exchange your API token again to get a fresh JWT token. Tokens expire after 24 hours.
Next Steps
- Review the API Concepts for detailed technical information
- Explore the API Reference for all available endpoints