Plugin for Gotity to be able to recieve Webhook requests
  • Go 75.3%
  • Makefile 24.7%
Find a file
2026-01-04 15:15:46 +01:00
.gitignore Added build tools 2024-05-11 16:06:17 +02:00
.gitlab-ci.yml Updated .gitlab-ci.yml to support glab cli instead of release-cli 2025-09-24 18:47:08 +02:00
go.mod fix: updated gin to v1.11.0 2026-01-04 15:15:46 +01:00
go.sum fix: updated gin to v1.11.0 2026-01-04 15:15:46 +01:00
LICENSE Add LICENSE 2024-05-12 11:56:13 +02:00
main.go Some changes: 2024-08-08 16:15:21 +02:00
Makefile Removed read-only tag in volume mount in makefile 2024-05-12 11:27:32 +02:00
README.md Some changes: 2024-08-08 16:15:21 +02:00
utils.go Some changes: 2024-08-08 16:15:21 +02:00

Gotify Webhooks Plugin

Installation

Just download the latest .so file for your architecture from the package registry or build it yourself with make build (required Go and Docker). This uses Gotify's build tools to build against the latest version. The .so files are compiled to build/gotify-webhooks*.so.

Then simply move the .so file to the Gotify plugin directory and restart Gotify.

Usage

Activate the Plugin, then go to the plugin's details panel to retrieve the Webhook URL. You can POST and PUT payload to it.

The plugin tries to determine the content type of the message by the following means (in order of preference):

  • URL query parameter content-type, e.g. https://<host>/plugin/1/custom/<id>/webhook?content-type=application/json
  • Standard request header content-type
  • Nonstandard request header x-content-type

The following content types are currently supported:

  • application/json
  • text/markdown (see here to see how Gotify handles Markdown)

If none of those are set or the content type is unknown, the plugin tries to parse the content as JSON. If this is not successfull, the request body will be displayed as-is or a corresponding error is shown.

The parsed payload is sent to the automatically created "Webhooks" application channel along with the senders IP address.