KosmoKrator

messaging

Gotify CLI for AI Agents

Use the Gotify CLI from KosmoKrator to call Gotify tools headlessly, return JSON, inspect schemas, and automate workflows from coding agents, scripts, and CI.

5 functions 3 read 2 write API token auth

Gotify CLI Setup

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 --json
kosmokrator integrations:doctor gotify --json
kosmokrator integrations:status --json

Credentials

Authentication type: API token api_token. Configure credentials once, then use the same stored profile from scripts, coding CLIs, Lua code mode, and the MCP gateway.

KeyEnv varTypeRequiredLabel
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.

kosmo integrations:call gotify.gotify_list_messages '{
  "limit": 1,
  "since": 1
}' --json

Use the provider shortcut form for shorter human-facing commands.

kosmo integrations:gotify gotify_list_messages '{
  "limit": 1,
  "since": 1
}' --json

Agent Discovery Commands

These commands return structured output for coding agents that need to inspect capabilities before choosing a function.

kosmo integrations:docs gotify --json
kosmo integrations:docs gotify.gotify_list_messages --json
kosmo integrations:schema gotify.gotify_list_messages --json
kosmo integrations:search "Gotify" --json
kosmo integrations:list --json

All CLI Functions

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.

Parameters
limit, since

Generic CLI call

kosmo integrations:call gotify.gotify_list_messages '{"limit":1,"since":1}' --json

Provider shortcut

kosmo integrations:gotify gotify_list_messages '{"limit":1,"since":1}' --json

gotify.gotify_create_message

Write write

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.

Parameters
title, message, priority

Generic CLI call

kosmo integrations:call gotify.gotify_create_message '{"title":"example_title","message":"example_message","priority":1}' --json

Provider shortcut

kosmo integrations:gotify gotify_create_message '{"title":"example_title","message":"example_message","priority":1}' --json

gotify.gotify_delete_message

Write write

Delete a message from Gotify by its ID. Use the list_messages tool to find message IDs.

Parameters
id

Generic CLI call

kosmo integrations:call gotify.gotify_delete_message '{"id":1}' --json

Provider shortcut

kosmo integrations:gotify gotify_delete_message '{"id":1}' --json

gotify.gotify_get_health

Read read

Check the health status of the Gotify server. Returns server health information including database status.

Parameters
none

Generic CLI call

kosmo integrations:call gotify.gotify_get_health '{}' --json

Provider shortcut

kosmo integrations:gotify gotify_get_health '{}' --json

gotify.gotify_get_current_user

Read read

Get information about the currently authenticated Gotify user, including username and admin status.

Parameters
none

Generic CLI call

kosmo integrations:call gotify.gotify_get_current_user '{}' --json

Provider shortcut

kosmo integrations:gotify gotify_get_current_user '{}' --json

Function Schemas

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.

Operation
Read read
Schema command
kosmo integrations:schema gotify.gotify_list_messages --json
ParameterTypeRequiredDescription
limit integer no 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.

Operation
Write write
Schema command
kosmo integrations:schema gotify.gotify_create_message --json
ParameterTypeRequiredDescription
title string yes Message title.
message string yes Message body (supports Markdown).
priority integer no Message priority from 0 (lowest) to 10 (highest). Default is 5 (normal).

gotify.gotify_delete_message

Delete a message from Gotify by its ID. Use the list_messages tool to find message IDs.

Operation
Write write
Schema command
kosmo integrations:schema gotify.gotify_delete_message --json
ParameterTypeRequiredDescription
id integer yes The ID of the message to delete.

gotify.gotify_get_health

Check the health status of the Gotify server. Returns server health information including database status.

Operation
Read read
Schema command
kosmo integrations:schema gotify.gotify_get_health --json
ParameterTypeRequiredDescription
No parameters.

gotify.gotify_get_current_user

Get information about the currently authenticated Gotify user, including username and admin status.

Operation
Read read
Schema command
kosmo integrations:schema gotify.gotify_get_current_user --json
ParameterTypeRequiredDescription
No parameters.

Permissions

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.