How the pieces fit
What your UI does at each step
01
Render a connect button
Call the connect endpoint from your backend, get back a URL, and redirect. No OAuth app of your own required to start — PostGate's shared provider apps cover every plan.
02
List profiles, build your composer
GET /api/profiles gives you what to show as connected accounts. Check GET /api/profiles/{id}/health before letting a customer publish, and prompt a reconnect in your own UI if a token needs refreshing.
03
Publish, schedule, or queue
The same POST /api/posts call publishes immediately, saves a draft, fires at a fixed scheduled_at, or joins a recurring queue — your UI just changes which fields it sends.