The X (Twitter) API for your agent, without a X developer app.
Publish posts with text, images and videos on X (Twitter) from Claude Code, Codex, Cursor, n8n or your own code. Try it free with a sandbox key: no sign-up, no card.
From your agent (MCP)
claude mcp add --transport http wyro https://wyroapi.com/mcp
Post on X (Twitter) "Our agent posts on its own now." and show me the preview.
Without a key the agent creates a free sandbox key by itself. Sandbox posts are simulated and return a public preview link showing how the post would look on X (Twitter).
From your code (REST)
curl -X POST https://wyroapi.com/v1/sandbox
curl -X POST https://wyroapi.com/v1/posts \
-H "Authorization: Bearer $WYRO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"text":"Our agent posts on its own now.","platforms":["twitter"]}'The response includes the preview link and the next step for the agent. Errors come with a fix field in English and Spanish.
X (Twitter) requirements
- Image or video optional.
- Up to 280 characters of text.
Go live
When you are ready, the agent gives you a link: you sign in, authorize your X (Twitter) account, and the same key starts publishing for real. Real accounts get a 7-day trial; then USD 5 per connected account per month.
FAQ
What if the text is longer than 280 characters?
The API returns text_too_long with each network's limit and how to fix it, so the agent can shorten it.
Can I schedule posts on X?
Yes. Send scheduled_at as an ISO 8601 date; in the MCP server, use the programar_para argument.
Do I need to pay for the X API?
No. You pay per connected account; X API access is on us.
Other networks: Instagram · TikTok · Facebook · LinkedIn · Threads · YouTube · Pinterest · Overview · En español