Get post template
get_post_templateRetrieve a Beehiiv post template by publication and template ID to inspect its structure or render HTML for free/premium web, email, and RSS outputs.
Instructions
Get post template. Reads account data. OAuth integrations require posts:read.
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>",
"post_template_id": "<post_template_id>"
},
"name": "get_post_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expand | No | Optionally expand the result by adding the rendered HTML of the template. `free_web_content` - Adds the web HTML rendered to a free reader. `free_email_content` - Adds the email HTML rendered to a free reader. `free_rss_content` - Adds the RSS feed HTML. `premium_web_content` - Adds the web HTML rendered to a premium reader. `premium_email_content` - Adds the email HTML rendered to a premium reader. | |
| account | No | Named private account from BEEHIIV_ACCOUNTS. Defaults to BEEHIIV_DEFAULT_ACCOUNT or the first configured account. | |
| publication_id | Yes | The prefixed ID of the publication object | |
| post_template_id | Yes | The prefixed ID of the post template object |