Only show guides for your app
Use the Webhooks page to post server and Git events to your own HTTPS endpoint, Discord or Slack, check the signature and read each delivery.
A webhook endpoint is an address Falix posts to when something happens, such as a server crashing or a backup finishing. Open Webhooks under Tools in the panel's sidebar to add endpoints, read every delivery and see which events you can pick.
The page shows the team picked in the team switcher, which is your personal team when All servers is picked. In an organization, only the Owner and Admins can use it, as Teams and organizations explains.
| Tab | What it shows |
|---|---|
| Endpoints | Each address, what it listens to and its last delivery, with an on and off switch, a test button and a menu of Edit, Replace secret (signed JSON only), Deliveries and Remove |
| Deliveries | What was sent to one endpoint in the last 30 days. Show narrows it to All, Failed, Waiting or Sent |
| Events | Every event Falix knows, with its name, description and type |
Events come in groups. These are the Game servers events:
| Events | When Falix sends them |
|---|---|
server.installed, server.started, server.stopped, server.crashed, server.idle |
A server finishes installing, comes online, goes offline, stops unexpectedly, or has had no players for the configured time |
backup.completed, git.deployment.completed |
A backup or a Git deployment to a server finishes |
player.joined, player.left |
A player joins or leaves. These are sent in batches |
threshold.cpu, threshold.memory, threshold.disk |
A server's CPU, memory or disk use crosses its threshold |
timer.warning, timer.expired |
A server's timer is about to run out, or has run out and the server was stopped |
advertisement.voted |
A player votes for the server's advertisement |
server.attack_detected, server.attack_ended |
An attack on a server is detected and mitigated, or ends |
server.outbound_attack, server.egress_quarantine, server.policy_triggered |
A server sends attack-like traffic, has its outbound traffic paused, or a console policy rule acts on it |
The Applications group has git.push, git.tag.created, git.release.published and git.deployment.failed. Billing, team and alert events are listed too, marked Not available yet, and can't be picked. A batch collects one server's events of one type for 10 seconds, up to 100, in a data.events list.
Mia runs a small service at https://hooks.example.com/falix that tells her friends when survival-1 crashes.
https://discord.com/api/webhooks/ or https://hooks.slack.com/services/.Then press the test button on the endpoint's row, and the result shows on the Deliveries tab. You can send 10 tests and resends a minute.
A signed JSON delivery is a POST with Content-Type: application/json and this body:
{
"type": "server.started",
"at": 1763300000,
"source": { "kind": "server", "id": "123", "name": "survival-1" },
"team": { "id": 42, "name": "mia" },
"data": { "previous_state": "starting", "current_state": "running" }
}
at is in Unix seconds, and data changes with the event. The request also carries X-Falix-Event (the type), X-Falix-Delivery (the delivery's number), X-Falix-Timestamp and X-Falix-Signature, and a test adds X-Falix-Test: 1. Discord and Slack endpoints get a ready-made message with no signature and no X-Falix- headers.
X-Falix-Signature is v1= followed by an HMAC-SHA256, in hex, of the timestamp, a dot and the raw body, made with your secret. Check it against the body exactly as it arrived, before you parse the JSON, and turn away a timestamp more than 5 minutes from your own clock:
import hashlib
import hmac
import time
def is_from_falix(secret: str, body: bytes, timestamp: str, signature: str) -> bool:
if abs(time.time() - int(timestamp)) > 300:
return False
signed = timestamp.encode() + b"." + body
expected = hmac.new(secret.encode(), signed, hashlib.sha256).hexdigest()
return any(
hmac.compare_digest(expected, part.strip().removeprefix("v1="))
for part in signature.split(",")
)
Pass it the raw body and the X-Falix-Timestamp and X-Falix-Signature values. To change the secret, choose Replace secret in the endpoint's menu. With Keep the current secret working for a day on, the header carries both signatures, separated by a comma, until then.
Any 2xx answer counts as delivered. Falix gives your endpoint 3 seconds to connect and 5 seconds in all, and it doesn't follow redirects.
Click a delivery to see its Request headers, Request body and Response, the first 4 KB of your endpoint's answer. After you fix the cause, turn the endpoint's switch back on and use the button on a failed delivery to send it again.
| Result | What to check |
|---|---|
| No response in time | Answer within 5 seconds and do slow work afterwards |
| Couldn't connect | The host, and that your service is running |
| The TLS handshake failed | Your HTTPS certificate is valid for that host |
| The address isn't public | Use an address on a public host |
| Responded with a redirect, which we don't follow | Put the final address in the endpoint |
| Responded with HTTP 500 | Your own service's logs |
An endpoint is also paused when the person who made it leaves the team or loses access to what it reports on.
The Discord webhook card on a server's Settings page, General tab, posts one server's events to one Discord channel: player joined or left, server online or offline, timer started, warning or expired, shutdown scheduled or cancelled, and server shutdown.
The Webhooks page covers every server in a team, posts to your own address or Slack as well as Discord, signs its JSON and logs each delivery. Use the server's card for a quick channel feed, and Webhooks when your own code acts on events. Schedules have their own webhooks, covered in Automate your server with Schedules.
Webhooks made for one server through the API show here as Signed JSON (server webhook). Send signed JSON in Edit moves one to the newer format, and you can't undo it.