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.
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 |