全平台社媒智能调度中枢
简介
Publer官方API集成技能,支持跨平台内容排期、媒体管理与数据分析,助力团队高效运营多账号矩阵。
原始描述
Use this skill whenever the user wants to interact with the Publer API — including managing social media posts (create, schedule, update, delete, approve), b...
通过你的 Agent 添加
安装目录:publer-api/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
中文使用说明 来自收录源
核心用法
Publer API Skill 是一套完整的社交媒体管理接口封装,专为 Business 计划用户提供。用户可通过自然语言指令,完成从内容创作、多平台分发、定时发布到数据追踪的全链路操作。
主要功能模块包括:
- 内容排期与发布:支持定时发布(
scheduled_at)、即时发布(publish now)及草稿保存,可针对不同平台定制差异化文案(Facebook长文、Twitter短文、LinkedIn专业语调等) - 媒体库管理:直接上传本地文件(multipart/form-data)或远程URL导入,自动校验各平台格式兼容性
- 账号与Workspace管理:多团队、多品牌账号的统一视图与切换
- 深度数据分析:覆盖账号级趋势图表、单帖表现洞察、Hashtag效果追踪、最佳发布时间推荐及成员绩效统计
- 竞品监控:竞品账号添加、对标数据对比与表现分析
所有操作均遵循异步任务模式,创建帖子或URL上传媒体后需轮询 job_status 接口确认完成状态,避免阻塞。
显著优点
- 跨平台原生适配:单一接口同时调度 Facebook、Instagram、Twitter/X、LinkedIn、Pinterest、TikTok、YouTube、Google Business 等主流平台,支持按平台定制内容格式
- 企业级协作架构:Workspace-Account 双层权限模型,适配多品牌、多市场、多代理机构的复杂组织需求
- 数据驱动优化:内置"最佳发布时间"算法、Hashtag绩效热力图、竞品对标分析,降低运营决策的试错成本
- 媒体处理智能化:上传时自动检测视频时长、图片尺寸、文件大小是否符合各平台限制,前置拦截违规内容
- 灵活的内容策略:支持"default"通用内容一键多平台分发,也支持精细化定制,兼顾效率与个性化
潜在缺点与局限性
- 付费门槛明确:仅限 Business 计划用户,基础版无法使用
- Threads平台受限:API 层面不支持 Threads 的定时发布,仅能即时发布
- 数据时效性滞后:分析数据约24小时同步一次,非实时流,不适合需要分钟级监控的 crisis management 场景
- 速率限制严格:100请求/2分钟,大规模批量操作需实现指数退避重试机制
- 认证格式特殊:
Bearer-API 而非标准 Bearer,易因格式错误导致401,且需同时维护 Workspace ID 头部
- 异步复杂性:所有创建类操作均为异步,需额外实现轮询逻辑,增加集成复杂度
适合的目标群体
- 社交媒体运营团队:管理5个以上品牌账号、需跨平台批量排期的专业 SMM 团队
- 数字营销代理机构:为多个客户代运营,需要 Workspace 隔离与成员权限分级的服务商
- 内容创作者与MCN:依赖数据洞察优化发布策略、追踪 Hashtag 效果与竞品动态的个人或机构
- 电商与DTC品牌:需将社媒内容日历与促销节奏同步、监控转化漏斗的营销团队
使用风险与注意事项
风险类型
具体说明
认证安全
API Key 与 Workspace ID 需严格保密,一旦泄露可能导致账号被恶意操作;切勿在日志中硬编码
速率限制
高频调用易触发 429,建议在应用层实现令牌桶或指数退避
数据一致性
异步任务可能"complete"但包含 payload.failures,需显式检查部分失败场景
平台政策
跨平台内容需遵守各平台社区准则,自动化发布不免除内容合规责任
服务可用性
依赖 Publer 平台稳定性,5xx错误时应优雅降级并提示用户重试
时区处理
scheduled_at 需 ISO 8601 带时区格式,时区误解可能导致非预期发布时间
- 付费门槛明确:仅限 Business 计划用户,基础版无法使用
- Threads平台受限:API 层面不支持 Threads 的定时发布,仅能即时发布
- 数据时效性滞后:分析数据约24小时同步一次,非实时流,不适合需要分钟级监控的 crisis management 场景
- 速率限制严格:100请求/2分钟,大规模批量操作需实现指数退避重试机制
- 认证格式特殊:
Bearer-API而非标准Bearer,易因格式错误导致401,且需同时维护 Workspace ID 头部 - 异步复杂性:所有创建类操作均为异步,需额外实现轮询逻辑,增加集成复杂度
适合的目标群体
- 社交媒体运营团队:管理5个以上品牌账号、需跨平台批量排期的专业 SMM 团队
- 数字营销代理机构:为多个客户代运营,需要 Workspace 隔离与成员权限分级的服务商
- 内容创作者与MCN:依赖数据洞察优化发布策略、追踪 Hashtag 效果与竞品动态的个人或机构
- 电商与DTC品牌:需将社媒内容日历与促销节奏同步、监控转化漏斗的营销团队
使用风险与注意事项
风险类型
具体说明
认证安全
API Key 与 Workspace ID 需严格保密,一旦泄露可能导致账号被恶意操作;切勿在日志中硬编码
速率限制
高频调用易触发 429,建议在应用层实现令牌桶或指数退避
数据一致性
异步任务可能"complete"但包含 payload.failures,需显式检查部分失败场景
平台政策
跨平台内容需遵守各平台社区准则,自动化发布不免除内容合规责任
服务可用性
依赖 Publer 平台稳定性,5xx错误时应优雅降级并提示用户重试
时区处理
scheduled_at 需 ISO 8601 带时区格式,时区误解可能导致非预期发布时间
| 风险类型 | 具体说明 |
|---|---|
| 认证安全 | API Key 与 Workspace ID 需严格保密,一旦泄露可能导致账号被恶意操作;切勿在日志中硬编码 |
| 速率限制 | 高频调用易触发 429,建议在应用层实现令牌桶或指数退避 |
| 数据一致性 | 异步任务可能"complete"但包含 payload.failures,需显式检查部分失败场景 |
| 平台政策 | 跨平台内容需遵守各平台社区准则,自动化发布不免除内容合规责任 |
| 服务可用性 | 依赖 Publer 平台稳定性,5xx错误时应优雅降级并提示用户重试 |
| 时区处理 | scheduled_at 需 ISO 8601 带时区格式,时区误解可能导致非预期发布时间 |
建议生产环境使用前,先在 sandbox workspace 验证完整工作流,尤其测试媒体上传-发布-数据分析的端到端闭环。
技能正文
name: publer-api
description: >
Use this skill whenever the user wants to interact with the Publer API — including
managing social media posts (create, schedule, update, delete, approve), browsing or
uploading media, viewing workspaces and connected social accounts, or retrieving
analytics. Trigger this skill any time the user mentions Publer, wants to schedule
or manage posts across social platforms via Publer, asks about Publer analytics or
insights, needs to work with the Publer media library, or wants to analyze competitors
or hashtag performance via Publer. Also trigger when the user asks to automate social
media workflows that involve Publer, even if they don't explicitly say "Publer API".
Publer API Skill
This skill enables you to interact with all Publer API endpoints.
Business plan required. The Publer API is only available to Business plan users.
Setup
Base URL: https://app.publer.com/api/v1
Required headers on almost every request:
Authorization: Bearer-API YOUR_API_KEY
Publer-Workspace-Id: YOUR_WORKSPACE_ID
Content-Type: application/json
Note: Bearer-API (not Bearer) is the correct format.
If the user hasn't provided their API key, ask for it before making any calls. Never hardcode or expose API keys.
API key scopes: workspaces, accounts, posts, media, analytics
Quick Reference: All Endpoints
Area
Method
Endpoint
Users
GET
/users/me
Workspaces
GET
/workspaces
Accounts
GET
/accounts
Posts
GET
/posts
Posts — Schedule/Draft
POST
/posts/schedule
Posts — Publish Now
POST
/posts/schedule/publish
Posts — Update
PUT
/posts/{id}
Posts — Delete
DELETE
/posts
Job Status
GET
/job_status/{job_id}
Media — List
GET
/media
Media — Direct Upload
POST
/media
Media — URL Upload
POST
/media/from-url
Media Options
GET
/workspaces/{workspace_id}/media_options
Analytics — Charts List
GET
/analytics/charts
Analytics — Chart Data
GET
/analytics/:account_id/chart_data
Analytics — Post Insights
GET
/analytics/:account_id/post_insights
Analytics — Hashtag Insights
GET
/analytics/:account_id/hashtag_insights
Analytics — Hashtag Posts
GET
/analytics/:account_id/hashtag_performing_posts
Analytics — Best Times
GET
/analytics/:account_id/best_times
Analytics — Members
GET
/analytics/members
Competitors — List
GET
/competitors/:account_id
Competitors — Analytics
GET
/competitors/:account_id/analytics
| Area | Method | Endpoint |
|---|---|---|
| Users | GET | /users/me |
| Workspaces | GET | /workspaces |
| Accounts | GET | /accounts |
| Posts | GET | /posts |
| Posts — Schedule/Draft | POST | /posts/schedule |
| Posts — Publish Now | POST | /posts/schedule/publish |
| Posts — Update | PUT | /posts/{id} |
| Posts — Delete | DELETE | /posts |
| Job Status | GET | /job_status/{job_id} |
| Media — List | GET | /media |
| Media — Direct Upload | POST | /media |
| Media — URL Upload | POST | /media/from-url |
| Media Options | GET | /workspaces/{workspace_id}/media_options |
| Analytics — Charts List | GET | /analytics/charts |
| Analytics — Chart Data | GET | /analytics/:account_id/chart_data |
| Analytics — Post Insights | GET | /analytics/:account_id/post_insights |
| Analytics — Hashtag Insights | GET | /analytics/:account_id/hashtag_insights |
| Analytics — Hashtag Posts | GET | /analytics/:account_id/hashtag_performing_posts |
| Analytics — Best Times | GET | /analytics/:account_id/best_times |
| Analytics — Members | GET | /analytics/members |
| Competitors — List | GET | /competitors/:account_id |
| Competitors — Analytics | GET | /competitors/:account_id/analytics |
For full request/response shapes, read references/api-reference.md.
Workflow
1. Identify the intent
Map the user's request to one or more API calls from the table above.
2. Gather required parameters
- Workspace ID: Needed for most calls. If unknown, call
GET /workspaces first.
- Account IDs: Needed for post creation. If unknown, call
GET /accounts.
- Scheduled posts:
scheduled_at must be ISO 8601 with timezone, at least 1 minute in the future.
- Analytics: Most endpoints need
from/to date range (YYYY-MM-DD). They are co-required.
- Media: Must be uploaded first via
/media or /media/from-url, then referenced by ID in posts.
3. Make the API call
GET /workspaces first.GET /accounts.scheduled_at must be ISO 8601 with timezone, at least 1 minute in the future.from/to date range (YYYY-MM-DD). They are co-required./media or /media/from-url, then referenced by ID in posts.Use the correct HTTP method and headers. POST/PUT use Content-Type: application/json. Media direct upload uses multipart/form-data.
4. Handle async operations
Post creation and URL media uploads are asynchronous:
- Response returns
{ "success": true, "data": { "job_id": "..." } } - Poll
GET /job_status/{job_id}untilstatusis"complete"or"failed" - Check
payload.failureseven on"complete"— partial failures are possible
5. Interpret the response
- 2xx — success. Parse and present relevant fields clearly.
- 401 — ask user to verify API key and confirm
Bearer-API format.
- 403 — check required scope is enabled, and
Publer-Workspace-Id header is present.
- 404 — resource ID is wrong; confirm with user.
- 422 — surface the
errors[] array to user and ask them to correct input.
- 429 — rate limited (100 req/2 min); wait for
X-RateLimit-Reset, use exponential backoff.
- 5xx — Publer server error; suggest retry.
Common Workflows
Schedule a post
- If workspace/account IDs unknown:
GET /workspaces then GET /accounts
POST /posts/schedule with state: "scheduled", network content, and scheduled_at per account
- Poll
GET /job_status/{job_id} until complete
- Confirm back: platform(s), scheduled time, text preview
Publish immediately
Bearer-API format.Publer-Workspace-Id header is present.errors[] array to user and ask them to correct input.X-RateLimit-Reset, use exponential backoff.Schedule a post
GET /workspaces then GET /accountsPOST /posts/schedule with state: "scheduled", network content, and scheduled_at per accountGET /job_status/{job_id} until completeSame as above but use POST /posts/schedule/publish and omit scheduled_at.
Cross-post with platform-specific content
Use multiple keys under networks with per-platform text/type:
"networks": {
"facebook": { "type": "status", "text": "Longer Facebook copy..." },
"twitter": { "type": "status", "text": "Short tweet #hashtag" },
"linkedin": { "type": "status", "text": "Professional LinkedIn copy..." }
}
Upload and attach media
POST /media (multipart) for direct upload, or POST /media/from-url for URL import
- Check
validity object in response for network compatibility
- Reference
media.id in the media[] array inside the network object when creating post
List and review scheduled posts
GET /posts?state=scheduled
- Display as readable list: date, network, text preview
- Offer to edit (
PUT /posts/{id}) or delete (DELETE /posts?post_ids[]=...) on request
Fetch analytics
- For account-level charts:
GET /analytics/charts to get available IDs, then GET /analytics/:account_id/chart_data?chart_ids[]=...&from=...&to=...
- For per-post performance:
GET /analytics/:account_id/post_insights?from=...&to=...
- For hashtag performance:
GET /analytics/:account_id/hashtag_insights
- For best posting times:
GET /analytics/:account_id/best_times?from=...&to=...
Competitor analysis
GET /competitors/:account_id to list competitors
GET /competitors/:account_id/analytics for aggregate metrics
- Use
competitors=true&competitor_id=... on post insights and best times endpoints for deeper comparison
Key Notes & Edge Cases
- Auth header format:
Bearer-API YOUR_KEY — not Bearer
- Workspace in header vs path: Most endpoints use
Publer-Workspace-Id header. Exception: GET /workspaces/{workspace_id}/media_options uses workspace ID in the path.
/users/me and /workspaces do not require the workspace header.
- Pagination: 0-based
page param throughout. Post insights and hashtag insights return 10 per page.
- Date format: ISO 8601 with timezone for timestamps; YYYY-MM-DD for analytics date ranges.
default network key: Use "default" as the network to apply same content to all accounts.
- Threads: Cannot schedule for specific times via API.
- Analytics data freshness: Metrics auto-sync ~every 24h. Not real-time.
- Competitor
sort_type: Lowercase asc/desc — unlike post/hashtag insights which use ASC/DESC.
reach field: May be omitted in members analytics and competitor analytics for unsupported networks — handle gracefully.
Reference Files
references/api-reference.md — Full endpoint docs with all request/response shapes, field enums, media specs, daily post limits, and error handling. Read this when you need exact field names, response shapes, or need to handle a case not covered above.
POST /media (multipart) for direct upload, or POST /media/from-url for URL importvalidity object in response for network compatibilitymedia.id in the media[] array inside the network object when creating postGET /posts?state=scheduled- Display as readable list: date, network, text preview
- Offer to edit (
PUT /posts/{id}) or delete (DELETE /posts?post_ids[]=...) on request
Fetch analytics
- For account-level charts:
GET /analytics/charts to get available IDs, then GET /analytics/:account_id/chart_data?chart_ids[]=...&from=...&to=...
- For per-post performance:
GET /analytics/:account_id/post_insights?from=...&to=...
- For hashtag performance:
GET /analytics/:account_id/hashtag_insights
- For best posting times:
GET /analytics/:account_id/best_times?from=...&to=...
Competitor analysis
GET /competitors/:account_id to list competitors
GET /competitors/:account_id/analytics for aggregate metrics
- Use
competitors=true&competitor_id=... on post insights and best times endpoints for deeper comparison
Key Notes & Edge Cases
- Auth header format:
Bearer-API YOUR_KEY — not Bearer
- Workspace in header vs path: Most endpoints use
Publer-Workspace-Id header. Exception: GET /workspaces/{workspace_id}/media_options uses workspace ID in the path.
/users/me and /workspaces do not require the workspace header.
- Pagination: 0-based
page param throughout. Post insights and hashtag insights return 10 per page.
- Date format: ISO 8601 with timezone for timestamps; YYYY-MM-DD for analytics date ranges.
default network key: Use "default" as the network to apply same content to all accounts.
- Threads: Cannot schedule for specific times via API.
- Analytics data freshness: Metrics auto-sync ~every 24h. Not real-time.
- Competitor
sort_type: Lowercase asc/desc — unlike post/hashtag insights which use ASC/DESC.
reach field: May be omitted in members analytics and competitor analytics for unsupported networks — handle gracefully.
Reference Files
references/api-reference.md — Full endpoint docs with all request/response shapes, field enums, media specs, daily post limits, and error handling. Read this when you need exact field names, response shapes, or need to handle a case not covered above.
GET /analytics/charts to get available IDs, then GET /analytics/:account_id/chart_data?chart_ids[]=...&from=...&to=...GET /analytics/:account_id/post_insights?from=...&to=...GET /analytics/:account_id/hashtag_insightsGET /analytics/:account_id/best_times?from=...&to=...GET /competitors/:account_idto list competitorsGET /competitors/:account_id/analyticsfor aggregate metrics- Use
competitors=true&competitor_id=...on post insights and best times endpoints for deeper comparison
Key Notes & Edge Cases
- Auth header format:
Bearer-API YOUR_KEY — not Bearer
- Workspace in header vs path: Most endpoints use
Publer-Workspace-Id header. Exception: GET /workspaces/{workspace_id}/media_options uses workspace ID in the path.
/users/me and /workspaces do not require the workspace header.
- Pagination: 0-based
page param throughout. Post insights and hashtag insights return 10 per page.
- Date format: ISO 8601 with timezone for timestamps; YYYY-MM-DD for analytics date ranges.
default network key: Use "default" as the network to apply same content to all accounts.
- Threads: Cannot schedule for specific times via API.
- Analytics data freshness: Metrics auto-sync ~every 24h. Not real-time.
- Competitor
sort_type: Lowercase asc/desc — unlike post/hashtag insights which use ASC/DESC.
reach field: May be omitted in members analytics and competitor analytics for unsupported networks — handle gracefully.
Reference Files
references/api-reference.md — Full endpoint docs with all request/response shapes, field enums, media specs, daily post limits, and error handling. Read this when you need exact field names, response shapes, or need to handle a case not covered above.
Bearer-API YOUR_KEY — not BearerPubler-Workspace-Id header. Exception: GET /workspaces/{workspace_id}/media_options uses workspace ID in the path./users/me and /workspaces do not require the workspace header.page param throughout. Post insights and hashtag insights return 10 per page.default network key: Use "default" as the network to apply same content to all accounts.sort_type: Lowercase asc/desc — unlike post/hashtag insights which use ASC/DESC.reach field: May be omitted in members analytics and competitor analytics for unsupported networks — handle gracefully.references/api-reference.md— Full endpoint docs with all request/response shapes, field enums, media specs, daily post limits, and error handling. Read this when you need exact field names, response shapes, or need to handle a case not covered above.
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。