How to use Claude or another AI agent to post on social media
An AI assistant such as Claude can run social media posting when you give it an API key and the API docs: it then schedules posts, checks accounts, reads views and looks at phone screens by calling the same API you would. With Profit Phones you create a key with only the scopes it needs, press "Copy setup for Claude", paste it into Claude, and ask in plain words. Keep a human reviewing what goes out.
On this page
AI assistants have become good at the boring middle of social media work: turning a list of videos into a schedule, checking which accounts are behind, and summarising a week of numbers. What they need is a way to act, and that way is an API.
This guide explains how an AI agent can run posting on real phones through the Profit Phones API, how to set it up with Claude, what to ask it, and how to keep it safe.
What does an AI agent for social media posting actually do?
An AI agent for social media posting is an assistant, such as Claude, that is allowed to call a posting API on your behalf. You ask in plain words, it works out which API calls to make, makes them, and reports back.
The agent does not log in to Instagram or TikTok itself. In the Profit Phones setup, the posts are made by real phones running the official apps. The agent only talks to the dashboard's API: it creates posts, reads results and checks phones, within the permissions of its key.
How does the Profit Phones API work?
The API is a REST API at https://profitphones.io/api/v1. Every request carries a key, and each key has scopes that decide what it may do. A key only ever sees its own workspace, and it is limited to 300 requests per minute.
The docs are written in plain text for AI at /docs/api.md, and as a normal web page at /docs/api. That plain text version is what you hand to the assistant.
| Scope | Lets the agent |
|---|---|
accounts:read | See accounts, clients and which phone each account is on |
accounts:write | Add, change, move or remove accounts; check a phone for accounts |
phones:read | See phones, their status, screenshots, notes and proxies |
phones:control | Tap, swipe, type and open apps on phones; rename phones; manage notes |
posts:read | See posts and their results |
posts:write | Create, schedule, change and cancel posts |
library:read and library:write | See, upload, move and delete Library files |
analytics:read | Read views, followers and best videos |
automations:read and automations:write | See or change auto posting rules and warm up plans |
Team, billing and API keys can never be reached with a key, whatever scopes it has.
How do you connect Claude to Profit Phones?
The setup takes a few minutes and needs the Full plan, which includes API access.
- Create a key with only the scopes it needs. In the dashboard, open API and make a new key. For an assistant that schedules posts and reports numbers,
accounts:read,library:read,posts:read,posts:writeandanalytics:readare usually enough. Leave outphones:controland the write scopes you do not need. - Press "Copy setup for Claude". The dashboard copies the key and the docs together in a form ready to paste.
- Paste it into Claude (or another AI assistant or agent) at the start of a conversation or into a project's instructions.
- Ask in plain words. The assistant reads the docs, checks its scopes with
GET /me, and starts working.
For assistants that support the Model Context Protocol, there is also an MCP connector endpoint, so the same actions appear as tools. The key and its scopes apply in the same way.
What can you ask it?
Some prompts that map well onto the API:
- "Schedule this week's videos for @x at 9 and 18." The agent finds the account, looks at that account's Library folder, and creates posts at those hours. You can say which time zone you mean.
- "Which account had the most views in the last 7 days?" It reads analytics and answers with the account and the numbers.
- "Take a screenshot of phone 4." With
phones:read, it fetches the current screen image of that phone, which is handy for checking a stuck login. - "Which posts failed today and why?" It lists failed and needs review posts with their error.
- "Set @x to post 3 a day between 10 and 20, New York time." With
automations:write, it creates an auto posting rule for the account. - "Which phones are offline?" It reads the watchdog, which lists every phone's health in plain words with a suggested fix.
The agent is using the same API you could use yourself. It is fast at the repetitive parts, but it only knows what the API tells it, and it should be asked to confirm before large changes.
What does an API call look like?
Here is a single post scheduled with curl. It sends one video from a direct link to one account, with a caption and a time in UTC. The time field is scheduled_at, in ISO 8601.
curl -X POST https://profitphones.io/api/v1/posts \
-H "Authorization: Bearer pfk_your_key_here" \
-H "Content-Type: application/json" \
-d '{
"account_id": 12,
"video_url": "https://example.com/videos/clip-01.mp4",
"caption": "Three ways to style winter boots",
"scheduled_at": "2026-11-16T14:00:00Z",
"external_id": "boots-clip-01-acct-12"
}'
The external_id makes retries safe: sending the same id again returns the existing post instead of creating a duplicate, which matters when an agent retries after a network error. The response includes the post's status, which moves from queued to running to posted, or to failed or needs review.
The docs also describe uploading files to the Library, turning Library videos into spaced posts, and creating auto posting rules. A typical agent flow is: check scopes with GET /me, list accounts that can post, upload or pick videos, schedule, then watch post status and analytics.
How do you keep humans in the loop?
An agent that can post is an agent that can post the wrong thing. A few habits keep that risk small.
- Scope tightly. Give each key only what its job needs. A reporting assistant needs read scopes only.
- Separate keys per job. One key for scheduling, another for reporting, so you can remove one without breaking the other.
- Review before it goes out. Ask the agent to list what it scheduled, with captions and times, and check it before the first post time. Scheduled posts can be changed or cancelled until they go out.
- Keep content decisions human. Let people choose and approve the videos; let the agent handle the scheduling and the reporting.
- Remove keys you no longer use from the API section of the dashboard, and replace any key that may have been shared by mistake.
- Follow platform rules. An agent does not change what Instagram, TikTok and YouTube allow. Post your own or your clients' content, and never use it for fake engagement or spam.
Where does Profit Phones fit?
Profit Phones is phone farm software that runs real iPhones and Android phones from a browser. The phones post Instagram Reels (Android and iPhone), Instagram Stories (Android), and TikTok and YouTube Shorts (iPhone today, Android on the way), read views and followers every hour, and report their own health. The API and MCP connector expose that to an AI assistant, within the scopes you give the key.
For the bigger picture, our guide to phone farm software explains what the software layer does, and controlling multiple phones from one computer covers the setup. Running many accounts with or without an agent is covered in how to manage multiple social media accounts.
Questions people ask
Can Claude post to Instagram and TikTok for me?
Claude cannot post on its own, but it can call an API that does. With a Profit Phones API key and the docs, Claude can schedule videos to your accounts, which are then posted by real phones through the Instagram, TikTok and YouTube apps.
Is there an MCP server for posting from phones?
Yes. Profit Phones has an MCP connector endpoint alongside its REST API, so assistants that support MCP can use the same actions as tools. Both respect the scopes on your key.
Is it safe to give an AI agent my social media accounts?
You never give the agent your social media passwords. It gets an API key limited to the scopes you choose, and team, billing and keys can never be reached with a key. Start with read only scopes, review its scheduled posts, and remove the key when you no longer need it.
Which plan includes the Profit Phones API?
API access is part of the Full plan at $249 per month, which also includes team access and up to 100 phones. Details are on the pricing section.
What can an AI agent not do through the API?
A key can only do what its scopes allow and only sees its own workspace. It cannot manage the team, billing or API keys. It also cannot make content good or exempt you from platform rules, so humans still decide what gets posted.
About Profit Phones
Profit Phones is phone farm software that runs real iPhones and Android phones from your browser at profitphones.io. You plug your phones into a computer, and the dashboard shows every screen live, posts Reels, TikToks and Shorts to the accounts on each phone, checks which accounts are logged in and reads views and followers from the phones. Plans start at $39 a month for up to 5 phones, with a 3-day free trial.
Run every phone from one tab
Connect the phones you already have and post from real devices today. The first 3 days are free.