Social Posting API
for AI Agents

Your user connects their social accounts once. Your AI agent posts, schedules, and publishes to Instagram, X, LinkedIn, TikTok, YouTube, Pinterest, Threads, Facebook, and Telegram — via a single REST API.

Using Claude or ChatGPT instead of your own code? Social media toolkits over MCP →

POST /api/agents/social/post

{
  "platforms": ["instagram", "x", "linkedin"],
  "text": "Launch day. New build is live.",
  "media": ["https://cdn.unilink.us/img.jpg"],
  "scheduledAt": "2026-05-12T15:00:00Z"
}

// 1 call. 9 platforms. Posted on the user’s behalf.

Built for AI Agents

🔐

One-Time OAuth

The user connects their social accounts in UniLink once. Your agent never sees their passwords — only an API key scoped to publishing.

🚀

One Endpoint, Nine Platforms

Skip nine OAuth flows, nine SDKs, nine rate-limit policies. Send the post once — UniLink fans it out to every connected channel.

⏰

Schedule or Publish Now

Pass scheduledAt for queued publishing. Omit it to go live now. Same call, same response shape.

Supported Platforms

Instagram, X (Twitter), LinkedIn, Facebook, TikTok, YouTube, Pinterest, Telegram, Threads.

How It Works

The user owns the accounts. The agent owns the schedule. UniLink owns the OAuth tokens.

1

User connects socials in UniLink (once)

The user signs in to UniLink, opens Social Planner, and connects each network they want the agent to publish to. UniLink stores the OAuth tokens, refreshes them, and handles every platform's quirks.

2

User issues an API key for the agent

In Settings → API Keys, the user creates a publishing-scoped key and hands it to the AI agent. Keys can be revoked or rotated at any time without re-connecting any social account.

3

Agent publishes via REST

The agent calls /api/agents/social/post (or /schedule) with text, media, and a list of platforms. UniLink fans out to every connected network, returns per-platform IDs, and stores the result in analytics.

Quick Start

Three calls. Your agent is publishing across 9 networks.

1. Check which networks the user has connected

curl https://unilink.us/api/agents/social/accounts \
  -H "X-API-Key: $UNILINK_API_KEY"

2. Publish a post right now

curl -X POST https://unilink.us/api/agents/social/post \
  -H "X-API-Key: $UNILINK_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "platforms": ["instagram", "x", "linkedin"],
    "text": "New release. See changelog 👇",
    "media": ["https://cdn.unilink.us/launch.jpg"]
  }'

3. Or schedule it for later

curl -X POST https://unilink.us/api/agents/social/schedule \
  -H "X-API-Key: $UNILINK_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "platforms": ["tiktok", "youtube", "instagram"],
    "text": "Friday drop 🎬",
    "media": ["https://cdn.unilink.us/teaser.mp4"],
    "scheduledAt": "2026-05-15T17:00:00Z"
  }'

API Reference

Connections

GET/social/accountsList the user's connected networks
GET/social/accounts/{platform}Status & handle for one network

Publishing

POST/social/postPublish a post immediately
POST/social/scheduleSchedule a post for later
POST/social/draftSave as draft for user review

Manage Posts

GET/social/postsList sent & scheduled posts
GET/social/posts/{id}Post details + per-platform IDs
PUT/social/posts/{id}Edit a scheduled post
DELETE/social/posts/{id}Cancel or delete a post

Insights

GET/social/insights/{id}Reach, likes, comments per platform
GET/social/insights/summaryRolling 30-day summary

Base URL: https://unilink.us/api/agents
Full docs: skill.md

What Agents Build With This

🤖

Marketing Co-Pilot

A SaaS company gives every customer a Claude/GPT agent that drafts and publishes weekly product updates across all their channels.

📰

Newsdesk Bot

A media outlet's agent watches RSS feeds, summarises stories, and pushes them to Telegram, X, and LinkedIn within minutes.

🛍️

Shop Cross-Poster

An e-commerce agent posts new product drops simultaneously to Instagram, Pinterest, and TikTok — with platform-aware copy.

🎨

Creator Assistant

A creator's personal AI schedules a month of content from a single brief and adapts captions per platform.

Works With Any Agent Framework

Plain HTTP. No SDK lock-in.

Claude (MCP)

Drop-in MCP tool

LangChain

HTTP tool + API key

OpenAI Agents

Function calling

CrewAI

Custom tool wrapper

AutoGPT

REST plugin

n8n / Zapier

HTTP request node

Stop Wiring Nine APIs.
Start Posting From One.

Connect socials in UniLink, hand your agent a key, and ship. Free tier included.