Use the Gotify CLI from KosmoKrator to call Gotify tools headlessly, return JSON, inspect schemas, and automate workflows from coding agents, scripts, and CI.
Gotify can be configured headlessly with `kosmokrator integrations:configure gotify`.
# Install KosmoKrator first if it is not available on PATH.curl -fsSL https://raw.githubusercontent.com/OpenCompanyApp/kosmokrator/main/install.sh | bash# Configure and verify this integration.kosmokrator integrations:configure gotify --set app_token="$GOTIFY_APP_TOKEN" --set hostname="$GOTIFY_HOSTNAME" --enable --read allow --write ask --jsonkosmokrator integrations:doctor gotify --jsonkosmokrator integrations:status --json
Credentials
Authentication type: API tokenapi_token. Configure credentials once, then use the same stored profile from
scripts, coding CLIs, Lua code mode, and the MCP gateway.
Key
Env var
Type
Required
Label
app_token
GOTIFY_APP_TOKEN
Secret secret
yes
App Token
hostname
GOTIFY_HOSTNAME
URL url
yes
Gotify Server URL
Call Gotify Headlessly
Use the generic call form when another coding CLI or script needs a stable universal interface.
Every function below can be called headlessly. The generic form is stable across all integrations;
the provider shortcut is shorter but specific to Gotify.
gotify.gotify_list_messages
Read read
List messages from the Gotify application. Returns the most recent messages, with optional pagination using "since" to fetch messages newer than a given ID.
Send a notification message via Gotify. The message body supports Markdown formatting. Use priority 0–4 for low, 5 for normal, and 6–10 for high priority.
Use these parameter tables when building CLI payloads without calling integrations:schema first.
gotify.gotify_list_messages
List messages from the Gotify application. Returns the most recent messages, with optional pagination using "since" to fetch messages newer than a given ID.
Maximum number of messages to return (default: 100, max: 200).
since
integer
no
Return messages with ID greater than this value. Useful for polling new messages.
gotify.gotify_create_message
Send a notification message via Gotify. The message body supports Markdown formatting. Use priority 0–4 for low, 5 for normal, and 6–10 for high priority.
Headless calls still follow the integration read/write permission policy. Configure read/write defaults
with integrations:configure. Add --force only for trusted automation that should bypass that policy.