Sending a Test Message using Curl

In order to send a notification that will be issued under a configured application in Gotify, the following curl command should do the job:

curl -i -X POST -H "Content-Type: application/json" -H "X-Gotify-Key: APPLICATION_TOKEN" --data '{ "message": "test", "title": "test" }'  https://GOTIFY.TLD/message

where:

  • APPLICATION_TOKEN is the application token configured using the Gotify interface,
  • GOTIFY.TLD is the hostname of the Gotify server

The payload, namely the JSON string passed to the data parameter, is used here in-line, but it can also be sent from a local file.

Change Application Image File

With curl:

curl --form "file=@image.jpg;type=multipart/form-data" "https://SERVER.TLD/application/1/image?token=<YOUR_CLIENT_TOKEN>"

where:

  • image.jpg is the name of an image file in the local directory,
  • application/1 updates the application with the ID number 1,
  • YOUR_CLIENT_TOKEN is a client token

fuss/gotify.txt ยท Last modified: 2025/06/18 08:55 by office

Wizardry and Steamworks

© 2025 Wizardry and Steamworks

Access website using Tor Access website using i2p Wizardry and Steamworks PGP Key


For the contact, copyright, license, warranty and privacy terms for the usage of this website please see the contact, license, privacy, copyright.