← 返回
未分类 Key

Bark Notifications

Send push notifications to iOS devices via Bark app (https://github.com/Finb/Bark). Use when user asks to push a notification to their iPhone, send a Bark no...
通过 Bark 应用向 iOS 设备发送推送通知(https://github.com/Finb/Bark)。适用于用户请求向 iPhone 推送通知或发送 Bark 通知的场景。
yanbo92
未分类 clawhub v1.0.0 1 版本 100000 Key: 需要
★ 0
Stars
📥 417
下载
💾 2
安装
1
版本
#latest

概述

Bark Skill

Send push notifications to iOS devices via the Bark app. The Bark key is stored in ~/.bark/key.

Key Setup

Key file: ~/.bark/key (plain text, just the key string).

If the file doesn't exist or is empty, ask the user for their Bark key and write it to ~/.bark/key.

API Overview

  • Base URL: https://api.day.app/
  • Method: GET or POST
  • Required: Bark key (from ~/.bark/key), body text
  • Optional: title, subtitle, URL, icon, sound, group, level, etc.

Quick Send (GET)

Send a simple notification:

GET https://api.day.app/{key}/{body}

Send with title:

GET https://api.day.app/{key}/{title}/{body}

Send with title and subtitle:

GET https://api.day.app/{key}/{title}/{subtitle}/{body}

POST Request (Recommended for multi-line / special chars)

Use POST + --data-urlencode for plain text, newlines, and special characters:

KEY=$(cat ~/.bark/key)
curl -s -X POST "https://api.day.app/$KEY" \
  -d "title=Notification Title" \
  --data-urlencode "body=First line
Second line
Third line"

Notes:

  • Use -d "title=..." and --data-urlencode "body=..." to separate title and body
  • Newlines in body are literal line breaks (press Enter, not \n as a string)
  • --data-urlencode auto URL-encodes, no manual handling needed for Chinese or special chars
  • Do not use -d "body=multiline content" — newlines won't be preserved in form-data

Parameters

ParamDescription
--------------------
titleNotification title, slightly larger than body
subtitleSubtitle
bodyNotification body, use \n for line breaks
urlURL to open when notification is tapped
groupMessage group for grouping notifications
iconPush icon (iOS 15+)
soundNotification sound, e.g. alarm, birdsong
levelactive (default, lights up screen immediately) / timeSensitive (shows during Focus mode) / passive (adds to list without lighting screen)
criticalAlerttrue to play sound even in Do Not Disturb (use with caution)

How to Use

  1. Read key from ~/.bark/key
  2. If key file doesn't exist or is empty, ask user for their Bark key and write it to ~/.bark/key
  3. Build the request with the key and user-provided parameters
  4. Execute via exec/curl
  5. Confirm notification received

Example

Key stored in ~/.bark/key: yourkey

Title: Meeting Reminder

Body: Team sync at 3pm tomorrow

curl -s -X POST "https://api.day.app/yourkey" \
  -d "title=Meeting Reminder" \
  --data-urlencode "body=Team sync at 3pm tomorrow"

Notes

  • If user doesn't have a Bark key, tell them to install the Bark app and copy the test URL from the app
  • Default public server is api.day.app; Bark also supports self-hosted servers
  • For critical alerts (level=critical), the device will play sound even in Do Not Disturb
  • Sound will loop for 30 seconds if call=1 parameter is used

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-07 04:31 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 672 📥 324,539
ai-intelligence

self-improving agent

pskoett
捕获经验教训、错误和纠正,以实现持续改进。使用时机:(1)命令或操作意外失败;(2)用户纠正……
★ 4,062 📥 800,184
ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,363 📥 319,063