
Knock Has a Free API That Powers In-App Notifications Like Slack
Knock is the notification infrastructure platform that gives you a Slack-like notification feed, cross-channel delivery, and preference management — all via API. What Is Knock? Knock handles the entire notification stack: in-app feeds, email digests, push notifications, Slack messages, and SMS. One API call triggers the right notification on the right channel. Quick Start npm install @knocklabs/node import { Knock } from ' @knocklabs/node ' const knock = new Knock ( process . env . KNOCK_API_KEY ! ) // Trigger notification await knock . notify ( ' new-comment ' , { recipients : [ ' user-123 ' ], data : { commenter : ' Alice ' , commentText : ' Great article! ' , postTitle : ' Getting Started with Knock ' , postUrl : ' https://app.example.com/posts/456 ' , }, }) REST API export KNOCK_KEY = "your-api-key" # Trigger workflow curl -s -X POST 'https://api.knock.app/v1/workflows/new-comment/trigger' \ -H "Authorization: Bearer $KNOCK_KEY " \ -H 'Content-Type: application/json' \ -d '{ "recip
Continue reading on Dev.to React
Opens in a new tab

