360 Secure SkillHub
360 安全技能中心

PostLake accounts

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

分类:营销
postlake
postlake
热度 10.00
最近更新 2026-09-01 02:35:55

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add postlake/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.