beehiiv
Use beehiiv API to manage newsletters, publications, posts, subscribers, automations, segments, custom fields, and reporting.
认证方式
| 方式 | 底层类型 | 状态 | 说明 |
|---|---|---|---|
| API Key | api_key | available | — |
调用示例
import { createClient } from "@open-connector/sdk";const oc = createClient({ baseUrl: "https://api.openconnector.dev", apiKey: process.env.OPEN_CONNECTOR_API_KEY!,});const result = await oc.executeTool({ slug: "BEEHIIV_AGGREGATE_STATS", connectedAccountId: "conn_...", arguments: { /* match this tool's input schema */ },});import Composio from "@composio/client";const composio = new Composio({ baseURL: "https://api.openconnector.dev/composio", apiKey: process.env.OPEN_CONNECTOR_API_KEY!,});const result = await composio.tools.execute("BEEHIIV_AGGREGATE_STATS", { connected_account_id: "conn_...", arguments: { /* match this tool's input schema */ },});oc tools execute BEEHIIV_AGGREGATE_STATS --data '{ }'Tool 目录
可用 Tools
84 个可调用操作
Get aggregate stats <Badge intent="info" minimal outlined>OAuth Scope: posts:read</Badge>BEEHIIV_AGGREGATE_STATSRetrieve aggregate stats for all posts需要连接
Retrieve aggregate stats for all posts
认证
需要 Connected AccountTags
Add subscription to an automation <Badge intent="info" minimal outlined>OAuth Scope: automations:write</Badge>BEEHIIV_CREATEAdd an existing subscription to an automation flow. Requires the automation to have an active *Add by API* trigger. The specified `email` or `subscription_id` will be matched against your existing subscribers. If an existing subscriber is found, they will be enrolled immediately. Looking to enroll new subscribers? Use the **[Create Subscription](/api-reference/subscriptions/create)** endpoint instead and specify the `automation_ids` param.需要连接
Add an existing subscription to an automation flow. Requires the automation to have an active *Add by API* trigger. The specified `email` or `subscription_id` will be matched against your existing subscribers. If an existing subscriber is found, they will be enrolled immediately. Looking to enroll new subscribers? Use the **[Create Subscription](/api-reference/subscriptions/create)** endpoint instead and specify the `automation_ids` param.
认证
需要 Connected AccountTags
Delete custom field <Badge intent="info" minimal outlined>OAuth Scope: custom_fields:write</Badge>BEEHIIV_DELETEDelete a custom field from a publication.需要连接
Delete a custom field from a publication.
认证
需要 Connected AccountTags
Delete newsletter list <Badge intent="warning" minimal outlined>Beta</Badge> <Badge intent="info" minimal outlined>OAuth Scope: newsletter_lists:write</Badge>BEEHIIV_DELETE_PUBLICATIONS_PUBLICATION_ID_NEWSLETTER_LISTS_NEWSLETTER_LIST_ID<Note title="Currently in beta" icon="b"> Newsletter Lists is currently in beta, the API is subject to change. </Note> Delete a newsletter list belonging to a specific publication.需要连接
<Note title="Currently in beta" icon="b"> Newsletter Lists is currently in beta, the API is subject to change. </Note> Delete a newsletter list belonging to a specific publication.
认证
需要 Connected AccountTags
Delete post <Badge intent="info" minimal outlined>OAuth Scope: posts:write</Badge>BEEHIIV_DELETE_PUBLICATIONS_PUBLICATION_ID_POSTS_POST_IDDelete or Archive a post. Any post that has been confirmed will have it's status changed to `archived`. Posts in the `draft` status will be permanently deleted.需要连接
Delete or Archive a post. Any post that has been confirmed will have it's status changed to `archived`. Posts in the `draft` status will be permanently deleted.
认证
需要 Connected AccountTags
Delete segment <Badge intent="info" minimal outlined>OAuth Scope: segments:write</Badge>BEEHIIV_DELETE_PUBLICATIONS_PUBLICATION_ID_SEGMENTS_SEGMENT_IDDelete a segment. Deleting the segment does not effect the subscriptions in the segment.需要连接
Delete a segment. Deleting the segment does not effect the subscriptions in the segment.
认证
需要 Connected AccountTags
Delete subscription <Badge intent="info" minimal outlined>OAuth Scope: subscriptions:write</Badge>BEEHIIV_DELETE_PUBLICATIONS_PUBLICATION_ID_SUBSCRIPTIONS_SUBSCRIPTION_ID<Warning>This cannot be undone. All data associated with the subscription will also be deleted. We recommend unsubscribing when possible instead of deleting. If a premium subscription is deleted they will no longer be billed.</Warning> Deletes a subscription.需要连接
<Warning>This cannot be undone. All data associated with the subscription will also be deleted. We recommend unsubscribing when possible instead of deleting. If a premium subscription is deleted they will no longer be billed.</Warning> Deletes a subscription.
认证
需要 Connected AccountTags
Delete a webhook <Badge intent="info" minimal outlined>OAuth Scope: webhooks:write</Badge>BEEHIIV_DELETE_PUBLICATIONS_PUBLICATION_ID_WEBHOOKS_ENDPOINT_IDDelete a webhook subscription from a publication.需要连接
Delete a webhook subscription from a publication.
认证
需要 Connected AccountTags
List segment subscriber IDs <Badge intent="info" minimal outlined>OAuth Scope: segments:read</Badge>BEEHIIV_EXPAND_RESULTSList subscriber IDs for a segment. Returns a lightweight array of subscription IDs only, without additional subscriber details. **Use this endpoint when you only need subscriber IDs** (e.g., for counting, ID-based lookups, or integrations with external systems). If you need full subscriber details (email, status, custom fields, etc.), use `/segments/{segmentId}/members` instead.需要连接
List subscriber IDs for a segment. Returns a lightweight array of subscription IDs only, without additional subscriber details. **Use this endpoint when you only need subscriber IDs** (e.g., for counting, ID-based lookups, or integrations with external systems). If you need full subscriber details (email, status, custom fields, etc.), use `/segments/{segmentId}/members` instead.
认证
需要 Connected AccountTags
Get subscription by email <Badge intent="info" minimal outlined>OAuth Scope: subscriptions:read</Badge>BEEHIIV_GET_BY_EMAIL<Info>Please note that this endpoint requires the email to be URL encoded. Please reference your language's documentation for the correct method of encoding.</Info> Retrieve a single subscription belonging to a specific email address in a specific publication.需要连接
<Info>Please note that this endpoint requires the email to be URL encoded. Please reference your language's documentation for the correct method of encoding.</Info> Retrieve a single subscription belonging to a specific email address in a specific publication.
认证
需要 Connected AccountTags
Get subscription by ID <Badge intent="info" minimal outlined>OAuth Scope: subscriptions:read</Badge>BEEHIIV_GET_BY_ID<Info>In previous versions of the API, another endpoint existed to retrieve a subscription by the subscriber ID. This endpoint is now deprecated and will be removed in a future version of the API. Please use this endpoint instead. The subscription ID can be found by exporting a list of subscriptions either via the `Settings > Publications > Export Data` or by exporting a CSV in a segment.</Info> Retrieve a single subscription belonging to a specific publication.需要连接
<Info>In previous versions of the API, another endpoint existed to retrieve a subscription by the subscriber ID. This endpoint is now deprecated and will be removed in a future version of the API. Please use this endpoint instead. The subscription ID can be found by exporting a list of subscriptions either via the `Settings > Publications > Export Data` or by exporting a CSV in a segment.</Info> Retrieve a single subscription belonging to a specific publication.
认证
需要 Connected AccountTags
List publications <Badge intent="info" minimal outlined>OAuth Scope: publications:read</Badge>BEEHIIV_GET_PUBLICATIONSRetrieve all publications associated with your API key.需要连接
Retrieve all publications associated with your API key.
认证
需要 Connected AccountTags
Get publication <Badge intent="info" minimal outlined>OAuth Scope: publications:read</Badge>BEEHIIV_GET_PUBLICATIONS_PUBLICATION_IDRetrieve a single publication需要连接
Retrieve a single publication
认证
需要 Connected AccountTags
List authorsBEEHIIV_GET_PUBLICATIONS_PUBLICATION_ID_AUTHORSRetrieve a list of authors available for the publication.需要连接
Retrieve a list of authors available for the publication.
认证
需要 Connected AccountTags
List automations <Badge intent="info" minimal outlined>OAuth Scope: automations:read</Badge>BEEHIIV_GET_PUBLICATIONS_PUBLICATION_ID_AUTOMATIONSRetrieve automations for a publication.需要连接
Retrieve automations for a publication.
认证
需要 Connected AccountTags
Get automation <Badge intent="info" minimal outlined>OAuth Scope: automations:read</Badge>BEEHIIV_GET_PUBLICATIONS_PUBLICATION_ID_AUTOMATIONS_AUTOMATION_IDRetrieve a single automation for a publication.需要连接
Retrieve a single automation for a publication.
认证
需要 Connected AccountTags
List automation journeys <Badge intent="info" minimal outlined>OAuth Scope: automations:read</Badge>BEEHIIV_GET_PUBLICATIONS_PUBLICATION_ID_AUTOMATIONS_AUTOMATION_ID_JOURNEYSRetrieve a list of automation journeys that have occurred within a specific automation.需要连接
Retrieve a list of automation journeys that have occurred within a specific automation.
认证
需要 Connected AccountTags
Get automation journey <Badge intent="info" minimal outlined>OAuth Scope: automations:read</Badge>BEEHIIV_GET_PUBLICATIONS_PUBLICATION_ID_AUTOMATIONS_AUTOMATION_ID_JOURNEYS_AUTOMATION_JOURNEY_IDRetrieve a single automation journey by ID.需要连接
Retrieve a single automation journey by ID.
认证
需要 Connected AccountTags
List subscription updates <Badge intent="info" minimal outlined>OAuth Scope: subscriptions:read</Badge>BEEHIIV_GET_PUBLICATIONS_PUBLICATION_ID_BULK_SUBSCRIPTION_UPDATESReturns a list of Subscription Update objects for a publication.需要连接
Returns a list of Subscription Update objects for a publication.
认证
需要 Connected AccountTags
Get subscription update <Badge intent="info" minimal outlined>OAuth Scope: subscriptions:read</Badge>BEEHIIV_GET_PUBLICATIONS_PUBLICATION_ID_BULK_SUBSCRIPTION_UPDATES_IDReturns a single Subscription Update object for a publication.需要连接
Returns a single Subscription Update object for a publication.
认证
需要 Connected AccountTags
List complimentary access <Badge intent="info" minimal outlined>OAuth Scope: complimentary_access:read</Badge>BEEHIIV_GET_PUBLICATIONS_PUBLICATION_ID_COMPLIMENTARY_ACCESSRetrieve all complimentary access objects belonging to a specific publication.需要连接
Retrieve all complimentary access objects belonging to a specific publication.
认证
需要 Connected AccountTags
Get complimentary access <Badge intent="info" minimal outlined>OAuth Scope: complimentary_access:read</Badge>BEEHIIV_GET_PUBLICATIONS_PUBLICATION_ID_COMPLIMENTARY_ACCESS_COMPLIMENTARY_ACCESS_IDRetrieve a single complimentary access object belonging to a specific publication.需要连接
Retrieve a single complimentary access object belonging to a specific publication.
认证
需要 Connected AccountTags
List condition sets <Badge intent="info" minimal outlined>OAuth Scope: condition_sets:read</Badge>BEEHIIV_GET_PUBLICATIONS_PUBLICATION_ID_CONDITION_SETSRetrieve all active condition sets for a publication. Condition sets define reusable audience segments for targeting content to specific subscribers. Use the `purpose` parameter to filter by a specific use case.需要连接
Retrieve all active condition sets for a publication. Condition sets define reusable audience segments for targeting content to specific subscribers. Use the `purpose` parameter to filter by a specific use case.
认证
需要 Connected AccountTags
Get condition set <Badge intent="info" minimal outlined>OAuth Scope: condition_sets:read</Badge>BEEHIIV_GET_PUBLICATIONS_PUBLICATION_ID_CONDITION_SETS_CONDITION_SET_IDRetrieve a single active dynamic content condition set for a publication. Use `expand[]=stats` to calculate and return the active subscriber count synchronously.需要连接
Retrieve a single active dynamic content condition set for a publication. Use `expand[]=stats` to calculate and return the active subscriber count synchronously.
认证
需要 Connected AccountTags
List custom fields <Badge intent="info" minimal outlined>OAuth Scope: custom_fields:read</Badge>BEEHIIV_GET_PUBLICATIONS_PUBLICATION_ID_CUSTOM_FIELDSList all custom fields on a publication.需要连接
List all custom fields on a publication.
认证
需要 Connected AccountTags
Get custom field <Badge intent="info" minimal outlined>OAuth Scope: custom_fields:read</Badge>BEEHIIV_GET_PUBLICATIONS_PUBLICATION_ID_CUSTOM_FIELDS_IDView a specific custom field on a publication.需要连接
View a specific custom field on a publication.
认证
需要 Connected AccountTags
List data deletion requests <Badge intent="info" minimal outlined>OAuth Scope: data_deletion:read</Badge>BEEHIIV_GET_PUBLICATIONS_PUBLICATION_ID_DATA_PRIVACY_DELETION_REQUESTS<Warning>This is a gated feature that requires enablement. Contact support to enable Data Deletion API access for your organization.</Warning> List all data deletion requests for your organization. API keys restricted to specific publications cannot access this endpoint and will receive a 403 response, since deletion requests apply to the entire workspace.需要连接
<Warning>This is a gated feature that requires enablement. Contact support to enable Data Deletion API access for your organization.</Warning> List all data deletion requests for your organization. API keys restricted to specific publications cannot access this endpoint and will receive a 403 response, since deletion requests apply to the entire workspace.
认证
需要 Connected AccountTags
Get data deletion request <Badge intent="info" minimal outlined>OAuth Scope: data_deletion:read</Badge>BEEHIIV_GET_PUBLICATIONS_PUBLICATION_ID_DATA_PRIVACY_DELETION_REQUESTS_ID<Warning>This is a gated feature that requires enablement. Contact support to enable Data Deletion API access for your organization.</Warning> Retrieve the details and current status of a specific data deletion request. API keys restricted to specific publications cannot access this endpoint and will receive a 403 response, since deletion requests apply to the entire workspace.需要连接
<Warning>This is a gated feature that requires enablement. Contact support to enable Data Deletion API access for your organization.</Warning> Retrieve the details and current status of a specific data deletion request. API keys restricted to specific publications cannot access this endpoint and will receive a 403 response, since deletion requests apply to the entire workspace.
认证
需要 Connected AccountTags
Get publication engagements <Badge intent="info" minimal outlined>OAuth Scope: publications:read</Badge>BEEHIIV_GET_PUBLICATIONS_PUBLICATION_ID_ENGAGEMENTSRetrieve email engagement metrics for a specific publication over a defined date range and granularity.<br><br> By default, the endpoint returns metrics for the past day, aggregated daily. The max number of days allowed is 31. All dates and times are in UTC.需要连接
Retrieve email engagement metrics for a specific publication over a defined date range and granularity.<br><br> By default, the endpoint returns metrics for the past day, aggregated daily. The max number of days allowed is 31. All dates and times are in UTC.
认证
需要 Connected AccountTags
List newsletter lists <Badge intent="warning" minimal outlined>Beta</Badge> <Badge intent="info" minimal outlined>OAuth Scope: newsletter_lists:read</Badge>BEEHIIV_GET_PUBLICATIONS_PUBLICATION_ID_NEWSLETTER_LISTS<Note title="Currently in beta" icon="b"> Newsletter Lists is currently in beta, the API is subject to change. </Note> List all newsletter lists for a publication.需要连接
<Note title="Currently in beta" icon="b"> Newsletter Lists is currently in beta, the API is subject to change. </Note> List all newsletter lists for a publication.
认证
需要 Connected AccountTags
Get newsletter list <Badge intent="warning" minimal outlined>Beta</Badge> <Badge intent="info" minimal outlined>OAuth Scope: newsletter_lists:read</Badge>BEEHIIV_GET_PUBLICATIONS_PUBLICATION_ID_NEWSLETTER_LISTS_NEWSLETTER_LIST_ID<Note title="Currently in beta" icon="b"> Newsletter Lists is currently in beta, the API is subject to change. </Note> Retrieve a single newsletter list belonging to a specific publication.需要连接
<Note title="Currently in beta" icon="b"> Newsletter Lists is currently in beta, the API is subject to change. </Note> Retrieve a single newsletter list belonging to a specific publication.
认证
需要 Connected AccountTags
List newsletter list subscriptions <Badge intent="warning" minimal outlined>Beta</Badge> <Badge intent="info" minimal outlined>OAuth Scope: newsletter_lists:read</Badge>BEEHIIV_GET_PUBLICATIONS_PUBLICATION_ID_NEWSLETTER_LISTS_NEWSLETTER_LIST_ID_SUBSCRIPTIONS<Note title="Currently in beta" icon="b"> Newsletter Lists is currently in beta, the API is subject to change. </Note> List all subscriptions for a newsletter list.需要连接
<Note title="Currently in beta" icon="b"> Newsletter Lists is currently in beta, the API is subject to change. </Note> List all subscriptions for a newsletter list.
认证
需要 Connected AccountTags
Get newsletter list subscription <Badge intent="warning" minimal outlined>Beta</Badge> <Badge intent="info" minimal outlined>OAuth Scope: newsletter_lists:read</Badge>BEEHIIV_GET_PUBLICATIONS_PUBLICATION_ID_NEWSLETTER_LISTS_NEWSLETTER_LIST_ID_SUBSCRIPTIONS_NEWSLETTER_LIST_SUBSCRIPTION_ID<Note title="Currently in beta" icon="b"> Newsletter Lists is currently in beta, the API is subject to change. </Note> Retrieve a single newsletter list subscription.需要连接
<Note title="Currently in beta" icon="b"> Newsletter Lists is currently in beta, the API is subject to change. </Note> Retrieve a single newsletter list subscription.
认证
需要 Connected AccountTags
List polls <Badge intent="info" minimal outlined>OAuth Scope: polls:read</Badge>BEEHIIV_GET_PUBLICATIONS_PUBLICATION_ID_POLLSRetrieve all polls belonging to a specific publication. Poll choices are always included. Use `expand[]=stats` to include aggregate vote counts per choice.需要连接
Retrieve all polls belonging to a specific publication. Poll choices are always included. Use `expand[]=stats` to include aggregate vote counts per choice.
认证
需要 Connected AccountTags
Get poll <Badge intent="info" minimal outlined>OAuth Scope: polls:read</Badge>BEEHIIV_GET_PUBLICATIONS_PUBLICATION_ID_POLLS_POLL_IDRetrieve detailed information about a specific poll belonging to a publication. Use `expand[]=stats` for aggregate vote counts, or `expand[]=poll_responses` for individual subscriber responses.需要连接
Retrieve detailed information about a specific poll belonging to a publication. Use `expand[]=stats` for aggregate vote counts, or `expand[]=poll_responses` for individual subscriber responses.
认证
需要 Connected AccountTags
Get post templates <Badge intent="info" minimal outlined>OAuth Scope: posts:read</Badge>BEEHIIV_GET_PUBLICATIONS_PUBLICATION_ID_POST_TEMPLATESRetrieve a list of post templates available for the publication.需要连接
Retrieve a list of post templates available for the publication.
认证
需要 Connected AccountTags
List posts <Badge intent="info" minimal outlined>OAuth Scope: posts:read</Badge>BEEHIIV_GET_PUBLICATIONS_PUBLICATION_ID_POSTSRetrieve all posts belonging to a specific publication需要连接
Retrieve all posts belonging to a specific publication
认证
需要 Connected AccountTags
Get post <Badge intent="info" minimal outlined>OAuth Scope: posts:read</Badge>BEEHIIV_GET_PUBLICATIONS_PUBLICATION_ID_POSTS_POST_IDRetrieve a single Post belonging to a specific publication需要连接
Retrieve a single Post belonging to a specific publication
认证
需要 Connected AccountTags
Get referral program <Badge intent="info" minimal outlined>OAuth Scope: referral_program:read</Badge>BEEHIIV_GET_PUBLICATIONS_PUBLICATION_ID_REFERRAL_PROGRAMRetrieve details about the publication's referral program, including milestones and rewards.需要连接
Retrieve details about the publication's referral program, including milestones and rewards.
认证
需要 Connected AccountTags
List segments <Badge intent="info" minimal outlined>OAuth Scope: segments:read</Badge>BEEHIIV_GET_PUBLICATIONS_PUBLICATION_ID_SEGMENTSRetrieve information about all segments belonging to a specific publication需要连接
Retrieve information about all segments belonging to a specific publication
认证
需要 Connected AccountTags
Get segment <Badge intent="info" minimal outlined>OAuth Scope: segments:read</Badge>BEEHIIV_GET_PUBLICATIONS_PUBLICATION_ID_SEGMENTS_SEGMENT_IDRetrieve information about a specific segment belonging to a publication需要连接
Retrieve information about a specific segment belonging to a publication
认证
需要 Connected AccountTags
List subscriptions <Badge intent="info" minimal outlined>OAuth Scope: subscriptions:read</Badge>BEEHIIV_GET_PUBLICATIONS_PUBLICATION_ID_SUBSCRIPTIONSRetrieve all subscriptions belonging to a specific publication. <Info> **New**: This endpoint now supports cursor-based pagination for better performance and consistency. Use the `cursor` parameter instead of `page` for new integrations. </Info> <Warning> **Deprecation Notice**: Offset-based pagination (using `page` parameter) is deprecated and limited to 100 pages maximum. Please migrate to cursor-based pagination. See our [Pagination Guide](/welcome/pagination) for details. </Warning>需要连接
Retrieve all subscriptions belonging to a specific publication. <Info> **New**: This endpoint now supports cursor-based pagination for better performance and consistency. Use the `cursor` parameter instead of `page` for new integrations. </Info> <Warning> **Deprecation Notice**: Offset-based pagination (using `page` parameter) is deprecated and limited to 100 pages maximum. Please migrate to cursor-based pagination. See our [Pagination Guide](/welcome/pagination) for details. </Warning>
认证
需要 Connected AccountTags
List tiers <Badge intent="info" minimal outlined>OAuth Scope: tiers:read</Badge>BEEHIIV_GET_PUBLICATIONS_PUBLICATION_ID_TIERSRetrieve all tiers belonging to a specific publication需要连接
Retrieve all tiers belonging to a specific publication
认证
需要 Connected AccountTags
Get tier <Badge intent="info" minimal outlined>OAuth Scope: tiers:read</Badge>BEEHIIV_GET_PUBLICATIONS_PUBLICATION_ID_TIERS_TIER_IDRetrieve a single tier belonging to a specific publication需要连接
Retrieve a single tier belonging to a specific publication
认证
需要 Connected AccountTags
List webhooks <Badge intent="info" minimal outlined>OAuth Scope: webhooks:read</Badge>BEEHIIV_GET_PUBLICATIONS_PUBLICATION_ID_WEBHOOKSRetrieve all webhooks belonging to a specific publication.需要连接
Retrieve all webhooks belonging to a specific publication.
认证
需要 Connected AccountTags
Get webhook <Badge intent="info" minimal outlined>OAuth Scope: webhooks:read</Badge>BEEHIIV_GET_PUBLICATIONS_PUBLICATION_ID_WEBHOOKS_ENDPOINT_IDRetrieve a specific webhook belonging to a publication.需要连接
Retrieve a specific webhook belonging to a publication.
认证
需要 Connected AccountTags
Identify workspace <Badge intent="info" minimal outlined>OAuth Scope: identify:read</Badge>BEEHIIV_GET_WORKSPACES_IDENTIFYRetrieve information about the workspace the OAuth or API token is associated with.需要连接
Retrieve information about the workspace the OAuth or API token is associated with.
认证
需要 Connected AccountTags
Identify user <Badge intent="info" minimal outlined>OAuth Scope: identify:read</Badge>BEEHIIV_IDENTIFYRetrieve information about the user who authorized the OAuth access token.需要连接
Retrieve information about the user who authorized the OAuth access token.
认证
需要 Connected AccountTags
Get advertisement opportunities <Badge intent="info" minimal outlined>OAuth Scope: posts:read</Badge>BEEHIIV_INDEXRetrieve a list of accepted advertisement opportunities for the publication.需要连接
Retrieve a list of accepted advertisement opportunities for the publication.
认证
需要 Connected AccountTags
List automation emailsBEEHIIV_LIST_EMAILSRetrieve all emails belonging to a specific automation, including engagement statistics for each email.需要连接
Retrieve all emails belonging to a specific automation, including engagement statistics for each email.
认证
需要 Connected AccountTags
List segment subscribers <Badge intent="info" minimal outlined>OAuth Scope: segments:read</Badge>BEEHIIV_LIST_MEMBERSList all members in a segment with full subscription data. Each member is returned as a subscription object containing complete subscriber information and their subscription details. Supports optional expansions for stats, custom fields, tags, referrals, and premium tiers. **Use this endpoint when you need detailed subscriber information.** If you only need subscriber IDs, use `/segments/{segmentId}/results` for a lighter-weight response.需要连接
List all members in a segment with full subscription data. Each member is returned as a subscription object containing complete subscriber information and their subscription details. Supports optional expansions for stats, custom fields, tags, referrals, and premium tiers. **Use this endpoint when you need detailed subscriber information.** If you only need subscriber IDs, use `/segments/{segmentId}/results` for a lighter-weight response.
认证
需要 Connected AccountTags
List poll responses <Badge intent="info" minimal outlined>OAuth Scope: polls:read</Badge>BEEHIIV_LIST_RESPONSESRetrieve all individual subscriber responses for a specific poll with cursor-based pagination. Use this endpoint for large datasets instead of the `expand[]=poll_responses` parameter on the poll show endpoint.需要连接
Retrieve all individual subscriber responses for a specific poll with cursor-based pagination. Use this endpoint for large datasets instead of the `expand[]=poll_responses` parameter on the poll show endpoint.
认证
需要 Connected AccountTags
Update subscriptions <Badge intent="info" minimal outlined>OAuth Scope: subscriptions:write</Badge>BEEHIIV_PATCHBulk update multiple subscriptions fields, including status, custom fields, and tiers.需要连接
Bulk update multiple subscriptions fields, including status, custom fields, and tiers.
认证
需要 Connected AccountTags
Update custom field <Badge intent="info" minimal outlined>OAuth Scope: custom_fields:write</Badge>BEEHIIV_PATCH_PUBLICATIONS_PUBLICATION_ID_CUSTOM_FIELDS_IDUpdate a custom field on a publication.需要连接
Update a custom field on a publication.
认证
需要 Connected AccountTags
Update newsletter list subscription <Badge intent="warning" minimal outlined>Beta</Badge> <Badge intent="info" minimal outlined>OAuth Scope: newsletter_lists:write</Badge>BEEHIIV_PATCH_PUBLICATIONS_PUBLICATION_ID_NEWSLETTER_LISTS_NEWSLETTER_LIST_ID_SUBSCRIPTIONS_NEWSLETTER_LIST_SUBSCRIPTION_ID<Note title="Currently in beta" icon="b"> Newsletter Lists is currently in beta, the API is subject to change. </Note> Update a newsletter list subscription. Currently supports unsubscribing a subscription from a newsletter list.需要连接
<Note title="Currently in beta" icon="b"> Newsletter Lists is currently in beta, the API is subject to change. </Note> Update a newsletter list subscription. Currently supports unsubscribing a subscription from a newsletter list.
认证
需要 Connected AccountTags
Update post <Badge intent="info" minimal outlined>OAuth Scope: posts:write</Badge>BEEHIIV_PATCH_PUBLICATIONS_PUBLICATION_ID_POSTS_POST_ID<Note title="Currently in beta" icon="b"> This feature is currently in beta, the API is subject to change, and available only to Enterprise users.<br/><br/>To inquire about Enterprise pricing, please visit our <a href="https://www.beehiiv.com/enterprise">Enterprise page</a>. </Note> Update an existing post for a specific publication. Only the fields provided in the request body will be updated — all other fields remain unchanged. For a detailed walkthrough of content methods and working with custom HTML, see the <a href="https://www.beehiiv.com/support/article/36759164012439-using-the-send-api-and-create-post-endpoint">Using the Send API and Create Post Endpoint</a> guide. To update post content, provide either `blocks` or `body_content` (not both). If neither is provided, the existing content is preserved. The same content methods and CSS guardrails described in the create endpoint apply here.需要连接
<Note title="Currently in beta" icon="b"> This feature is currently in beta, the API is subject to change, and available only to Enterprise users.<br/><br/>To inquire about Enterprise pricing, please visit our <a href="https://www.beehiiv.com/enterprise">Enterprise page</a>. </Note> Update an existing post for a specific publication. Only the fields provided in the request body will be updated — all other fields remain unchanged. For a detailed walkthrough of content methods and working with custom HTML, see the <a href="https://www.beehiiv.com/support/article/36759164012439-using-the-send-api-and-create-post-endpoint">Using the Send API and Create Post Endpoint</a> guide. To update post content, provide either `blocks` or `body_content` (not both). If neither is provided, the existing content is preserved. The same content methods and CSS guardrails described in the create endpoint apply here.
认证
需要 Connected AccountTags
Update subscription by ID <Badge intent="info" minimal outlined>OAuth Scope: subscriptions:write</Badge>BEEHIIV_PATCH_PUBLICATIONS_PUBLICATION_ID_SUBSCRIPTIONS_SUBSCRIPTION_IDUpdate a single subscription.需要连接
Update a single subscription.
认证
需要 Connected AccountTags
Update a tier <Badge intent="info" minimal outlined>OAuth Scope: tiers:write</Badge>BEEHIIV_PATCH_PUBLICATIONS_PUBLICATION_ID_TIERS_TIER_IDUpdate an existing tier belonging to a specific publication需要连接
Update an existing tier belonging to a specific publication
认证
需要 Connected AccountTags
Update webhook <Badge intent="info" minimal outlined>OAuth Scope: webhooks:write</Badge>BEEHIIV_PATCH_PUBLICATIONS_PUBLICATION_ID_WEBHOOKS_ENDPOINT_IDUpdate a webhook subscription for a publication.需要连接
Update a webhook subscription for a publication.
认证
需要 Connected AccountTags
Update subscriptions' status <Badge intent="info" minimal outlined>OAuth Scope: subscriptions:write</Badge>BEEHIIV_PATCH_STATUSBulk update subscriptions' status.需要连接
Bulk update subscriptions' status.
认证
需要 Connected AccountTags
Bulk create subscription <Badge intent="info" minimal outlined>OAuth Scope: subscriptions:write</Badge>BEEHIIV_POST_PUBLICATIONS_PUBLICATION_ID_BULK_SUBSCRIPTIONSCreate new subscriptions for a publication.需要连接
Create new subscriptions for a publication.
认证
需要 Connected AccountTags
Create custom field <Badge intent="info" minimal outlined>OAuth Scope: custom_fields:write</Badge>BEEHIIV_POST_PUBLICATIONS_PUBLICATION_ID_CUSTOM_FIELDSCreate a custom field on a publication, for use in subscriptions.需要连接
Create a custom field on a publication, for use in subscriptions.
认证
需要 Connected AccountTags
Create data deletion request <Badge intent="info" minimal outlined>OAuth Scope: data_deletion:write</Badge>BEEHIIV_POST_PUBLICATIONS_PUBLICATION_ID_DATA_PRIVACY_DELETION_REQUESTS<Warning>This is a gated feature that requires enablement. Contact support to enable Data Deletion API access for your organization.</Warning> Creates a data deletion request for a subscriber within your organization. The subscriber's data will be redacted from all publications in the organization after a 14-day safety delay. This action cannot be undone once processing begins. API keys restricted to specific publications cannot access this endpoint and will receive a 403 response, since deletion requests apply to the entire workspace.需要连接
<Warning>This is a gated feature that requires enablement. Contact support to enable Data Deletion API access for your organization.</Warning> Creates a data deletion request for a subscriber within your organization. The subscriber's data will be redacted from all publications in the organization after a 14-day safety delay. This action cannot be undone once processing begins. API keys restricted to specific publications cannot access this endpoint and will receive a 403 response, since deletion requests apply to the entire workspace.
认证
需要 Connected AccountTags
Create newsletter list <Badge intent="warning" minimal outlined>Beta</Badge> <Badge intent="info" minimal outlined>OAuth Scope: newsletter_lists:write</Badge>BEEHIIV_POST_PUBLICATIONS_PUBLICATION_ID_NEWSLETTER_LISTS<Note title="Currently in beta" icon="b"> Newsletter Lists is currently in beta, the API is subject to change. </Note> Create a new newsletter list for a publication. The list will be created with an active status. The slug will be auto-generated from the name if not provided.需要连接
<Note title="Currently in beta" icon="b"> Newsletter Lists is currently in beta, the API is subject to change. </Note> Create a new newsletter list for a publication. The list will be created with an active status. The slug will be auto-generated from the name if not provided.
认证
需要 Connected AccountTags
Create newsletter list subscription <Badge intent="warning" minimal outlined>Beta</Badge> <Badge intent="info" minimal outlined>OAuth Scope: newsletter_lists:write</Badge>BEEHIIV_POST_PUBLICATIONS_PUBLICATION_ID_NEWSLETTER_LISTS_NEWSLETTER_LIST_ID_SUBSCRIPTIONS<Note title="Currently in beta" icon="b"> Newsletter Lists is currently in beta, the API is subject to change. </Note> Subscribe a subscription to a newsletter list. Accepts either a subscription_id or email to identify the subscription.需要连接
<Note title="Currently in beta" icon="b"> Newsletter Lists is currently in beta, the API is subject to change. </Note> Subscribe a subscription to a newsletter list. Accepts either a subscription_id or email to identify the subscription.
认证
需要 Connected AccountTags
Create post <Badge intent="info" minimal outlined>OAuth Scope: posts:write</Badge>BEEHIIV_POST_PUBLICATIONS_PUBLICATION_ID_POSTS<Note title="Currently in beta" icon="b"> This feature is currently in beta, the API is subject to change, and available only to Enterprise users.<br/><br/>To inquire about Enterprise pricing, please visit our <a href="https://www.beehiiv.com/enterprise">Enterprise page</a>. </Note> Create a post for a specific publication. For a detailed walkthrough including setup, testing workflows, and working with custom HTML and templates, see the <a href="https://www.beehiiv.com/support/article/36759164012439-using-the-send-api-and-create-post-endpoint">Using the Send API and Create Post Endpoint</a> guide. ## Content methods There are three ways to provide content for a post. You must provide either `blocks` or `body_content`, but not both. ### 1. Blocks Use the `blocks` field to build your post with structured content blocks such as paragraphs, images, headings, buttons, tables, and more. Each block has a `type` and its own set of properties. This method gives you fine-grained control over individual content elements and supports features like visual settings, visibility settings, and dynamic content targeting. ### 2. Raw HTML (`body_content`) Use the `body_content` field to provide a single string of raw HTML. The HTML is wrapped in an `htmlSnippet` block internally. This is useful when you have pre-built HTML content or are migrating from another platform. ### 3. HTML blocks within blocks Use `type: html` blocks inside the `blocks` array to embed raw HTML snippets alongside other structured blocks. This lets you mix structured content (paragraphs, images, etc.) with custom HTML where needed. ## CSS and styling guardrails beehiiv processes all HTML content through a sanitization pipeline. When using `body_content` or `html` blocks, be aware of the following: - **`<style>` tags are removed.** All `<style>` block elements are stripped during sanitization. Do not rely on embedded stylesheets. - **`<link>` tags are removed.** External stylesheet references are not allowed. - **Inline styles are preserved.** Styles applied directly to elements via the `style` attribute (e.g., `<div style="color: red;">`) are kept intact. - **CSS classes have no effect.** While class attributes are not stripped, no corresponding stylesheets are loaded to apply them. - **beehiiv's email template wraps your content.** Your HTML is rendered inside beehiiv's email table structure, which applies its own layout and spacing. This may affect the appearance of your content. - **Use inline styles for all visual styling.** Since `<style>` and `<link>` tags are removed, inline styles on individual elements are the only reliable way to control appearance.需要连接
<Note title="Currently in beta" icon="b"> This feature is currently in beta, the API is subject to change, and available only to Enterprise users.<br/><br/>To inquire about Enterprise pricing, please visit our <a href="https://www.beehiiv.com/enterprise">Enterprise page</a>. </Note> Create a post for a specific publication. For a detailed walkthrough including setup, testing workflows, and working with custom HTML and templates, see the <a href="https://www.beehiiv.com/support/article/36759164012439-using-the-send-api-and-create-post-endpoint">Using the Send API and Create Post Endpoint</a> guide. ## Content methods There are three ways to provide content for a post. You must provide either `blocks` or `body_content`, but not both. ### 1. Blocks Use the `blocks` field to build your post with structured content blocks such as paragraphs, images, headings, buttons, tables, and more. Each block has a `type` and its own set of properties. This method gives you fine-grained control over individual content elements and supports features like visual settings, visibility settings, and dynamic content targeting. ### 2. Raw HTML (`body_content`) Use the `body_content` field to provide a single string of raw HTML. The HTML is wrapped in an `htmlSnippet` block internally. This is useful when you have pre-built HTML content or are migrating from another platform. ### 3. HTML blocks within blocks Use `type: html` blocks inside the `blocks` array to embed raw HTML snippets alongside other structured blocks. This lets you mix structured content (paragraphs, images, etc.) with custom HTML where needed. ## CSS and styling guardrails beehiiv processes all HTML content through a sanitization pipeline. When using `body_content` or `html` blocks, be aware of the following: - **`<style>` tags are removed.** All `<style>` block elements are stripped during sanitization. Do not rely on embedded stylesheets. - **`<link>` tags are removed.** External stylesheet references are not allowed. - **Inline styles are preserved.** Styles applied directly to elements via the `style` attribute (e.g., `<div style="color: red;">`) are kept intact. - **CSS classes have no effect.** While class attributes are not stripped, no corresponding stylesheets are loaded to apply them. - **beehiiv's email template wraps your content.** Your HTML is rendered inside beehiiv's email table structure, which applies its own layout and spacing. This may affect the appearance of your content. - **Use inline styles for all visual styling.** Since `<style>` and `<link>` tags are removed, inline styles on individual elements are the only reliable way to control appearance.
认证
需要 Connected AccountTags
Create segmentBEEHIIV_POST_PUBLICATIONS_PUBLICATION_ID_SEGMENTSCreate a new segment.<br><br> **Manual segments** — Use `subscriptions` or `emails` input to create a segment from an explicit list of subscription IDs or email addresses. The segment is processed synchronously and returns with `status: completed`. Net new email addresses will be ignored; create subscriptions using the `Create Subscription` endpoint.<br><br> **Dynamic segments** — Use `custom_fields` input to create a segment that filters subscribers by custom field values. The segment is processed asynchronously and returns with `status: pending`. Results will be available in the `List Segment Subscribers` endpoint after processing is complete.需要连接
Create a new segment.<br><br> **Manual segments** — Use `subscriptions` or `emails` input to create a segment from an explicit list of subscription IDs or email addresses. The segment is processed synchronously and returns with `status: completed`. Net new email addresses will be ignored; create subscriptions using the `Create Subscription` endpoint.<br><br> **Dynamic segments** — Use `custom_fields` input to create a segment that filters subscribers by custom field values. The segment is processed asynchronously and returns with `status: pending`. Results will be available in the `List Segment Subscribers` endpoint after processing is complete.
认证
需要 Connected AccountTags
Create subscription <Badge intent="info" minimal outlined>OAuth Scope: subscriptions:write</Badge>BEEHIIV_POST_PUBLICATIONS_PUBLICATION_ID_SUBSCRIPTIONSCreate new subscriptions for a publication.需要连接
Create new subscriptions for a publication.
认证
需要 Connected AccountTags
Add subscription tag <Badge intent="info" minimal outlined>OAuth Scope: subscriptions:write</Badge>BEEHIIV_POST_PUBLICATIONS_PUBLICATION_ID_SUBSCRIPTIONS_SUBSCRIPTION_ID_TAGSAdds tags to a subscription. If the tag does not exist on the publication, it will be created automatically.需要连接
Adds tags to a subscription. If the tag does not exist on the publication, it will be created automatically.
认证
需要 Connected AccountTags
Create a tier <Badge intent="info" minimal outlined>OAuth Scope: tiers:write</Badge>BEEHIIV_POST_PUBLICATIONS_PUBLICATION_ID_TIERSCreate a new tier for a publication.需要连接
Create a new tier for a publication.
认证
需要 Connected AccountTags
Create a webhook <Badge intent="info" minimal outlined>OAuth Scope: webhooks:write</Badge>BEEHIIV_POST_PUBLICATIONS_PUBLICATION_ID_WEBHOOKSCreate a new webhook for a given publication.需要连接
Create a new webhook for a given publication.
认证
需要 Connected AccountTags
Generate post preview URL <Badge intent="info" minimal outlined>OAuth Scope: posts:read</Badge>BEEHIIV_PREVIEWGenerate a URL to preview a post as a given audience. The returned `preview_url` renders the post in the beehiiv app and requires a beehiiv session with access to the publication - it is not itself an HTML-returning endpoint.需要连接
Generate a URL to preview a post as a given audience. The returned `preview_url` renders the post in the beehiiv app and requires a beehiiv session with access to the publication - it is not itself an HTML-returning endpoint.
认证
需要 Connected AccountTags
Get publications by subscription email <Badge intent="info" minimal outlined>OAuth Scope: publications:read</Badge>BEEHIIV_PUBLICATIONS_BY_SUBSCRIPTION_EMAILRetrieve all publications in the workspace that have a subscription for the specified email address. The workspace is determined by the provided API key.需要连接
Retrieve all publications in the workspace that have a subscription for the specified email address. The workspace is determined by the provided API key.
认证
需要 Connected AccountTags
Update subscriptions <Badge intent="info" minimal outlined>OAuth Scope: subscriptions:write</Badge>BEEHIIV_PUTBulk update multiple subscriptions fields, including status, custom fields, and tiers.需要连接
Bulk update multiple subscriptions fields, including status, custom fields, and tiers.
认证
需要 Connected AccountTags
Update custom field <Badge intent="info" minimal outlined>OAuth Scope: custom_fields:write</Badge>BEEHIIV_PUT_PUBLICATIONS_PUBLICATION_ID_CUSTOM_FIELDS_IDUpdate a custom field on a publication.需要连接
Update a custom field on a publication.
认证
需要 Connected AccountTags
Update subscription by ID <Badge intent="info" minimal outlined>OAuth Scope: subscriptions:write</Badge>BEEHIIV_PUT_PUBLICATIONS_PUBLICATION_ID_SUBSCRIPTIONS_SUBSCRIPTION_IDUpdate a single subscription.需要连接
Update a single subscription.
认证
需要 Connected AccountTags
Update a tier <Badge intent="info" minimal outlined>OAuth Scope: tiers:write</Badge>BEEHIIV_PUT_PUBLICATIONS_PUBLICATION_ID_TIERS_TIER_IDUpdate an existing tier belonging to a specific publication需要连接
Update an existing tier belonging to a specific publication
认证
需要 Connected AccountTags
Update subscriptions' status <Badge intent="info" minimal outlined>OAuth Scope: subscriptions:write</Badge>BEEHIIV_PUT_STATUSBulk update subscriptions' status.需要连接
Bulk update subscriptions' status.
认证
需要 Connected AccountTags
Recalculate segment <Badge intent="info" minimal outlined>OAuth Scope: segments:write</Badge>BEEHIIV_RECALCULATERecalculates a specific segment belonging to a publication需要连接
Recalculates a specific segment belonging to a publication
认证
需要 Connected AccountTags
Get authorBEEHIIV_SHOWRetrieve a single author from a publication.需要连接
Retrieve a single author from a publication.
认证
需要 Connected AccountTags
Send test email <Badge intent="info" minimal outlined>OAuth Scope: posts</Badge>BEEHIIV_TEST_SENDSend a test email for a specific post to one or more email addresses. Returns the number of remaining test sends for the day and the time at which the limit resets.需要连接
Send a test email for a specific post to one or more email addresses. Returns the number of remaining test sends for the day and the time at which the limit resets.
认证
需要 Connected AccountTags
Update newsletter list <Badge intent="warning" minimal outlined>Beta</Badge> <Badge intent="info" minimal outlined>OAuth Scope: newsletter_lists:write</Badge>BEEHIIV_UPDATE<Note title="Currently in beta" icon="b"> Newsletter Lists is currently in beta, the API is subject to change. </Note> Update a newsletter list belonging to a specific publication.需要连接
<Note title="Currently in beta" icon="b"> Newsletter Lists is currently in beta, the API is subject to change. </Note> Update a newsletter list belonging to a specific publication.
认证
需要 Connected AccountTags
Update subscription by email <Badge intent="info" minimal outlined>OAuth Scope: subscriptions:write</Badge>BEEHIIV_UPDATE_BY_EMAILUpdate a single subscription by email.需要连接
Update a single subscription by email.
认证
需要 Connected AccountTags
Update newsletter list subscription by subscription ID <Badge intent="warning" minimal outlined>Beta</Badge> <Badge intent="info" minimal outlined>OAuth Scope: newsletter_lists:write</Badge>BEEHIIV_UPDATE_BY_SUBSCRIPTION_ID<Note title="Currently in beta" icon="b"> Newsletter Lists is currently in beta, the API is subject to change. </Note> Update a newsletter list subscription by subscription ID. An alternative to the update endpoint when you don't have the newsletter list subscription ID. Accepts either a subscription_id or email to identify the subscription. Currently supports unsubscribing a subscription from a newsletter list.需要连接
<Note title="Currently in beta" icon="b"> Newsletter Lists is currently in beta, the API is subject to change. </Note> Update a newsletter list subscription by subscription ID. An alternative to the update endpoint when you don't have the newsletter list subscription ID. Accepts either a subscription_id or email to identify the subscription. Currently supports unsubscribing a subscription from a newsletter list.
认证
需要 Connected AccountTags