One API to publish and run ads across X, LinkedIn, Instagram, Meta, Google and more — driven by your app or an AI agent. Skip eight brittle integrations and get typed errors, idempotency, and dry-run on every write built in.
Call it from your frontend · dry-run every write · official APIs only
import { createPostrunClient, unwrap } from "@postrun/js";const postrun = createPostrunClient({getToken: () => process.env.POSTRUN_TOKEN!,});// Publish to X, LinkedIn & Instagram in one idempotent callconst post = unwrap(await postrun.POST("/posts", {headers: { "Idempotency-Key": "7f2c1a9e" },body: {profile_id: "prof_8sk2y",variants: [{ platform: "x", content: "Launch day." },{ platform: "linkedin", media: ["med_3f9a"] },{ platform: "instagram", media: ["med_b21c"] },],},}),);
One API for every network — posting and ads, on official platform APIs
Every error is a typed code you can branch on, on a standard RFC 9457 body — so you handle failures instead of guessing at a silent 500.
Send an Idempotency-Key and a retry returns the original result — so a flaky network never turns into a double-post or a double charge.
Dry-run every change before it goes live and keep a full audit trail of every money-moving ad call on Google Ads and Meta Ads — so automated changes are previewable and traceable.
Delivery webhooks and typed status tell you what published or failed — so you stop polling and your users see the truth.
Mint scoped tokens and call Postrun straight from the browser — so you build the whole feature without standing up a proxy or a database.
Every endpoint is also an MCP tool with dry-run — so an agent can post and run ads on official APIs, with the same guardrails you get.
For indie builders shipping their first integration.
3 profiles included
Start buildingFor teams running products or clients at scale.
15 profiles included
Start buildingFor agencies managing many client workspaces.
60 profiles, then $4 each
Start buildingFor platforms embedding Postrun for their own users.
Unlimited profiles
Contact usAds included up to $10k/mo managed spend per profile, then 0.5% (capped $199/mo). 30-day trial, card required. Annual billing saves two months.