Coming soon
This connection is not available yet. LinkedIn, X, Bluesky, Discord, Telegram and Mastodon are live today. The steps below show how this guide will work once the connection ships.
How to sendfrom
This connection is coming soon. Here is how it will work once it ships: connect Slack message, send from Next.js, and track delivery.
Connect your platform
Slack connections are coming soon. Once they ship, this is how you will connect a Slack workspace to yeetpost:
- Go to app.yeetpost.com
- Click Add connection and select Slack
- Authenticate with your Slack workspace
- Select the channel where messages will be posted
Paste your connection slug here and we'll auto-fill it into the code examples below.
Get your API key
Get your API key from the yeetpost dashboard:
- Go to app.yeetpost.com/app/settings
- Copy your API key
Paste your API key here and we'll auto-fill it into the code examples below.
Send your post
Install the yeetpost package:
npm install yeetpostSet your API key as an environment variable in .env.local. Keep it out of any name that starts with NEXT_PUBLIC_, because those are inlined into the browser bundle:
YEETPOST_API_KEY=<your-api-key>Send the post from a route handler, a server action or a scheduled job, never from a client component:
// app/api/announce/route.ts
import { yeetpost } from "yeetpost";
export async function POST(request: Request) {
const { text } = await request.json();
await yeetpost({
connection: "<your-connection-slug>",
text,
});
return Response.json({ ok: true });
}Deploying on Vercel? Add YEETPOST_API_KEY under Project Settings, Environment Variables, so the server build has it as well as your machine.
Track your posts
Monitor all your posts from the yeetpost dashboard:
- Go to the Feed tab in the yeetpost dashboard
- View all posts sent via yeetpost, including status and timestamps
Review the security checklist
Review the Security Checklist to ensure your implementation is secure.
Related guides
Related resources
Copy this guide (with your values) for use with LLMs or sharing with colleagues.