# Letterdrop — Pipedream Connect

> Let your customers come to you through effective content marketing across SEO, email, and social. YC W20

- API slug: `letterdrop` (use in MCP headers and tool keys)
- Auth: API key (Pipedream-managed)
- Categories: Marketing
- Website: https://letterdrop.com/
- This page (HTML): https://pipedream.com/apps/letterdrop
- Tools: 3 actions · 2 triggers

## Connect via MCP (recommended)

- Endpoint: `https://remote.mcp.pipedream.net/v3`
- Headers: `Authorization: Bearer <token>` · `x-pd-project-id` · `x-pd-environment` · `x-pd-external-user-id` · `x-pd-app-slug: letterdrop`

```ts
import { Client } from "@modelcontextprotocol/sdk/client/index.js"
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js"
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const accessToken = await pd.rawAccessToken

const transport = new StreamableHTTPClientTransport(
  new URL("https://remote.mcp.pipedream.net/v3"),
  {
    requestInit: {
      headers: {
        Authorization: `Bearer ${accessToken}`,
        "x-pd-project-id": process.env.PIPEDREAM_PROJECT_ID!,
        "x-pd-environment": "production",
        "x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
        "x-pd-app-slug": "letterdrop",
      },
    },
  },
)

const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)

const { tools } = await mcp.listTools()

// e.g. run Add Subscriber:
const result = await mcp.callTool({
  name: "letterdrop-add-subscriber",
  arguments: {
    email: "Email",
    welcomeEmail: true,
  },
})
```

Docs: [MCP guide](https://pipedream.com/docs/connect/mcp/developers.md)

## API proxy

For a Letterdrop endpoint with no pre-built tool, the proxy forwards your request with the connected user's credentials attached.

```bash
# The path segment is the target URL, URL-safe base64 encoded:
# https://api.letterdrop.com/api/v1/posts

curl "https://api.pipedream.com/v1/connect/{project_id}/proxy/aHR0cHM6Ly9hcGkubGV0dGVyZHJvcC5jb20vYXBpL3YxL3Bvc3Rz?external_user_id={external_user_id}&account_id=apn_xxxxxxx" \
  -H "Authorization: Bearer {access_token}" \
  -H "x-pd-environment: production"
```

Docs: [API proxy guide](https://pipedream.com/docs/connect/api-proxy.md)

## SDK

```ts
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "letterdrop-add-subscriber",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    letterdrop: { authProvisionId: "apn_xxxxxxx" },
    email: "Email",
    welcomeEmail: true,
  },
})
```

Docs: [Managed auth guide](https://pipedream.com/docs/connect/managed-auth/quickstart.md) · [Tools guide](https://pipedream.com/docs/connect/components.md)

## Actions (3)

### `letterdrop-add-subscriber` — Add Subscriber (Write)

Adds a new subscriber to your Letterdrop publication. See the documentation

Full schema: https://pipedream.com/apps/letterdrop/actions/add-subscriber.md

### `letterdrop-draft-post` — Draft Blog Post (Write)

Drafts a new blog post in your workspace with the required title and content, and optional images and tags. See the documentation

Full schema: https://pipedream.com/apps/letterdrop/actions/draft-post.md

### `letterdrop-remove-subscriber` — Remove Subscriber (Write)

Removes a subscriber from your publication if the email matches an existing one. See the documentation

Full schema: https://pipedream.com/apps/letterdrop/actions/remove-subscriber.md

## Triggers (2)

### `letterdrop-new-post-published-instant` — New Post Published (Instant) (Instant)

Emit new event when a new post gets published on Letterdrop. After creating the source, access Letterdrop UI, go to Settings > Integrations > API and Webhooks > Webhook Endpoints > Setup endpoints and add your source endpoint URL to the respective webhook endpoint. See the documentation

Full schema: https://pipedream.com/apps/letterdrop/triggers/new-post-published-instant.md

### `letterdrop-watch-added-subscribers-instant` — Watch Added Subscribers (Instant) (Instant)

Emit new event when a new subscriber gets added on Letterdrop. After creating the source, access Letterdrop UI, go to Settings > Integrations > API and Webhooks > Webhook Endpoints > Setup endpoints and add your source endpoint URL to the respective webhook endpoint. See the documentation

Full schema: https://pipedream.com/apps/letterdrop/triggers/watch-added-subscribers-instant.md

---

- All apps: https://pipedream.com/apps — index: https://pipedream.com/llms.txt
- Pipedream docs for agents: https://pipedream.com/docs/llms.txt
