PostWing Agent API
API by PostWing · rest
Schedule, preview, edit, and cancel social posts; connect/disconnect accounts; manage workspaces. All data is scoped to the authenticated user. Pass workspace_id to target a specific workspace; otherwise the active workspace is used. POST /posts schedules a post in one call, PATCH /posts/{id} edits one, and DELETE /posts/{id} cancels. The two-step preview → confirm endpoints remain supported for human-approval flows (confirmation_token TTL 30 minutes). Use targets[] with platform_options for per-account captions and platform settings (X quote posts, Pinterest boards, YouTube titles, Instagram Reels, TikTok privacy, etc.). Media: prefer POST /media/upload-url, PUT the file to upload_url, then pass media_url into POST /posts. POST /media URL import is optional. Video media_items support thumbnail_url or thumbnail_timestamp_ms (default 1000). Caption may be "" or " " for no caption. Human docs: https://postwing.io/docs
Endpoint: https://postwing.io/api/v1
Verification: observed. Source: crawl.
Capabilities (20)
- List connected social accounts
- Start OAuth connect for a platform (returns browser URL)
- Disconnect an account (confirm: true required)
- List Pinterest boards for an account
- Sync accounts after the user completes OAuth
- Import media from public HTTPS URLs (optional)
- Get a direct upload URL for an image or video
- List scheduled posts (paginated)
- Schedule a post in one call
- Two-step: schedule a post using confirmation_token from preview. Prefer POST…
- Apply edits using confirmation_token from edit preview
- Preview edits to 1–20 posts and get a confirmation_token (30 min). For one…
- Two-step: preview a post and get a confirmation_token (30 min). Prefer POST…
- Get one post with media and platform_options
- Edit one scheduled post. Send only the fields that change.
- Cancel a scheduled or paused post. No body needed.
- Schedule counts and patterns
- List workspaces
- Create a workspace (Scale plan)
- Set the active workspace