当前位置: 首页 > Skill >

Postiz Extended

Postiz Extended

Postiz Extended

通过 Postiz API(支持自托管或云端)安排和管理社交媒体帖子。直接 API 集成,无 n8n 依赖。支持 X/Twitter、LinkedIn、Bluesky 等平台,遵循特定字数限制。具备去重、排程、媒体上传及推文串创建功能。支持向 28+ 个渠道排程发帖、单次调用多平台发布、查询及管理排程、媒体上传、状态管理及去重工作流。适用于社交媒体排程、多平台内容创作、日历管理及工作流自动化。

2026.11.27 946
获取Skill文件查看使用说明
作 者:林景 许可证: 更新时间:2026.11.27
本文目录展开

Postiz Social Media Scheduler

Direct API integration for social media posting. No n8n workflows needed.

Setup

Required Environment Variables

# Core configuration
export POSTIZ_URL="https://your-postiz-instance.com"
export POSTIZ_EMAIL="your@email.com"
export POSTIZ_PASSWORD="your-password"

# Integration IDs (get from Postiz dashboard → Integrations)
export POSTIZ_X_ID="your-x-integration-id"
export POSTIZ_LINKEDIN_ID="your-linkedin-integration-id"
export POSTIZ_BLUESKY_ID="your-bluesky-integration-id"

To find your integration IDs:

  1. Go to your Postiz dashboard
  2. Navigate to Integrations or Channels
  3. Each connected account shows an ID (or use the API: GET /api/integrations/list)

Platform Limits

Platform Character Limit Notes
X/Twitter 280 Links count as 23 chars (t.co shortening)
LinkedIn 3,000 First 140 chars show in preview
Bluesky 300 Growing tech/developer audience

Platform Content Guidelines

X/Twitter (280 chars)

  • Short, punchy content
  • 1-2 hashtags max
  • Threads for longer content (multiple tweets)

LinkedIn (3,000 chars)

  • Professional tone
  • Can be longer-form
  • Hashtags at end (3-5 recommended)
  • First 140 chars show in preview — make them count!

Bluesky (300 chars)

  • Similar to X but slightly more room
  • No official hashtag support (use sparingly)
  • Growing tech/developer audience

Authentication

# Login and save cookie (required before any API call)
curl -s -c /tmp/postiz-cookies.txt 
  "$POSTIZ_URL/api/auth/login" 
  -H 'Content-Type: application/json' 
  -d "{"email":"$POSTIZ_EMAIL","password":"$POSTIZ_PASSWORD","provider":"LOCAL"}"

Cookie expires periodically. Re-run login if you get 401 errors.

Find Next Available Slot

curl -s -b /tmp/postiz-cookies.txt 
  "$POSTIZ_URL/api/posts/find-slot/$POSTIZ_X_ID"

Returns the next open time slot for a given channel. Useful for auto-scheduling without conflicts.

Upload Media from URL

curl -s -b /tmp/postiz-cookies.txt 
  "$POSTIZ_URL/api/media/upload-from-url" 
  -H 'Content-Type: application/json' 
  -d '{"url": "https://example.com/image.png"}'

Creating Posts

Schedule a Post (Single Platform)

curl -s -b /tmp/postiz-cookies.txt 
  "$POSTIZ_URL/api/posts" 
  -H 'Content-Type: application/json' 
  -d "{
    "type": "schedule",
    "date": "2026-02-05T15:00:00Z",
    "posts": [{
      "integration": {"id": "$POSTIZ_X_ID"},
      "value": [{"content": "Your tweet here (max 280 chars)", "image": []}],
      "settings": {"__type": "x"}
    }]
  }"

Multi-Platform Post (Adapted Content)

curl -s -b /tmp/postiz-cookies.txt 
  "$POSTIZ_URL/api/posts" 
  -H 'Content-Type: application/json' 
  -d "{
    "type": "schedule",
    "date": "2026-02-05T15:00:00Z",
    "posts": [
      {
        "integration": {"id": "$POSTIZ_X_ID"},
        "value": [{"content": "Short X version (280 chars max)", "image": []}],
        "settings": {"__type": "x"}
      },
      {
        "integration": {"id": "$POSTIZ_LINKEDIN_ID"},
        "value": [{"content": "Longer LinkedIn version with more context and professional tone. Can be up to 3000 characters.", "image": []}],
        "settings": {"__type": "linkedin"}
      },
      {
        "integration": {"id": "$POSTIZ_BLUESKY_ID"},
        "value": [{"content": "Bluesky version (300 chars max)", "image": []}],
        "settings": {"__type": "bluesky"}
      }
    ]
  }"

Post Types

  • schedule — Auto-publish at specified date/time
  • draft — Save for review (won't auto-publish)
  • now — Publish immediately

Listing & Querying Posts

Get Posts by Date Range (Required!)

curl -s -b /tmp/postiz-cookies.txt 
  "$POSTIZ_URL/api/posts?startDate=2026-02-01T00:00:00Z&endDate=2026-02-08T00:00:00Z" 
  | jq '.posts[] | {id, state, publishDate, platform: .integration.providerIdentifier, content: .content[0:60]}'

Check for Duplicates Before Posting

# Get recent posts and check content similarity
curl -s -b /tmp/postiz-cookies.txt 
  "$POSTIZ_URL/api/posts?startDate=2026-02-01T00:00:00Z&endDate=2026-02-08T00:00:00Z" 
  | jq -r '.posts[] | "(.integration.providerIdentifier): (.content[0:80])"'

Post States

State Description
QUEUE Scheduled, waiting to publish
PUBLISHED Successfully posted
ERROR Failed to publish
DRAFT Saved but not scheduled

Media Upload

Upload Image

# Upload returns {id, path}
curl -s -b /tmp/postiz-cookies.txt 
  "$POSTIZ_URL/api/media/upload-simple" 
  -F 'file=@/path/to/image.png'

Use in Post

"value": [{
  "content": "Post with image",
  "image": [{"id": "MEDIA_ID", "path": "/uploads/..."}]
}]

Twitter/X Threads

For longer content on X, create a thread:

"value": [
  {"content": "Tweet 1/3: Introduction to the topic...", "image": []},
  {"content": "Tweet 2/3: The main point explained...", "image": []},
  {"content": "Tweet 3/3: Conclusion and call to action.", "image": []}
]

Managing Posts

Delete Post

curl -s -b /tmp/postiz-cookies.txt -X DELETE 
  "$POSTIZ_URL/api/posts/POST_ID"

Update Schedule

curl -s -b /tmp/postiz-cookies.txt -X PUT 
  "$POSTIZ_URL/api/posts/POST_ID/date" 
  -H 'Content-Type: application/json' 
  -d '{"date": "2026-02-06T10:00:00Z"}'

Best Practices

Avoid Duplicates

  1. Always query existing posts before creating new ones
  2. Use unique identifiers in content (dates, specific references)
  3. Check both QUEUE and PUBLISHED states

Scheduling

  • Space posts at least 2-4 hours apart per platform
  • Best times: 9 AM, 12 PM, 5 PM (audience timezone)
  • Avoid posting same content to all platforms simultaneously

Content Adaptation

Don't just truncate! Rewrite for each platform:

  • X: Hook + key insight + CTA
  • LinkedIn: Context + value + engagement question
  • Bluesky: Casual tech-friendly tone

Helper Scripts

Post to Multiple Platforms

# Single platform
uv run scripts/post.py 
  --platform x 
  --content "Your tweet here" 
  --schedule "2026-02-05T15:00:00Z"

# Multi-platform with different content
uv run scripts/post.py 
  --x "Short X version" 
  --linkedin "Longer LinkedIn version with more detail" 
  --bluesky "Bluesky version" 
  --schedule "2026-02-05T15:00:00Z"

# Post immediately
uv run scripts/post.py 
  --platform x 
  --content "Posting now!" 
  --now

# Validate without posting
uv run scripts/post.py 
  --x "Test content" 
  --validate

Check for Duplicates

# Check last 30 days
uv run scripts/check_duplicates.py

# Check last 7 days
uv run scripts/check_duplicates.py --days 7

# Check if specific content would be duplicate
uv run scripts/check_duplicates.py --content "Your proposed post content"

Troubleshooting

401 Unauthorized

Re-run the login curl command to refresh cookie.

Post Not Publishing

  1. Check state is QUEUE not DRAFT
  2. Verify date is in the future
  3. Check integration is still connected in UI

Duplicate Posts

Always check existing posts before creating. The API doesn't deduplicate automatically.

Missing Environment Variables

Scripts will tell you which env vars are missing. Set them in your shell or .env file:

export POSTIZ_URL="https://your-postiz.example.com"
export POSTIZ_EMAIL="your@email.com"
export POSTIZ_PASSWORD="your-password"
export POSTIZ_X_ID="your-integration-id"

推荐文章

更多
PHP时间戳与日期字符串相互转换方法详解

本文介绍PHP中时间数值(Unix时间戳)与日期字符串之间的相互转换方法。通过strtotime和date函数,实现将当前时间、指定日期转换为时间戳,以及将时间戳格式化为可读的日期时间字符串,并提供相关在线计算工具推荐。

2025.11.30 1,034
PHP日期转时间戳时区偏差怎么解决

在 PHP 中将日期字符串转换为时间戳时,若未显式指定时区,默认使用脚本配置的 date.timezone 或系统时区。当服务器时区与业务逻辑预期(如 UTC )不一致时,会产生偏差。解决核心是确保输入字符串携带明确时区信息,或在转换前统一设置时区上下文。

2026.10.24 1,031
PHP跨域配置:怎么安全地允许指定域名而非使用通配符

在 PHP 中安全地允许指定域名跨域,核心是解析请求头中的 Origin ,验证其是否在白名单内,然后动态设置 Access-Control-Allow-Origin 响应头。不要使用通配符 * ,也不要硬编码单一域名。

2025.03.29 1,019
JavaScript中利用replace结合正则实现replaceAll效果

JavaScript原生仅支持replace()进行单次或全局替换,缺乏类似Java的replaceAll()便捷方法。本文总结四种在JS中实现全量替换的方案:使用带g标志的正则、带gm标志的正则、扩展String原型以及split后join。通过对比代码示例,展示各方法的实现细节与适用场景,帮助开发者根据需求选择最优解。

2025.04.29 1,017
OpenAI的Jalapeno芯片未落地,教你分辨300兆瓦算力消息

OpenAI计划在SB Energy租赁的数据中心部署约300兆瓦自研Jalapeno推理芯片,但目前双方仍处于洽谈阶段,交易细节与上线时间表均未公布。本文带你按报道原文核实项目所处阶段,厘清芯片发布、电力功率与实际推理算力的边界,并将融资意向与签约、开工、投运节点分开追踪,避免误将规划容量计入现有算力。

2026.12.02 1,014
PHP实现基础文件上传:HTML表单与$_FILES处理流程

在 HTML 表单中设置 enctype="multipart/form-data" ,并在 PHP 后端通过 $_FILES 数组接收文件,调用 move_uploaded_file() 将临时文件移动到目标目录即可完成上传。

2026.09.07 1,014
Skill 文件
  • SKILL.md
    • Postiz Social Media Scheduler
    • Setup
      • Required Environment Variables
    • Platform Limits
    • Platform Content Guidelines
      • X/Twitter (280 chars)
      • LinkedIn (3,000 chars)
      • Bluesky (300 chars)
    • Authentication
    • Find Next Available Slot
    • Upload Media from URL
    • Creating Posts
      • Schedule a Post (Single Platform)
      • Multi-Platform Post (Adapted Content)
      • Post Types
    • Listing & Querying Posts
      • Get Posts by Date Range (Required!)
      • Check for Duplicates Before Posting
    • Post States
    • Media Upload
      • Upload Image
      • Use in Post
    • Twitter/X Threads
    • Managing Posts
      • Delete Post
      • Update Schedule
    • Best Practices
      • Avoid Duplicates
      • Scheduling
      • Content Adaptation
    • Helper Scripts
      • Post to Multiple Platforms
      • Check for Duplicates
    • Troubleshooting
      • 401 Unauthorized
      • Post Not Publishing
      • Duplicate Posts
      • Missing Environment Variables

相关 Skill

更多
service-qa-coach service-qa-coach Review support quality for chat, email, phone, social DM, or marketplace service teams. Use when a team needs a QA scorecard, failure-mode analysis, coaching plan, calibration checklist, or service-improvement brief without live ticketing, CRM, or contact-center system access.
高中数学作业批改助手 高中数学作业批改助手 >图片识别 直接读取学生手写作答照片,识别公式、符号、步骤 🧮 自动推导 根据题目自动生成参考答案和评分细则,无需教师预设 📊 逐步给分 每个关键步骤独立评分,体现过程分 📝 结构化报告 输出含识别内容、参考答案、逐步评分、改进建议的完整报告 🗂 批量批改 支持一次性批改多道题,最终汇总得分表
Vibration Analysis Vibration Analysis 分析来自CMS趋势、RMS/峰值、频谱及SCADA报警的风机传动链(主轴、齿轮箱、发电机)振动数据。
Traditional Bone Tool Making Basics Traditional Bone Tool Making Basics Use when you need custom, durable, repairable tools like awls, needles, scrapers, harpoons, or fishing hooks made from local animal bones or antlers and comm...
音频混音工具 音频混音工具 名称:Sound Mixing Tool(标识 sound-mixing-tool) 短简介(≤60字):音乐/音效响度精确对齐 + 融合混音工作流:用 ffmpeg 两段式 loudnorm 把多组素材 LUFS 偏差压到 <0.10,再最小干预融合、导出可进引擎的独立分轨。 标签/关键词:音频混音 响度匹配 LUFS ffmpeg 游戏音频 音效设计 Wwise FMOD 分轨导出 后期处理 触发词:混音 · 响度匹配 · LUFS 对齐 · MIX 版本 · 音乐音效分轨 · 融合 · 不打架 · 不能盖住 适用场景 :游戏音频集成、影视短视频配乐、播客后期