Use caseUpdated

Social media API for AI agents: know whether the post went out

An agent needs to know whether its post went out. Siar, a unified social media API, gives it one REST call to publish and a signed webhook with each network's result. When a network says no, the agent gets that network's own code and message, plus a verdict: retry, don't retry, or unknown.

  • Publish with one REST call; the API key goes in the x-api-key header.
  • A signed post.published webhook with each network's result.
  • The network's own error and a verdict an agent can branch on.
  • Quotas, daily caps and per-network checks apply, so a runaway loop hits a documented limit.

Publish with one call

Any HTTP tool your agent has will do. The request names the networks and carries the text for each. A request that breaks a network's rules fails at once with a 400 naming the field, so the agent can fix it in the same turn.

Example: an agent schedules a post to Bluesky and Mastodon
import os, requests

res = requests.post(
    "https://api.siaran.my/api/v1/post",
    headers={"x-api-key": os.environ["SIAR_API_KEY"]},
    json={
      "teamId": "TEAM_ID",
      "title": "Release 2.4",
      "postDate": "2026-12-01T01:00:00.000Z",
      "status": "SCHEDULED",
      "socialAccountTypes": [
        "BLUESKY",
        "MASTODON"
      ],
      "data": {
        "BLUESKY": {
          "text": "Release 2.4 is out: faster exports and a new calendar view."
        },
        "MASTODON": {
          "text": "Release 2.4 is out: faster exports and a new calendar view."
        }
      }
    },
)
post = res.json()
print(post["id"], post["status"])

Learn the result

Subscribe an endpoint to post.published. It fires when the post has published or failed, with each network's result. Or read the post with GET /post/{id} and check its status.

Each failed network carries a retryability of retryable, non_retryable or unknown, and a userFacingMessage the agent can show or act on. Deliveries are signed and retried 7 times over about 45 hours.

Example: the webhook when one network said no
// Example: post.published for a post where one network said no (fields trimmed)
{
  "id": "evt_...",
  "type": "post.published",
  "data": {
    "id": "POST_ID",
    "status": "ERROR",
    "errors": { "MASTODON": "<a plain-English fix>" },
    "errorsVerbose": {
      "MASTODON": {
        "code": "PERMISSION",
        "errorMessage": "<the network's own message>",
        "httpStatus": 403,
        "retryability": "non_retryable",
        "userFacingMessage": "<a plain-English fix>"
      }
    }
  }
}

Guard rails

Quotas, daily caps and per-network validation apply to agents exactly as to any client. A loop that runs away hits a documented limit, not a network's spam filter.

For X, your organization pays from a prepaid credit at X's own USD prices. The credit endpoints show the balance and quote an action before the agent runs it.

Start with a draft status, or a brand connected to a test account, while you build trust in the agent.

SDK, CLI and MCP server

TypeScript SDK, CLI and MCP server (version 0.1.0), built from the same OpenAPI contract. Not on npm yet. Until they are published, call the REST API from your agent's HTTP tool. The quickstart shows the first request.

Networks open today

Each use case works only where the network has opened to Siar. Status checked .

NetworkStatusWhat you can do today
Facebook Open todayPublish, schedule, edit and delete Page posts, reels and stories; read and answer comments; Page and post insights.
Instagram Open todayFeed posts, carousels, reels and stories on business and creator accounts; comments, first comment and insights.
Threads Open todayText, image, video and carousel posts, replies, insights and delete.
X Open todayPosts, threads, polls, quotes and replies, paid from a prepaid X credit at X's own USD prices.
LinkedIn Profiles openPosts to a member's own profile with text, images, video, documents and links.
Bluesky Open todayPosts with images, video, link cards, quotes, tags and self-labels.
Mastodon Open todayStatuses on any Mastodon server, with visibility, content warnings and media.
Discord Open todayChannel messages from a bot whose name and avatar you set per brand.
Slack Open todayChannel messages with files and a custom bot name. Reply import runs at one request a minute.
  • LinkedIn: personal profiles today; company pages open after LinkedIn grants page access.
  • YouTube: connect and upload now; public uploads not yet confirmed.
  • TikTok: built, opening after TikTok approves Siar.
  • Pinterest: connect your account today; publishing Pins opens after Pinterest grants Standard access.
  • Reddit: built, not open yet.
  • Snapchat: built, not open yet.
  • Google Business Profile: built, not open yet.

Each network's status

What this doesn't cover yet

  • TypeScript SDK, CLI and MCP server (version 0.1.0), built from the same OpenAPI contract. Not on npm yet.
  • There is no hosted MCP endpoint.
  • No idempotency key on post creation: if an agent resends a create call, it makes a second post. Check by your own reference first.

Keep reading

Frequently asked questions

Can an AI agent post to social media through Siar?

Yes, through the REST API. The agent publishes with one call and reads the result from a signed webhook or from the post's status, including the network's own error if it failed. An MCP server and CLI are built, but they are not on npm yet, so there is no install command today.

Is there an MCP server?

TypeScript SDK, CLI and MCP server (version 0.1.0), built from the same OpenAPI contract. Not on npm yet. There is no hosted MCP endpoint.

Can the agent post to a real account by mistake?

It can do anything its API key can do. Use a draft status, a brand connected to a test account, or review before scheduling while you build confidence.

Is there a plain-text description of Siar for LLMs?

Yes: /llms.txt and /pricing.md.

Write it once. Siar it everywhere.

Pick a use case, send one request, and see what happened on each network. 20 free posts to try, no card.