Skip to content

Bark

Upstream docs: https://github.com/Finb/Bark

URL Format

bark://:DEVICE_KEY@HOST[:PORT][/PATH]

URL Fields

  • DeviceKey - The key for each device (Required)
    URL part: Password
  • Host - Server hostname and port (Required)
    URL part: Host
  • Path - Server path Default: /
    URL part: Path

Query/Param Props

Props can be either supplied using the params argument or through the URL using ?key=value&key=value etc.

  • badge - Number displayed on the app icon, or 0 for none Default: 0

  • category - Deprecated: not sent, because Bark sets the category of each notification Default: empty

  • copy - The value to be copied Default: empty

  • disabletls - Send over HTTP instead of HTTPS Default: ❌ no

  • group - The group of the notification Default: empty

  • icon - An url to the icon, available only on iOS 15 or later Default: empty

  • scheme - Deprecated: use disabletls. Server protocol, http or https Default: https

  • skiptlsverify - Skip TLS certificate verification Default: ❌ no

  • sound - Value from https://github.com/Finb/Bark/tree/master/Sounds Default: empty

  • title - Notification title, optionally set by the sender Default: empty

  • url - Url that will jump when click notification Default: empty

Badge

The badge parameter sets the number displayed on the app icon. Shoutrrr sends it only when it is positive. Bark clears the app's notifications from Notification Center when it receives a badge of 0, so a badge of 0 sends no badge and leaves earlier notifications in place. A negative badge is rejected when the URL is read and when it is sent.

TLS

Bark sends over HTTPS by default. Set disabletls=yes to send over HTTP instead, which leaves the connection unencrypted. The first send without TLS logs a warning.

A self-hosted bark-server can serve HTTPS with its own certificate, given through its --cert and --key options. Set skiptlsverify=yes when that certificate cannot be verified, such as a self-signed one. The connection stays encrypted, but Shoutrrr does not check which server it talks to. The first send that skips verification logs a warning.

Both options can also be passed as send params, which apply to that send only. A custom HTTP client set through SetHTTPClient or the HTTPClient field keeps its own TLS settings, so skiptlsverify does not change it.

Deprecated

The scheme parameter is deprecated in favor of disabletls. It still works and logs a warning the first time it is used. A scheme of http turns TLS off, and any value other than http or https is rejected. In Go, the Config.Scheme field is deprecated in favor of Config.DisableTLS.

Deprecated

The category parameter is deprecated and has no replacement. Bark sets the category of each notification itself, so Shoutrrr does not send it. A URL or send params that set it still work, and the first send with one logs a warning. A config URL that Shoutrrr writes leaves it out. In Go, the Config.Category and PushPayload.Category fields are deprecated too.