Prerequisites
- An account at autoposting.ai
- A social account on X, LinkedIn, Instagram, Threads, or YouTube
Keep your API key secret. Never commit it to version control or expose it in client-side code.
Sign up
Create your account at autoposting.ai. All plans include a 3-day free trial — no credit card required. Get your API key
Go to Settings → API Keys in the dashboard and create a new key. Copy it immediately — the full value is shown only once.export AUTOPOSTING_API_KEY=sk-social-your-key
Choose your method
CLI
TypeScript SDK
cURL
MCP (AI Agent)
Install the CLI and publish your first post:npm install -g @autoposting.ai/cli
# Create a post
ap posts create --brand my-brand --text "Hello from Autoposting!" --platforms x,linkedin
# Publish it
ap posts publish <post-id>
Install the SDK and publish programmatically:npm install @autoposting.ai/sdk
import { Autoposting } from '@autoposting.ai/sdk'
const client = new Autoposting({ apiKey: process.env.AUTOPOSTING_API_KEY })
const post = await client.posts.create({
brandSlug: 'my-brand',
text: 'Hello from Autoposting!',
platforms: ['x', 'linkedin'],
})
await client.posts.publish(post.id)
# Create a post
curl -X POST https://app.autoposting.ai/api-proxy/posts \
-H "Authorization: Bearer $AUTOPOSTING_API_KEY" \
-H "Content-Type: application/json" \
-d '{"brandSlug": "my-brand", "text": "Hello from Autoposting!", "platforms": ["x", "linkedin"]}'
# Publish it (use the _id from above)
curl -X POST https://app.autoposting.ai/api-proxy/posts/<post-id>/publish \
-H "Authorization: Bearer $AUTOPOSTING_API_KEY"
Add to your Claude Desktop config and ask Claude to post for you:{
"mcpServers": {
"autoposting": {
"command": "ap",
"args": ["mcp"],
"env": { "AUTOPOSTING_API_KEY": "sk-social-your-key" }
}
}
}
Then tell Claude: “Create a post on my-brand saying ‘Hello from Autoposting!’ and publish it to X and LinkedIn.” Post published. Verify in your dashboard or with ap posts show <post-id>.
Next steps
Authentication
API keys, scopes, and rate limiting.
Core Concepts
Brands, Posts, Platforms, Clips, and Agents explained.
CLI Commands
Full reference for all 61 CLI commands.
MCP Server
51 tools for Claude and AI assistants.