Call the Postproxy API to manage social media posts across multiple platforms (Facebook, Instagram, TikTok, LinkedIn, YouTube, X/Twitter, Threads, Pinterest, Bluesky, Telegram, Google Business).
API key must be set in environment variable POSTPROXY_API_KEY.
Get your API key at: https://app.postproxy.dev/api_keys
Base URL: https://api.postproxy.dev
All requests require a Bearer token:
-H "Authorization: Bearer $POSTPROXY_API_KEY"
# 1. List connected profiles
curl -X GET "https://api.postproxy.dev/api/profiles" \
-H "Authorization: Bearer $POSTPROXY_API_KEY"
# 2. Publish a post to multiple platforms
curl -X POST "https://api.postproxy.dev/api/posts" \
-H "Authorization: Bearer $POSTPROXY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"post": { "body": "Hello from Postproxy!" },
"profiles": ["twitter", "linkedin", "threads"],
"media": ["https://example.com/image.jpg"]
}'
# 3. Schedule for later — add scheduled_at to the post object
curl -X POST "https://api.postproxy.dev/api/posts" \
-H "Authorization: Bearer $POSTPROXY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"post": { "body": "Scheduled post", "scheduled_at": "2026-06-16T09:00:00Z" },
"profiles": ["twitter"]
}'
profiles accepts network names (facebook, instagram, tiktok, linkedin, youtube, twitter, threads, pinterest, bluesky, telegram, google_business) or profile IDs.
Read the rule file matching the task before calling the API — they contain required parameters, platform quirks, and error semantics:
This skill publishes to, modifies, and deletes content on the user's real social media accounts, and can read/send private messages. Before any outward-facing or irreversible action, summarize exactly what will happen and get explicit user confirmation:
draft, publish draft, comment, reply): content goes live publicly and immediately. State the exact text, media, and target profiles/placements first. Prefer creating a draft when intent is ambiguous.DELETE /api/posts/{id}) leaves it live on the platforms; delete_on_platform=true or /delete_on_platform removes it from the social networks irreversibly. Never delete on platform without the user explicitly confirming the post and scope.secret returned when creating a webhook is a credential — never print it in output, log it, or commit it. Webhook payloads can contain private content (DMs, comments) and are sent to the configured URL — only register HTTPS endpoints the user controls and trusts.pending and transition to published/deleted (or failed) — poll the resource or subscribe to webhooks.chat_id), Pinterest, and Google Business (location_id) require one — see rules/profiles.md.scheduled_at or queue_id, never both.$ARGUMENTS
共 2 个版本