Connect each account once. The simple way is in the dashboard. Open Accounts and finish the login for each channel.
From the API, start one login at a time. The response includes a url. Open it and approve that platform.
curl -s -X POST "https://postwing.io/api/v1/accounts" \
-H "Authorization: Bearer pw_live_…" \
-H "Content-Type: application/json" \
-d '{ "platform": "linkedin" }'platform is one of facebook, instagram, linkedin, pinterest, threads, tiktok, x, or youtube. After the logins, sync once. Copy account_id from each object. TikTok can come back as tiktok or tiktok_business.
curl -s -X POST "https://postwing.io/api/v1/accounts/sync" \
-H "Authorization: Bearer pw_live_…"
Already connected in the dashboard? List accounts and copy the same ids:
curl -s -X GET "https://postwing.io/api/v1/accounts" \
-H "Authorization: Bearer pw_live_…"