Create Connect Link
create_connect_linkCreate a shareable link clients open to connect their social accounts to your workspace without an AdaptlyPost login. Control platforms, account limits, visibility, and expiry.
Instructions
Create a link someone else, such as a client, opens to connect their social accounts to this workspace without an AdaptlyPost login. With no options it is a quick link: it lasts 7 days, offers every platform, shows the client every account in the workspace and connects any number of accounts. visibility PRIVATE shows the client only the accounts they connected through the link; allowedPlatforms limits the platforms offered; maxAccounts makes the link stop working once that many accounts are connected through it; expiresAt or neverExpires changes when it stops working; returnUrl sends the client back to your app afterwards. Returns the url to send, plus startUrls, one per platform that connects through the network's own consent screen, for your own connect buttons. Connected accounts then show up in list_accounts. Revoke it with revoke_connect_link. Needs the accounts.manage permission, which Admin holds.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "create_connect_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Label shown in the dashboard list of links | |
| expiresAt | No | When the link stops working, as an ISO 8601 date-time with a Z or ±hh:mm offset (e.g. "2026-11-30T23:59:59Z"). At least 1 hour and at most 365 days from now. Defaults to 7 days from now. Leave it out when neverExpires is true | |
| returnUrl | No | Where the client goes after connecting, picking pages or channels, or being refused, so they come back to your app instead of staying on the link page. Must be https (http only for localhost) and carry no credentials. Your own query parameters are kept. The client arrives with status (connected or error), platform when known, one accountId per account connected (the id list_accounts shows), and on an error, error (a code) and message. A wrong Bluesky or WordPress password keeps the client on the link page | |
| visibility | No | PRIVATE shows the client only the accounts they connected through this link. Defaults to PUBLIC | |
| maxAccounts | No | Accounts the link can connect in total. Reconnecting an account it already connected does not count again | |
| workspaceId | No | Workspace to act in: an id from list_workspaces. Omit to act in the workspace list_workspaces marks current. Use the same workspaceId for every call about the same workspace, since ids from one workspace (accounts, posts, uploads) do not exist in another | |
| neverExpires | No | true keeps the link working until it is revoked or reaches maxAccounts. Cannot be combined with expiresAt | |
| allowedPlatforms | No | Platforms the client can pick. Omit or send [] for every platform |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | An object with url (the link to send), token (pass it to revoke_connect_link), expiresAt (null when it never expires), name, visibility, allowedPlatforms, maxAccounts, returnUrl (null when not set) and startUrls: [{ platform, url }], one per platform the link offers that connects through the network's own consent screen. Bluesky and Telegram are left out because they connect on the link page. Add server= to the Mastodon URL, site= to the WordPress URL, and via=facebook to the Instagram URL to connect through a Facebook Page. |