Create a share rule
create_share_rule[PUBLISHES to social accounts · publish scope] Creates a rule that reshares (or comments on) every new post of the source accounts. Defaults to needs_approval: each fire waits for approve in act_on_publish_action. Only LinkedIn (native reshare) and X (quote own / retweet) really repost; other platforms get a link share. Confirm with the user first. Needs the publish scope (or admin) on the Agency plan or higher.
(Wraps POST /api/v2/automations/reshare-rules.)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>",
"sourceAccountIds": "<sourceAccountIds>"
},
"name": "create_share_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | `reshare`: share the post to `targets`. `comment`: comment on the post itself through the source account. | reshare |
| name | Yes | ||
| brandId | No | ||
| enabled | No | ||
| targets | No | ||
| approval | No | `needs_approval` (default): each fire waits for a person (POST …/actions/{id} `approve`). `auto`: runs on its own. | needs_approval |
| template | No | The reshare commentary or comment text. Tokens, resolved only once the URL exists: `{{postUrl}}` (this post, on the comment's platform), `{{postUrl:<platform>}}`, `{{parentPostUrl:<post or draft id>}}` (another flayr post: same platform, else YouTube, else any), `{{youtubeUrl:<post or draft id>}}`. | |
| sourceLabel | No | Only posts carrying this label. | |
| delayMinutes | No | ||
| sourceAccountIds | Yes | Fires when a post goes live through any of these connected accounts. |