Atualizar post no beehiiv, por uma API

Atualiza um post; só nos planos Pro e Enterprise. Só os campos enviados mudam, e body_content substitui todo o conteúdo. scheduled_at não pode mudar depois que o post foi enviado.

Identificador
beehiiv_update_post

A chamada

POST https://connect.reportei.com/api/tools/beehiiv_update_post/execute
Authorization: Bearer <merchant token>
x-customer-token: <customer token>
Content-Type: application/json
Accept: application/json

{
  "customer_toolkit": "<connection UUID>",
  "arguments": {
    "publicationId": "<publicationId>",
    "postId": "<postId>"
  }
}

Seu sistema envia o id da conexão do cliente e os argumentos da tool. Os headers são os mesmos de toda a API do Connect: o token do seu produto e o token do cliente.

Parâmetros

As descrições dos parâmetros seguem a documentação oficial do app, em inglês.

ParâmetroTipoObrigatórioDescrição
publicationIdstringSimId of the publication, from List publications.
postIdstringSimId of the post, from List posts or Create post.
titlestringNãoTitle of the post.
subtitlestringNãoSubtitle of the post.
body_contentstringNãoNew content as raw HTML, replacing the current one. beehiiv removes style and link tags, so style the elements with inline style attributes.
statusstringNãoconfirmed sends and publishes the post right away, or at scheduled_at.Valores: draft, confirmed
scheduled_atstringNãoWhen to publish, for example 2026-11-05T12:00:00Z.
thumbnail_image_urlstringNãoURL of the thumbnail image.
content_tagsarrayNãoContent tags of the post.
recipientsobjectNãoWho gets it on each channel, with tier_ids free, premium or all. Leave a channel out to skip it.
email_settingsobjectNãoEmail options: email_subject_line, email_preview_text, reply_to_address (a verified reply-to address of the publication) and whether the title, subtitle and byline show in the email.
web_settingsobjectNãoWeb options: the slug of the post URL, hide_from_feed, and whether the title, subtitle and thumbnail show on the web.
seo_settingsobjectNãoSearch and social metadata of the web version.
social_sharestringNãoSocial share buttons of the post.Valores: comments_and_likes_only, with_comments_and_likes, top, none
email_capture_type_overridestringNãoHow the web version asks visitors for their email.Valores: none, gated, popup
custom_link_tracking_enabledbooleanNãotrue turns on custom link tracking.
utm_params_enabledbooleanNãoWhether UTM parameters go on the links.
utm_sourcestringNãoutm_source of the links.
utm_mediumstringNãoutm_medium of the links.
utm_campaignstringNãoutm_campaign of the links.

Conexões possíveis

O seu cliente conecta a conta do beehiiv uma vez, por um dos modos abaixo. A mesma conexão serve para todas as tools do toolkit.

Chave de API

O cliente cola a chave do app numa tela do Connect, ou o seu sistema envia a chave por POST /api/customer-toolkits, sem tela.

A resposta

Em caso de sucesso, o Connect preserva o status e o corpo da resposta do app. Erros HTTP retornados pelo app usam o envelope {error, api_error}; falhas de autenticação ou validação podem ocorrer antes da execução. O header X-Toolkit-Execution-Id identifica a execução registrada, consultável em GET /api/tools/executions/{uuid}.

Pronta para agentes de IA

O input desta tool é um JSON Schema, disponível em GET /api/tools/beehiiv_update_post. Ele vira a definição de tool do seu agente sem conversão.

Outras tools do beehiiv

Ver as 12 tools

Toolkits da mesma categoria

Ver os 100 toolkits

Veja o Connect aplicado ao seu produto.

Teste por 15 dias sem cartão, ou mostre seu cenário ao nosso time.