Claude Code
Post to social media directly from Claude Code. Claude can create posts, upload media, and manage your social accounts using the SocialSyncerAPI REST endpoints.
Setup
Add your SocialSyncerAPI key to your environment:
export SOCIALAPI_KEY="sk_your_api_key" Post from Claude Code
Ask Claude to post content:
> Post "Hello from Claude Code!" to Instagram and Twitter Claude will call the SocialSyncerAPI:
curl -X POST https://api.socialsyncerapi.com/v1/posts \
-H "Authorization: Bearer $SOCIALAPI_KEY" \
-H "Content-Type: application/json" \
-d '{
"content": "Hello from Claude Code!",
"platforms": [
{"platform": "instagram", "accountId": "ig_123"},
{"platform": "twitter", "accountId": "tw_456"}
],
"publishNow": true
}' Upload Media
> Upload this image to S3 and post it to Instagram
> File: ~/photos/sunset.jpg Claude will:
- Get a presigned URL:
POST /v1/media/presign - Upload the file:
PUT presigned_url - Create the post with the public URL
Schedule Posts
> Schedule a post for tomorrow at 10am EST:
> "New product launch! Check it out at example.com"
> Post to Instagram, Facebook, and Threads Connect Accounts
> Connect my Instagram account Claude will generate an OAuth URL and guide you through the connect flow.
Full Workflow Example
> I want to post a carousel to Instagram with these images:
> - ~/photos/product1.jpg
> - ~/photos/product2.jpg
> - ~/photos/product3.jpg
> Caption: "Our new collection just dropped 🔥"
> Also post to Threads with the same content
> Schedule for Friday at 2pm PST Tips
- Claude can list your connected accounts:
GET /v1/accounts - Claude can check post status:
GET /v1/posts/{postId} - Claude can retry failed posts:
POST /v1/posts/{postId}/retry - Store your API key in
~/.bashrcor~/.zshrcfor persistence