The basic setup is described in How do I set up webhooks?. This article covers what your receiver needs to know: what a message looks like, how to check the signature and what happens when delivery fails.
The events
| Event in the interface | event_type |
When |
|---|---|---|
| Feedback created | post.created |
a new idea from customers, team, API or FlowAI, even if it's still waiting for approval |
| Feedback edited | post.updated |
title, text or tags changed, also when switching between private and public |
| Status changed | post.status_changed |
every real status change, including on the roadmap |
| Comment created | comment.created |
a public comment from customers or the team, even if it's still waiting for approval; internal notes trigger nothing |
| Vote cast | vote.created |
a new vote; taking a vote back triggers nothing |
FlowSaaS doesn't report an idea that a customer edits in the portal as Feedback edited.
What a message looks like
FlowSaaS sends an HTTP POST with JSON. Every message contains event_id, event_type, occurred_at, portal_id, portal_name and the data block. data.post holds, among other things, id, title, the first tag (tag), status, votes_count, comments_count, the public link (url) and, under created_by, the author's name and email address. Status changed adds old_status and new_status, Comment created the comment block with text and author.
Keep data protection in mind: the messages contain your customers' email addresses. Only add receivers you trust and with whom the transfer of data is covered.
Check the signature
Every message carries these headers:
X-FlowSaas-Signature:sha256=followed by the signatureX-FlowSaas-Timestamp: time in Unix secondsX-FlowSaas-Event-IDandX-FlowSaas-Event-Type
The signature is an HMAC-SHA256 over <timestamp>.<raw body>, computed with the webhook's Secret. In PHP the check looks like this, for example:
$body = file_get_contents('php://input');
$timestamp = $_SERVER['HTTP_X_FLOWSAAS_TIMESTAMP'] ?? '';
$expected = 'sha256='.hash_hmac('sha256', $timestamp.'.'.$body, 'YOUR_SECRET');
if (! hash_equals($expected, $_SERVER['HTTP_X_FLOWSAAS_SIGNATURE'] ?? '')) {
http_response_code(401);
exit;
}
Use the body exactly as it arrives, not decoded and re-encoded. Also discard messages whose timestamp is more than a few minutes old. That way nobody can replay an intercepted message later.
If you leave the Secret empty when creating the webhook, FlowSaaS generates a random one. You see it when you open the webhook with the pencil. If you leave the field empty when editing, the existing secret stays.
Delivery and retries
- Your server has 30 seconds to respond. Any response with a 2xx status code counts as success.
- FlowSaaS doesn't follow redirects. Enter the final address.
- FlowSaaS doesn't deliver to addresses that aren't publicly reachable on the internet.
- If a delivery fails, FlowSaaS tries again after one minute and after five minutes, three attempts in total.
Why is my webhook suddenly inactive?
If all three attempts fail, FlowSaaS sets the webhook to Inactive. Once your receiver is running again, open the webhook with the pencil, tick Webhook active and click Save. Messages from the meantime aren't delivered afterwards.
The test
The play icon sends a message with event_type test and data.message "This is a test webhook from FlowSaas". Your server has 10 seconds for the test. A failed test doesn't switch the webhook off.
Delivery log
You can't see a delivery log in the interface. You fetch it through the API, see Use FlowSaaS through the API or with AI assistants. FlowSaaS keeps the entries for 30 days.