manage_social_accounts reads and manages the workspace’s connected accounts. In the app the same accounts are under Publish, Accounts.
Reading
list returns each account with its status, which is needs_reconnect when its sign-in expired. It also returns slots, the paid slots for accounts, X and ad accounts with caller_is_owner, and agents, the workspace’s rules for agents described in Approval and what agents can do. When the platforms do not answer, the accounts come back as last read, with a note.
Connecting
connect with a platform returns a url. The user opens it and signs in on the platform, and list shows the account once it is connected. For ChatGPT Ads (openaiads) the user pastes the ad account’s API key at that address instead of signing in. The result includes needs, what the account has to be for the platform to accept it.
Slots and prices
Each connected account holds a slot, billed monthly to the workspace owner: $6 for a social account, $10 for an X account, $10 for an ad account.- With no slot of that kind bought yet,
connectreturns acheckout_url. The user pays for the first slot there, andconnectis called again. - With every slot in use, the owner’s
connectraises the subscription by one. The result’schargedsays whether it did. - Adding a slot is the owner’s call. The owner can also settle the subscription in the app under Settings, Usage & billing.
add_ad_pack with packs adds packs of 500 ads running at once, at $10 a month each. It is the owner’s call, and with no pack bought yet it returns a checkout_url. Ads covers the running-ads allowance.
buy_replies returns a url where the owner pays once for 2,500 automatic replies at $8 (packs buys several). They are kept until used; Inbox and automatic replies covers that allowance.
When a payment does not go through
Each kind of slot is paid on its own: connected accounts, the X account, ad accounts. When a payment for one does not go through, what that kind includes per use pauses at once: direct messages and automatic replies for connected accounts, posting to X for the X account, and making ads, starting ads and enabling ad rules for ad accounts. Connecting another account of that kind is paused too. Posting to the other platforms and reading continue. Scheduled posts that go to an X account are kept asheld posts on their calendar cards, and a person approves them once the payment is settled. The accounts stay connected for 3 days from the failed payment and then disconnect. In those days list carries the date as disconnectsAt on that kind in slots. The workspace owner settles the payment in the app under Settings, Usage & billing.
Reconnecting and disconnecting
reconnect with an account_id from list returns a url that renews the account on its own slot. disconnect ends the connection. The account’s posts stay on the platform.
