Skip to main content
POST
Needs accounts:create, and a role in the workspace that can add accounts (owner or manager). See Permissions.
Makes a link where a person connects accounts of one network to the workspace. They don’t need a PostSyncer login: they open the link, sign in to the network and pick the accounts to add. Use it for your own account on another device, or send it to a client who owns the account. It is the same link as Accounts → Invite in the app. A link is for one network and works for one connect (one sign-in, any of its accounts), then stops. It expires after 7 days (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

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
workspace_id
integer
required

The workspace the accounts are added to.

provider
enum<string>
required

The network to connect.

Available options:
twitter,
linkedin,
instagram,
facebook,
tiktok,
youtube,
threads,
pinterest,
bluesky,
telegram,
mastodon,
google_business
mastodon_instance
string | null

Mastodon only, and needed for it: the server the account is on, like mastodon.social.

Maximum string length: 255

Response

The link.

A link where someone connects accounts of one network to the workspace.

url
string
required

The page the person opens. They sign in to the network there; no PostSyncer login is needed.

provider
enum<string>
required
Available options:
twitter,
linkedin,
instagram,
facebook,
tiktok,
youtube,
threads,
pinterest,
bluesky,
telegram,
mastodon,
google_business
workspace_id
integer
required
mastodon_instance
string | null
required

The Mastodon server; null for other networks.

expires_at
string<date-time>
required

When the link stops working: 7 days after it was made.