Create Connect Link
create_connect_linkCreate 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. Returns the url to send. Connected accounts then show up in list_accounts. Revoke it with revoke_connect_link. Needs the accounts.manage permission, which Admin holds.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Label shown in the dashboard list of links (max 80 characters) | |
| 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 | |
| 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 | No | An object with url (the link to send), token (pass it to revoke_connect_link), expiresAt (null when it never expires), name, visibility, allowedPlatforms and maxAccounts. |