Generate post preview URL
preview_postGenerate a Beehiiv post preview URL by publication and post ID, optionally as a free, premium tier, or specific subscriber view.
Instructions
Generate post preview URL. Reads account data. OAuth integrations require posts:read.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | No | Named private account from BEEHIIV_ACCOUNTS. Defaults to BEEHIIV_DEFAULT_ACCOUNT or the first configured account. | |
| post_id | Yes | The prefixed ID of the post object | |
| platform | No | `email` (default) or `web`. | |
| tier_ids | No | One or more premium tier IDs to preview as. Only used when `subscriber_type` is `premium`. Ignored if `subscriber_id` is present. | |
| subscriber_id | No | Preview using a specific subscriber's real tier memberships. Takes precedence over `subscriber_type`/`tier_ids` when present. | |
| publication_id | Yes | The prefixed ID of the publication object | |
| subscriber_type | No | `free` (default) or `premium`. `premium` requires `tier_ids` to be present. Ignored if `subscriber_id` is present. |