// Build a tool to post to multiple social media accounts at once

Build a tool to post to multiple social media accounts at once

Send one launch post to every client account with a single publishing job, and track each delivery separately.

Launch post

2 destinations

2 / 2 live
@acme.officialPublished
@acme_hqPublished
Delivery statusjob_8f2a
01 / Build it in Claude

Start with the prompt, then make it yours.

Paste this into Claude, then give it your content plan and scheduling rules.

Claude / Build a tool to post to multiple social media accounts at once
Build a tool that publishes one announcement to multiple social accounts. Connect to the InvisibleAPI REST API with an organization API key that has publishing:read and publishing:publish scopes. Read connected accounts and remaining allowance, create one POST /publishing/jobs request with every approved account in targets, poll GET /publishing/jobs/{publishJobId} for per-account delivery status, and retry only failed deliveries with POST /publishing/jobs/{publishJobId}/retry. Return the accounts that were published, skipped, or need action without creating duplicate posts.

This template publishes one announcement to many connected accounts at once. A single publishing job fans out to one delivery per target account, so you get per-account status without writing a loop.

It is cross-posting without copy and paste: one job, one caption, many connected Instagram and X accounts, and a separate result for each one.

What it uses

  • GET /social-accounts to collect the target account IDs
  • GET /limits to skip accounts without remaining allowance before you publish
  • POST /publishing/jobs with every account in targets: the job fans out to one delivery per account
  • GET /publishing/jobs/{publishJobId} for the per-account delivery board
  • POST /publishing/jobs/{publishJobId}/retry to re-run failed deliveries safely

How it works

  1. Collect the connected accounts that should receive the announcement.
  2. Check each account's remaining allowance and list any you skip.
  3. Create one publishing job with the caption, the public media URLs, and all targets.
  4. Poll the job and render one line per account: published, retrying, or action required.
  5. Retry retryable failures. Retries are capped and never produce a duplicate post.

Start from this template

Copy the ready-made agent prompt from the templates page and point your agent at the InvisibleAPI MCP server, or implement the same steps directly against the API. Instagram deliveries go through the Instagram posting API. If a person must approve the announcement first, use the social media approval tool template.

// Related templates

Make your next tool real.

Try it free for 7 days. Instagram and X APIs, with MCP included.

Or talk to a human. support@invisibleapi.ai