# Beehiiv

Source: https://docs.autessa.com/docs/tools/beehiiv

> Tool types for the Beehiiv connector.

# Beehiiv

Read-only tool types for Beehiiv newsletters: posts and their performance, subscriber lookups, and publication-level growth stats.

Every type on this page requires a [Beehiiv connector](/docs/guide/connectors.md); `connectorId` is the ID of that connector. All Beehiiv tools are also scoped to a `publicationId` (Beehiiv's `pub_...` identifier), since one Beehiiv account can run several publications.

## Get posts **TOOL** `BEEHIIV_GET_POSTS`

Lists posts in a publication, newest first, with optional filters for status (`draft`, `confirmed`, `archived`), delivery platform (`web`, `email`, `both`), and audience tier (`free`, `premium`). All filters default to `all`. This is the discovery tool — agents call it to find the `postId` values the other post tools take.

### Example

```json title="Tool config"
{
  "toolType": "BEEHIIV_GET_POSTS",
  "connectorId": "V1StGXR8Z5",
  "publicationId": "pub_00000000-0000-0000-0000-000000000000",
  "status": "confirmed",
  "limit": 25
}
```

> This tool type requires a connected external account. Pass the connector's ID as `connectorId` in the tool configuration.

**Configuration fields**

- `connectorId` (string (ID)) — Required References a connector by ID.
- `publicationId` (string) — Required - publication to fetch posts from
- `limit` (integer · optional) — Optional, default 10, max 100
- `status` (string · optional) — Optional: "draft", "confirmed", "archived", "all" (default: all)
- `platform` (string · optional) — Optional: "web", "email", "both", "all" (default: all)
- `audience` (string · optional) — Optional: "free", "premium", "all" (default: all)

## Get post by ID **TOOL** `BEEHIIV_GET_POST_BY_ID`

Fetches a single post's full details — title, subtitle, content URLs, publish state, and audience settings. Set `expandStats` to `true` to include the post's engagement stats in the same call instead of making a separate stats request.

### Example

```json title="Tool config"
{
  "toolType": "BEEHIIV_GET_POST_BY_ID",
  "connectorId": "V1StGXR8Z5",
  "publicationId": "pub_00000000-0000-0000-0000-000000000000",
  "postId": "@@{postId}",
  "expandStats": true
}
```

> This tool type requires a connected external account. Pass the connector's ID as `connectorId` in the tool configuration.

**Configuration fields**

- `connectorId` (string (ID)) — Required References a connector by ID.
- `publicationId` (string) — Required - publication the post belongs to
- `postId` (string) — Required - the post ID to fetch
- `expandStats` (boolean · optional) — Optional - whether to include stats (default: false)

## Get post stats **TOOL** `BEEHIIV_GET_POST_STATS`

Returns engagement stats for one post: email recipients, opens, unique opens, clicks, and web views where available. Use it when the agent already knows which post it cares about and only needs the numbers.

### Example

```json title="Tool config"
{
  "toolType": "BEEHIIV_GET_POST_STATS",
  "connectorId": "V1StGXR8Z5",
  "publicationId": "pub_00000000-0000-0000-0000-000000000000",
  "postId": "@@{postId}"
}
```

> This tool type requires a connected external account. Pass the connector's ID as `connectorId` in the tool configuration.

**Configuration fields**

- `connectorId` (string (ID)) — Required References a connector by ID.
- `publicationId` (string) — Required - publication the post belongs to
- `postId` (string) — Required - the post ID to get stats for

## Get aggregate stats **TOOL** `BEEHIIV_GET_AGGREGATE_STATS`

Returns publication-wide aggregate stats across posts — totals and averages rather than per-post numbers. The `status` and `platform` filters narrow which posts count toward the aggregate, so an agent can compare, say, email-only performance against web.

### Example

```json title="Tool config"
{
  "toolType": "BEEHIIV_GET_AGGREGATE_STATS",
  "connectorId": "V1StGXR8Z5",
  "publicationId": "pub_00000000-0000-0000-0000-000000000000",
  "platform": "email"
}
```

> This tool type requires a connected external account. Pass the connector's ID as `connectorId` in the tool configuration.

**Configuration fields**

- `connectorId` (string (ID)) — Required References a connector by ID.
- `publicationId` (string) — Required - publication to get aggregate stats for
- `status` (string · optional) — Optional: "draft", "confirmed", "archived", "all" (default: all)
- `platform` (string · optional) — Optional: "web", "email", "both", "all" (default: all)

## List subscriptions **TOOL** `BEEHIIV_LIST_SUBSCRIPTIONS`

Lists a publication's subscriptions with optional filters for status (`validating`, `invalid`, `pending`, `active`, `inactive`), tier (`free`, `premium`), and creation date (`YYYY/MM/DD`). Results are cursor-paginated: pass the `cursor` from one response into the next call to keep walking the list (page size via `limit`, max 100).

### Example

```json title="Tool config"
{
  "toolType": "BEEHIIV_LIST_SUBSCRIPTIONS",
  "connectorId": "V1StGXR8Z5",
  "publicationId": "pub_00000000-0000-0000-0000-000000000000",
  "status": "active",
  "tier": "premium",
  "limit": 100
}
```

> This tool type requires a connected external account. Pass the connector's ID as `connectorId` in the tool configuration.

**Configuration fields**

- `connectorId` (string (ID)) — Required References a connector by ID.
- `publicationId` (string) — Required - publication to list subscriptions for
- `limit` (integer · optional) — Optional, default 10, max 100
- `status` (string · optional) — Optional: "validating", "invalid", "pending", "active", "inactive", "all" (default: all)
- `tier` (string · optional) — Optional: "free", "premium", "all" (default: all)
- `creationDate` (string · optional) — Optional: Filter by creation date (format: YYYY/MM/DD)
- `cursor` (string · optional) — Optional: Cursor for pagination

## Get subscriber by email **TOOL** `BEEHIIV_GET_SUBSCRIBER_BY_EMAIL`

Looks up a single subscriber by email address and returns their subscription record — status, tier, signup source, and UTM attribution. The address is URL-encoded for you, so raw emails with `+` tags are fine.

### Example

```json title="Tool config"
{
  "toolType": "BEEHIIV_GET_SUBSCRIBER_BY_EMAIL",
  "connectorId": "V1StGXR8Z5",
  "publicationId": "pub_00000000-0000-0000-0000-000000000000",
  "email": "@@{subscriberEmail}"
}
```

> This tool type requires a connected external account. Pass the connector's ID as `connectorId` in the tool configuration.

**Configuration fields**

- `connectorId` (string (ID)) — Required References a connector by ID.
- `publicationId` (string) — Required - publication to search in
- `email` (string) — Required - email address to search for (will be URL encoded)

## Get subscriber stats **TOOL** `BEEHIIV_GET_SUBSCRIBER_STATS`

Returns subscriber-count stats for the publication, optionally bounded by `startDate` and `endDate` (`YYYY/MM/DD`) to measure growth over a window. Useful for agents that report on list growth or compare acquisition periods.

### Example

```json title="Tool config"
{
  "toolType": "BEEHIIV_GET_SUBSCRIBER_STATS",
  "connectorId": "V1StGXR8Z5",
  "publicationId": "pub_00000000-0000-0000-0000-000000000000",
  "startDate": "2026/01/01",
  "endDate": "2026/06/30"
}
```

> This tool type requires a connected external account. Pass the connector's ID as `connectorId` in the tool configuration.

**Configuration fields**

- `connectorId` (string (ID)) — Required References a connector by ID.
- `publicationId` (string) — Required - publication to get subscriber stats for
- `startDate` (string · optional) — Optional: Start date for subscriber count (format: YYYY/MM/DD)
- `endDate` (string · optional) — Optional: End date for subscriber count (format: YYYY/MM/DD)

## Related

- [Connectors](/docs/guide/connectors.md)
- [Tools guide](/docs/guide/agentic/tools.md)
- [Mailchimp](/docs/tools/mailchimp.md)
- [Ghost](/docs/tools/ghost.md)

