ping is a small signed event that the Routeur team can queue for any active subscription on request. It travels through the same outbox, signing, retries and timeouts as a real alert, so a ping that verifies means real alerts will too. It is the PingEvent schema in the API reference.
Example delivery
1790532000. followed by the body above, exactly as printed on one line, with the key whsec_0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef. Feed those three inputs to your verifier to check it before your first delivery.
Fields
There is no
graph_run and no lead. Slack subscriptions receive {"text": "Routeur alerts are connected. Executable mispricings will be posted here."} instead.
Triggering a ping
Pings are queued by the Routeur team, not through the API. Send them your subscription id and ask for a test delivery. The ping is queued at once and delivered by the next run of the delivery job, so it arrives within about two minutes. What happens then follows the delivery rules exactly:
A ping is not subject to the six-hour repeat window and does not affect it; you can ask for as many as you need while setting up.
Handling
Verify the signature, recordRouteur-Delivery, respond 2xx, and do nothing else. A handler that only knows lead.executable must still acknowledge a ping, or the ping will be retried and eventually marked failed.
Related
- Verifying signatures: the algorithm and tested verifiers in Python, Node and Go.
- Webhooks overview: getting a subscription, retries, disabling.
lead.executable: the event you are setting up to receive.