Beehiiv
beehiivBeehiiv is a newsletter platform for managing publications, subscribers, posts, automations, audience engagement, and monetization.
Acciones disponibles (11)
Cada acción es una operación que el agente puede ejecutar contra este conector. Haz clic en una acción para ver sus parámetros.
Create Draft PostBEEHIIV_CREATE_DRAFT_POSTAcciónCreate an unscheduled draft post from HTML content. This tool never confirms, publishes, schedules, or sends the post. Beehiiv creates posts asynchronously; the returned ID is stable while background creation finishes.
BEEHIIV_CREATE_DRAFT_POSTAcciónCreate an unscheduled draft post from HTML content. This tool never confirms, publishes, schedules, or sends the post. Beehiiv creates posts asynchronously; the returned ID is stable while background creation finishes.
Parámetros de entrada
titlestringObligatorioDraft post title.
subtitlestringOptional draft subtitle.
web_slugstringWeb slug saved on the draft.
body_htmlstringObligatorioDraft body as raw HTML. Beehiiv strips style and link tags, so use inline styles.
recipientsobjectOptional future targeting. When supplied, both web and email audiences are required.
content_tagsstring[]Content tags to assign to the draft.
hide_from_feedbooleanWhether the eventual web post should be hidden from the publication feed.
publication_idstringObligatorioPublication ID, beginning with pub_.
post_template_idstringPost template ID to use as the draft base.
reply_to_addressstringVerified publication reply-to address; Beehiiv rejects unverified addresses.
email_preview_textstringPreview text saved on the draft.
email_subject_linestringSubject line saved on the draft.
newsletter_list_idstringNewsletter list whose subscribers would be targeted if this draft is later published.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create SegmentBEEHIIV_CREATE_SEGMENTAcciónCreate an audience segment from explicit subscription IDs, explicit emails, or custom-field rules; returns the segment and its initial calculation status.
BEEHIIV_CREATE_SEGMENTAcciónCreate an audience segment from explicit subscription IDs, explicit emails, or custom-field rules; returns the segment and its initial calculation status.
Parámetros de entrada
namestringObligatorioUnique segment name within the publication.
inputanyObligatorioSegment definition using exactly one subscriptions, emails, or custom_fields payload.
publication_idstringObligatorioPublication ID, beginning with pub_.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create SubscriptionBEEHIIV_CREATE_SUBSCRIPTIONAcciónCreate a new publication subscription without reactivating an unsubscribed address or sending a welcome email; supports attribution, initial custom fields, and newsletter-list assignment.
BEEHIIV_CREATE_SUBSCRIPTIONAcciónCreate a new publication subscription without reactivating an unsubscribed address or sending a welcome email; supports attribution, initial custom fields, and newsletter-list assignment.
Parámetros de entrada
emailstringObligatorioConsenting subscriber's email address.
utm_mediumstringAcquisition medium for this subscription.
utm_sourcestringAcquisition source for this subscription.
utm_campaignstringAcquisition campaign for this subscription.
custom_fieldsobject[]Initial values for existing custom fields. Beehiiv discards unknown field names.
publication_idstringObligatorioPublication ID, beginning with pub_.
referring_sitestringWebsite that referred the subscriber.
newsletter_list_idsstring[]Newsletter list IDs in this publication to join when the subscription is created.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List Custom FieldsBEEHIIV_LIST_CUSTOM_FIELDSAcciónList the custom-field definitions available for subscriber metadata and dynamic audience segments in a publication, returning one page controlled by page and limit with pagination metadata for retrieving additional fields.
BEEHIIV_LIST_CUSTOM_FIELDSAcciónList the custom-field definitions available for subscriber metadata and dynamic audience segments in a publication, returning one page controlled by page and limit with pagination metadata for retrieving additional fields.
Parámetros de entrada
pageintegerOne-based page number (1-100).
limitintegerMaximum custom fields to return on this page (1-100).
publication_idstringObligatorioPublication ID, beginning with pub_.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List PostsBEEHIIV_LIST_POSTSAcciónSearch a publication's posts by status, audience, channel, slug, tags, or author and optionally include content, recipients, or statistics.
BEEHIIV_LIST_POSTSAcciónSearch a publication's posts by status, audience, channel, slug, tags, or author and optionally include content, recipients, or statistics.
Parámetros de entrada
pageintegerOne-based page number (1-100).
limitintegerMaximum posts to return on this page (1-100).
slugsstring[]Exact post slugs to match.
expandstring[]Additional post data to include. Rendered content can make responses large, so request only the formats needed.
statusstringenumPost status to return.
draftconfirmedarchivedallauthorsstring[]Case-insensitive author names to match.
audiencestringenumAudience tier to return.
freepremiumallorder_bystringenumField used to order posts.
createdpublish_datedisplayed_dateplatformstringenumPublishing channel to return.
webemailbothalldirectionstringenumSort direction.
ascdesccontent_tagsstring[]Return posts having any of these content tags.
publication_idstringObligatorioPublication ID, beginning with pub_.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List PublicationsBEEHIIV_LIST_PUBLICATIONSAcciónList publications accessible to the API key, optionally including publication statistics; use the returned publication IDs with publication-scoped tools.
BEEHIIV_LIST_PUBLICATIONSAcciónList publications accessible to the API key, optionally including publication statistics; use the returned publication IDs with publication-scoped tools.
Parámetros de entrada
pageintegerOne-based page number (1-100).
limitintegerMaximum publications to return on this page (1-100).
expandstring[]Statistics to include for each publication.
order_bystringenumField used to order publications.
creatednamedirectionstringenumSort direction.
ascdesc
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List Segment MembersBEEHIIV_LIST_SEGMENT_MEMBERSAcciónList full subscriber records currently included in an audience segment, optionally including stats, custom fields, referrals, tags, or premium tiers. The response contains subscriber PII.
BEEHIIV_LIST_SEGMENT_MEMBERSAcciónList full subscriber records currently included in an audience segment, optionally including stats, custom fields, referrals, tags, or premium tiers. The response contains subscriber PII.
Parámetros de entrada
pageintegerOne-based page number (1-100).
limitintegerMaximum members to return on this page (1-100).
expandstring[]Related subscriber data to include.
segment_idstringObligatorioSegment ID, beginning with seg_.
publication_idstringObligatorioPublication ID, beginning with pub_.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List SegmentsBEEHIIV_LIST_SEGMENTSAcciónList audience segments in a publication, filtered by segment type or calculation status, with optional latest statistics.
BEEHIIV_LIST_SEGMENTSAcciónList audience segments in a publication, filtered by segment type or calculation status, with optional latest statistics.
Parámetros de entrada
pageintegerOne-based page number (1-100).
limitintegerMaximum segments to return on this page (1-100).
statusstringenumCalculation status to return.
pendingprocessingcompletedfailedallorder_bystringenumField used to order segments.
createdlast_calculateddirectionstringenumSort direction.
ascdescsegment_typestringenumSegment type to return.
dynamicstaticmanualallinclude_statsbooleanInclude the latest calculated segment statistics.
publication_idstringObligatorioPublication ID, beginning with pub_.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List SubscriptionsBEEHIIV_LIST_SUBSCRIPTIONSAcciónSearch a publication's subscriptions by exact email or filter by status and tier, returning one cursor-controlled page of subscriber records.
BEEHIIV_LIST_SUBSCRIPTIONSAcciónSearch a publication's subscriptions by exact email or filter by status and tier, returning one cursor-controlled page of subscriber records.
Parámetros de entrada
tierstringenumSubscription tier to return.
freepremiumallemailstringExact subscriber email to find; matching is case-insensitive.
limitintegerMaximum subscriptions to return on this page (1-100).
cursorstringOpaque next_cursor from a previous response. Omit for the first page and pass it back unchanged to continue.
expandstring[]Related subscription data to include.
statusstringenumSubscription status to return.
validatinginvalidpendingactiveinactivealldirectionstringenumOrder by creation time ascending or descending.
ascdesccreation_datestringReturn subscriptions created on this date, formatted YYYY/MM/DD.
publication_idstringObligatorioPublication ID, beginning with pub_.
premium_tier_idsstring[]Premium tier IDs used to narrow results.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Update Draft PostBEEHIIV_UPDATE_DRAFT_POSTAcciónUpdate content or presentation settings on an existing draft after verifying it is still a draft; refuses confirmed, archived, or sent posts and cannot publish or schedule.
BEEHIIV_UPDATE_DRAFT_POSTAcciónUpdate content or presentation settings on an existing draft after verifying it is still a draft; refuses confirmed, archived, or sent posts and cannot publish or schedule.
Parámetros de entrada
titlestringReplacement draft title.
post_idstringObligatorioDraft post ID, beginning with post_.
subtitlestringReplacement draft subtitle.
web_slugstringReplacement web slug.
body_htmlstringReplacement raw HTML body. Beehiiv strips style and link tags, so use inline styles.
recipientsobjectReplacement future web and email targeting. Both web and email objects are required and each channel needs tier_ids or include_segment_ids.
content_tagsstring[]Complete replacement set of content tags; an empty array clears all tags.
hide_from_feedbooleanWhether the eventual web post should be hidden from the publication feed.
publication_idstringObligatorioPublication ID, beginning with pub_.
reply_to_addressstringVerified publication reply-to address.
email_preview_textstringReplacement preview text saved on the draft.
email_subject_linestringReplacement subject line saved on the draft.
newsletter_list_idstringNewsletter list to associate with the draft. Omit to leave unchanged.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Update Subscription Custom FieldsBEEHIIV_UPDATE_SUBSCRIPTION_CUSTOM_FIELDSAcciónSet or remove custom-field values on one subscription without changing its email, tier, billing link, or subscribed status.
BEEHIIV_UPDATE_SUBSCRIPTION_CUSTOM_FIELDSAcciónSet or remove custom-field values on one subscription without changing its email, tier, billing link, or subscribed status.
Parámetros de entrada
custom_fieldsobject[]ObligatorioOne or more custom-field changes. Field names must already exist in the publication.
publication_idstringObligatorioPublication ID, beginning with pub_.
subscription_idstringObligatorioSubscription ID, beginning with sub_.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not