Recalculate segment
segments_recalculateRecalculate a Beehiiv segment to refresh its audience/membership state. Requires confirm=true and segments:write OAuth scope.
Instructions
Recalculate segment. Changes account state and requires confirm=true for the user-requested action. OAuth integrations require segments:write.
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": {
"publication_id": "<publication_id>",
"segment_id": "<segment_id>"
},
"name": "segments_recalculate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | No | Named private account from BEEHIIV_ACCOUNTS. Defaults to BEEHIIV_DEFAULT_ACCOUNT or the first configured account. | |
| confirm | No | Set true only when the user asked for exactly this action. | |
| segment_id | Yes | The prefixed ID of the segment object | |
| publication_id | Yes | The prefixed ID of the publication object |