Guides & recipes
Publish everywhere at once
The whole point of PostMyIsh in one recipe: take a caption, and land it on every network you've connected with a single call.
The pattern
List your connected networks with List accounts, then pass those ids straight into Create a post. Two calls, every feed.
const BASE = "https://postmyish.com/api/v1";
const headers = { Authorization: `Bearer ${process.env.POSTMYISH_KEY}` };
// 1. Discover what you can publish to
const { data: accounts } = await (
await fetch(`${BASE}/accounts`, { headers })
).json();
const everywhere = accounts.map((a) => a.platform);
// 2. Publish to all of them at once
const res = await fetch(`${BASE}/posts`, {
method: "POST",
headers: { ...headers, "Content-Type": "application/json" },
body: JSON.stringify({
caption: "Big news — we shipped 🚀",
platforms: everywhere,
}),
});
const post = await res.json();
console.log(post.status, post.platforms);Or just name them
You don’t have to discover accounts every time. Unknown or unconnected ids are dropped automatically, so a fixed list is safe — anything you haven’t connected is simply ignored.
{
"caption": "Big news — we shipped 🚀",
"platforms": ["x", "linkedin", "threads", "bluesky", "telegram"]
}Mind the media-first networks
Instagram, Pinterest, TikTok, and YouTube can’t publish text alone. If your fan-out includes them, add a
media URL — the text-only networks in the same call will still go out either way. See Media.Related
- Build a content scheduler — fan out on a schedule instead of right now.
- How publishing works — what happens to each network in the fan-out.