// Check social media publishing limits before posting

Check social media publishing limits before posting

Check every account's remaining publishing allowance before a batch, and defer posts instead of failing them.

Publishing limits

Live allowance

Within limits

@acme.official

62/ 100

@acme_hq

38/ 100

Next resetin 9 days
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 / Check social media publishing limits before posting
Build a publishing-limits guardrail for our social media batches. Connect to the InvisibleAPI REST API with an organization API key that has publishing:read and publishing:publish scopes. Read remainingAllowance for every target account from GET /limits before each batch, create publishing jobs only for posts that fit, schedule overflow with requestedPublishAt after the reset date, and alert us when an account reaches 90% usage. Return published and deferred posts separately.

This social media publishing limits template keeps batch publishing inside your limits. Each connected account can publish 100 posts per billing period, and the limits endpoint reports usage live, so your code can defer posts instead of watching them fail.

What it uses

  • GET /limits for each account's configuredLimit, currentUsage, and remainingAllowance
  • POST /publishing/jobs for the posts that fit the allowance
  • requestedPublishAt to schedule deferred posts past the reset date

How it works

  1. Before any batch, read the live limits for every target account.
  2. If the batch fits, publish as planned.
  3. If not, publish up to the allowance and schedule the rest after the period resets.
  4. Alert your team when an account crosses 90% of its allowance.
  5. Report per-account lines: used, remaining, deferred count.

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.

// Related templates

Ship your first publish job today.

7-day free trial. Instagram and X, one API, MCP included.

Or talk to a human. support@invisibleapi.ai