Follow an account on X
follow_on_xFollow an account (targetUserId) from a connected X account, or unfollow with undo: true. Following is PUBLIC: confirm with the user first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| undo | No | true undoes the action. | |
| accountId | Yes | Connected X account. | |
| targetUserId | Yes | Id of the X account to follow. | |
| idempotencyKey | No | Optional. A unique id for this action (16-128 chars: letters, digits, _ : . -). If you are unsure whether a call went through (timeout, network error), repeat it with the SAME idempotencyKey and the same arguments: you get the original result and nothing is done twice. |