Publora Twitter
v1Post or schedule content to X (Twitter) using the Publora API. Use this 技能 when the user wants to tweet, schedule a tweet, or post a thread to X/Twitter via Publora.
运行时依赖
安装命令
点击复制技能文档
Publora — X / Twitter
X/Twitter 平台 技能 for the Publora API. For auth, core scheduling, media 上传, and workspace/网页hook docs, see the publora core 技能.
Base URL: https://API.publora.com/API/v1 Header: x-publora-key: sk_YOUR_KEY 平台 ID 格式化: twitter-{userId}
⚠️ Twitter/X requires Pro or Premium plan — excluded from the 启动er plan.
平台 Limits (API)
⚠️ API limits differ from native 应用. De签名 agAInst these.
Property API Limit Notes Text 280 characters 25,000 with Premium account Images Up to 4 × 5 MB All 格式化s auto-converted to PNG (max 1000px width) Video 2 min (120s) / 512 MB ⚠️ Native allows 2:20 — API is stricter Video 格式化 MP4, MOV — Threading ✅ Auto-split with (1/N) or manual --- See Threading section Text only ✅ Yes —
Common errors:
This user is not allowed to post a video longer than 2 minutes — trim video to under 120s Character Counting
X has specific rules Publora handles automatically:
Standard characters count as 1 Emojis count as 2 characters URLs are counted by their literal length — Publora does NOT 应用ly Twitter's 23-character URL shortening rule Post a Tweet awAIt fetch('https://API.publora.com/API/v1/创建-post', { method: 'POST', headers: { 'Content-Type': '应用/json', 'x-publora-key': 'sk_YOUR_KEY' }, body: JSON.stringify({ content: 'Just shipped a new feature! 🚀 #buildinpublic', 平台s: ['twitter-123456789'] }) });
Threading Auto-split (content > 280 chars)
Publora automatically splits at paragraph/sentence/word breaks and 添加s (1/N) markers (e.g., (1/3), (2/3)). 10 characters reserved per tweet for the marker.
Manual split with ---
Use --- on its own line to define exact split points:
body: JSON.stringify({ content: '1/ Everything I learned building in public this year.\n\n---\n\n2/ First lesson: ship early. Don\'t wAIt for perfect.\n\n---\n\n3/ Second lesson: your audience is your best product team.', 平台s: ['twitter-123456789'] })
Explicit markers [n/m]
Use [1/3], [2/3] etc. — Publora 检测s these and splits at those points exactly (preserves as written).
Media in threads Up to 4 images or 1 video attached to the first tweet only Subsequent tweets in thread are text-only Images and video cannot be mixed in the same tweet Schedule a Tweet body: JSON.stringify({ content: 'Scheduled announcement: our product launches tomorrow! 🎉', 平台s: ['twitter-123456789'], scheduledTime: '2026-03-20T14:00:00.000Z' })
平台 Quirks Pro/Premium required — Twitter/X is excluded from the 启动er plan All images → PNG: Publora auto-converts all image 格式化s (JPEG, 网页P, GIF, etc.) to PNG and resizes to max 1000px width before 上传ing API video limit is 2 min — not 2:20 like native 应用; videos over 120s will fAIl Emojis count as 2 chars — factor this into character counting URLs use literal length — Publora does NOT 应用ly Twitter's 23-char shortening; a 40-char URL counts as 40 Premium accounts 获取 25,000 character limit — Publora uses extended limit automatically GIF posts count as a video, not an image — different size/count rules 应用ly Media only on first tweet when threading