# beehiiv integrations: subscriptions and posts

> Create a subscription, create a post and create a segment in beehiiv, and start a workflow when beehiiv sends “Post sent”.

**Canonical page:** https://tray.ai/connectors/beehiiv-integrations/
**Categories:** Marketing
**Connects through:** HTTP Connector

## Overview

beehiiv is a newsletter platform for writing and sending posts, growing a subscriber list, running paid tiers, and earning from ads. Tray.ai connects to beehiiv through the HTTP Connector, so your workflows can call the beehiiv API alongside the rest of your stack.

## Use cases

### Subscriptions

Read, create, update, and delete subscriptions in beehiiv from any Tray.ai workflow. The beehiiv API covers calls such as list subscriptions and get a subscription.

- List subscriptions
- Get a subscription
- Create a subscription

### Posts

Read, create, update, and delete posts in beehiiv from any Tray.ai workflow. The beehiiv API covers calls such as list posts and get a post.

- List posts
- Get a post
- Create a post

### Segments

Read, create, and delete segments in beehiiv from any Tray.ai workflow. The beehiiv API covers calls such as list segments and get a segment.

- List segments
- Get a segment
- Create a segment

### Custom fields

Read, create, update, and delete custom fields in beehiiv from any Tray.ai workflow. The beehiiv API covers calls such as list custom fields and create a custom field.

- List custom fields
- Create a custom field
- Update a custom field

### Automations

Read and create automations in beehiiv from any Tray.ai workflow. The beehiiv API covers calls such as list automations and get an automation.

- List automations
- Get an automation
- Add a subscription to an automation

### Newsletter lists

Read, create, update, and delete newsletter lists in beehiiv from any Tray.ai workflow. The beehiiv API covers calls such as list newsletter lists and create a newsletter list.

- List newsletter lists
- Create a newsletter list
- Update a newsletter list

## Challenges Tray.ai solves

### Keeping beehiiv credentials out of logs

A raw API call usually means pasting a key or token into the request, where it ends up in step inputs, logs, and screenshots.

**How Tray.ai helps:** Store beehiiv credentials once as a Tray.ai authentication and reference them from the HTTP Connector. Tray.ai masks authentication values in logs, so the secret never shows up in a step's input or output.

### Going from the beehiiv API docs to a working call

Translating an example request from API docs into a workflow step means copying the method, URL, headers, and body by hand.

**How Tray.ai helps:** Paste a cURL example from the beehiiv API docs into the HTTP Connector and Tray.ai fills in the method, URL, headers, and body for you.

### Handling files and non-JSON responses

Not every API answers in JSON. Some return XML, files, or binary data, or expect a multipart upload.

**How Tray.ai helps:** The HTTP Connector parses JSON and XML responses, returns files you can pass to the next step, and sends multipart form data for uploads.

## Frequently asked questions

### Does Tray.ai connect to beehiiv?

Yes. Tray.ai connects to beehiiv through the HTTP Connector, which calls the beehiiv API directly. Any call the beehiiv API documents can run as a step in a Tray.ai workflow.

### How does Tray.ai authenticate with beehiiv?

The beehiiv API uses a bearer token and OAuth 2.0. You save it once as a Tray.ai authentication, and the HTTP Connector adds it to every request.

### Can I get a dedicated beehiiv connector?

beehiiv runs through the HTTP Connector rather than a dedicated connector. If your team wants one, the Tray.ai connector SDK can build a dedicated beehiiv connector from the beehiiv API.

## Learn more

- Intelligent Integration: https://tray.ai/platform/intelligent-ipaas/
- Merlin Agent Builder: https://tray.ai/platform/merlin-agent-builder/
- Agent Gateway for MCP: https://tray.ai/platform/agent-gateway/
- Book a demo: https://tray.ai/contact/
