Accounts
Create a connect link
Get a link where someone connects social accounts to a workspace without a PostSyncer login.
POST
Needs
accounts:create, and a role in the workspace that can add accounts (owner or manager). See Permissions.expires_at). Once the person has connected, the accounts show up in List accounts, and an account.connected event is sent.
For telegram, the page has an Open Telegram button: the person taps Start in the chat with @PostSyncerOfficialBot, then Choose a channel, and picks one. Telegram adds the bot to it as an admin that can post, and the channel is connected. Public and private channels both work. A public channel the bot is already an admin of can also be connected by typing its @username on the page.
At the plan’s account limit no link is made: the answer is 403 plan_limit_reached, limit: accounts, so nobody signs in for nothing. On the Free plan the limit is 2 accounts. The workspace owner gets upgrade_url and upgrade_plan (the smallest plan with room for more accounts); a member is told to ask the owner (owner_plan: true, no upgrade_url). The MCP tool create-account-connect-link does the same; at the limit it gives the reason in words, with a link to the pricing page and no prices. When the workspace owner’s own key or connector reaches the Free plan’s 2 accounts, the link is https://postsyncer.com/pricing?limit=accounts, a page that says what was reached and opens the plan that lifts it in the app. In someone else’s workspace, or at a paid plan’s limit, it is the plain https://postsyncer.com/pricing. A key with billing:create, used by the workspace owner, gets a line offering a pay link with create-billing-link in place of the pricing link.
Errors
Related
- List accounts: the accounts once they are connected.
- List workspaces: the
workspace_idto send.
Authorizations
Body
application/json
Response
The link.
A link where someone connects accounts of one network to the workspace.