Add subscription to an automation
add_subscriber_to_automationAdd a subscriber to a Beehiiv automation by publication and automation IDs; requires confirm=true and automations:write OAuth scope.
Instructions
Add subscription to an automation. Changes account state and requires confirm=true for the user-requested action. OAuth integrations require automations: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>",
"automation_id": "<automation_id>"
},
"name": "add_subscriber_to_automation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| No | The email address associated with the subscription. | ||
| 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. | |
| payload | No | Complete JSON body instead of individual body flags. Supports nullable fields and nested bulk structures. Cannot be combined with body flags or payload_file. | |
| payload_file | No | Local JSON request body file, at most 5 MB. Contents are validated before the API call and are never logged. | |
| automation_id | Yes | The prefixed ID of the automation object | |
| publication_id | Yes | The prefixed ID of the publication object | |
| subscription_id | No | The prefixed ID of the subscription. | |
| double_opt_override | No |