Drip

Lightweight, dependency-free, in-memory Drip API v2 fake for testing code that uses the language-agnostic Drip REST API.

Default port: 4833

Quick start

Start the server:

import { DripServer } from "./services/drip/src/server.js";

const server = new DripServer(4833);
await server.start();
// ... run your app/tests ...
await server.stop();

Point a client at it. Drip uses HTTP Basic auth with the API token as the username (blank password):

await fetch("http://127.0.0.1:4833/v2/9999999/subscribers", {
  method: "POST",
  headers: {
    Authorization: "Basic " + Buffer.from("parlel-drip-token:").toString("base64"),
    "Content-Type": "application/json",
  },
  body: JSON.stringify({ subscribers: [{ email: "subscriber@parlel.dev", tags: ["lead"] }] }),
});
// => { subscribers: [{ id, email, status, ... }] }

Recorded events are captured and inspectable via /__parlel/*.

Access via MCP / preview URL

When run under the parlel pool, this service is reachable through the MCP gateway and a preview URL at http://127.0.0.1:4833. Use DRIP_BASE_URL to point clients/agents at it. Captured events live at GET /__parlel/messages.

Implemented operations

All /v2/:accountId/* routes require HTTP Basic auth (token as username). Resources are wrapped in arrays. State is in-memory and ephemeral.

Service & inspection operations (parlel extensions)

Surface coverage

This emulator faithfully replicates the API surface most application code and agents exercise. Anything below the supported lines is either an intentional design choice for a fast, zero-cost local emulator (✓ By design) or a candidate for a future release (⟳ Roadmap) — never a silent inaccuracy.

Legend: ✅ fully supported · ◐ accepted (stored, not strictly enforced) · ✓ by design · ⟳ on the roadmap.

FeatureStatus
Subscribers (create/upsert/list/get/delete)✅ Supported
Events (record)✅ Supported
Campaigns listing✅ Supported
Captured event inspection✅ Supported (parlel extension)
Actual workflow / email delivery✓ By design — Captured in-memory for inspection — no real messages sent
Workflows / forms / orders / conversions / webhooks⟳ Roadmap
Subscriber → campaign subscribe lifecycle◐ Not modeled
Real token validity / scope enforcement✓ By design — Any non-empty credential is accepted — no real secrets needed
Rate limiting (429)✓ By design — Never throttles — local tests run at full speed, zero cost

Error shapes

Errors use the Drip envelope { "errors": [{ "code", "message", "attribute" }] }.

StatusWhen
401missing/invalid auth
422invalid/missing email, action, or missing resource array
404unknown subscriber / campaign / endpoint

Manifest

See services/drip/manifest.json:

<!-- parlel:testenv:start -->

Configuration — test.env

Copy these into your test.env (used by the bridge sidecar flow). Tokens are Parlel's seeded test credentials — any non-empty value is accepted by the emulator, so you rarely need to change them. Swap in real credentials only when pointing at the live service in prod.env.

DRIP_API_TOKEN=parlel-drip-token
DRIP_ACCOUNT_ID=9999999
DRIP_BASE_URL=http://parlel-bridge:4833
<!-- parlel:testenv:end -->