Receive messages from your own tools with webhooks
Give a script, build tool or monitor a private address on this computer, and each message it sends shows up in Yardmaster.
A webhook is an address another program sends messages to. Yardmaster can listen on this computer, so your own scripts, build tools and monitors can drop a note into Yardmaster when something happens. It only receives; it never sends anything back out.
Set up a webhook#
Open Settings > Channels and expand Webhooks.
Turn on Webhook Integration.
In the Port: box, type a number between 1024 and 65535 (for example 9400), then click outside the box to save it.
Quit and reopen Yardmaster. The card now says Running on port and your number.
Under Add Webhook Source, type a name for the sender and a token of at least 32 characters, then click Add Source.
Click the copy button next to the source to copy its address.
Set up your tool to send a POST request to that address, with the header
Authorization: Bearerfollowed by your token.
Click the test button next to a source to send it a test message; OK (200) means it works. Messages appear under Webhooks in the projects column, grouped by source, with the body laid out neatly when it is JSON.
Who can reach it#
The address only works on this computer: it starts with http://localhost. A website or online service elsewhere cannot reach it directly; you would need your own way to forward messages to this computer, which Yardmaster does not set up.
Requests without the right token get Unauthorized and are dropped. Each message can be up to 1 MB, and each source accepts up to 60 messages a minute.
Do something when a message arrives#
New webhook messages can trigger your automations, for example to start an agent when a build fails. Webhook messages also turn up in search.
Remove a source#
Click the remove button next to the source and confirm Remove. Anything still sending to that address stops working. This cannot be undone.
Turn webhooks off#
To stop accepting webhook messages, remove all your sources: requests to a removed source are refused.
Why restart? Saving the port only stores it. Yardmaster starts listening the next time it opens, so the card says Not running until then.
Changing the port. While it is running, the port box is locked, so the port cannot be changed from Settings.
Each sender, its own source. Give every tool its own source and token, so you can remove one without breaking the others.