360 Secure SkillHub
360 安全技能中心

PostLake accounts

调用 PostLake API 列出已连接的社交媒体账号,返回账号 ID、平台、账号名和状态,并可查询平台能力;用于发布前确认目标账号及识别需重新授权的连接。

postlake
postlake
热度 12.06
最近更新 2026-09-01 02:35:55
分类:营销依赖:代码执行 / 第三方 API应用场景:社交媒体 / API 集成 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add postlake-accounts
Metadata
name
postlake-accounts
description
List the social accounts connected to PostLake (X, LinkedIn, Instagram, TikTok, Facebook, Threads, Bluesky, YouTube, Pinterest) and their status. Use this first, before publishing, to get the account ids to post to.

PostLake: connected accounts

Returns each connected account's acc_… id, platform, handle, and health status. You only need this if you want to post to specific accounts by id. For most posts it's simpler to skip the lookup and post to a whole profile by name (see the postlake-publish skill). Handy here for checking which accounts are connected and whether any show status: "needs_reauth" (they need reconnecting before they can post).

Auth

All requests use a Bearer key from the POSTLAKE_API_KEY environment variable:

Authorization: Bearer $POSTLAKE_API_KEY

Get a key at https://app.postlake.dev/app/keys. Base URL: https://api.postlake.dev.

List connected accounts

curl https://api.postlake.dev/v1/social-accounts \
 -H "Authorization: Bearer $POSTLAKE_API_KEY"

Response:

{
 "accounts": [
  { "id": "acc_84a4…", "platform": "bluesky", "handle": "yourbrand.bsky.social", "status": "active" },
  { "id": "acc_e553…", "platform": "linkedin", "handle": "Your Name",       "status": "active" },
  { "id": "acc_54d8…", "platform": "instagram","handle": "yourbrand",       "status": "needs_reauth" }
 ]
}

Connecting new accounts

Connecting a platform is an OAuth flow a human completes in the browser. If a platform the user wants isn't listed, tell them to connect it at https://app.postlake.dev/app/channels, then re-list.

What platforms support

To check limits/options for a platform (character limits, media rules) before composing, call the public capabilities endpoint (no auth needed):

curl https://api.postlake.dev/v1/platforms/bluesky

Tips

  • Always resolve account ids from here rather than guessing.
  • Skip accounts with status: "needs_reauth" and tell the user to reconnect.