connect_pinterest_account
Use this when the user wants to connect another Pinterest account to Tailwind, asks how many Pinterest accounts their plan allows, or has an account whose tokenStatus is unauthorized in list_accounts or get_account. Returns a link the user opens in their browser to finish connecting through Pinterest. Pass accountId to re-authorize that existing account; omit it to add a new one. Adding a new account is checked first: when the user is not an organization admin or the plan has no room, no link is returned and the response says why. Calling this changes nothing: the account is connected, and any billing change is shown, only when the user completes the flow in the browser. The browser must be signed in to the same Tailwind organization, and to the Pinterest account the user wants to connect, because Pinterest connects whichever Pinterest account is signed in.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| accountId | No | Numeric Tailwind account ID from list_accounts to re-authorize. Omit to add a new Pinterest account. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Link for the user to open in a browser. Null when blocked is set. | |
| action | Yes | Whether the link adds a new account or re-authorizes accountId | |
| blocked | Yes | Why a new account cannot be added; null when it can | |
| accountLimit | Yes | Pinterest accounts the plan allows. Null when the plan has no account cap, and on reconnect links. |