# AttractWell — Pipedream Connect

> Grow Your Coaching Business Faster With Funnels, Blog, Website, CRM, Courses, Payments, Email & Text Marketing, Follow-Up System, Zoom, and More.

- API slug: `attractwell` (use in MCP headers and tool keys)
- Auth: OAuth (Pipedream-managed)
- Categories: Business Management
- Website: https://attractwell.com/
- This page (HTML): https://pipedream.com/apps/attractwell
- Tools: 9 actions · 3 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: attractwell`

```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": "attractwell",
      },
    },
  },
)

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

const { tools } = await mcp.listTools()

// e.g. run Create or Update Contact:
const result = await mcp.callTool({
  name: "attractwell-create-update-contact",
  arguments: {
    email: "Email",
    mobilePhone: "Mobile Phone",
  },
})
```

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

## API proxy

For a AttractWell 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.attractwell.com/api/v1/campaigns

curl "https://api.pipedream.com/v1/connect/{project_id}/proxy/aHR0cHM6Ly9hcGkuYXR0cmFjdHdlbGwuY29tL2FwaS92MS9jYW1wYWlnbnM?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: "attractwell-create-update-contact",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    attractwell: { authProvisionId: "apn_xxxxxxx" },
    email: "Email",
    mobilePhone: "Mobile Phone",
  },
})
```

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

## Actions (9)

### `attractwell-create-update-contact` — Create or Update Contact (Write)

Creates or updates a contact with the provided identification and contact details.

Full schema: https://pipedream.com/apps/attractwell/actions/create-update-contact.md

### `attractwell-lesson-approval` — Lesson Approval (Write)

Approves, rejects, or unapproves a lesson in the AttractWell system based on the selected status.

Full schema: https://pipedream.com/apps/attractwell/actions/lesson-approval.md

### `attractwell-list-automation-id-options` — List Automation ID Options (Read-only)

Retrieves available options for the Automation ID field.

Full schema: https://pipedream.com/apps/attractwell/actions/list-automation-id-options.md

### `attractwell-list-campaign-id-options` — List Campaign ID Options (Read-only)

Retrieves available options for the Campaign ID field.

Full schema: https://pipedream.com/apps/attractwell/actions/list-campaign-id-options.md

### `attractwell-list-class-id-options` — List Class ID Options (Read-only)

Retrieves available options for the Class ID field.

Full schema: https://pipedream.com/apps/attractwell/actions/list-class-id-options.md

### `attractwell-list-follow-up-plan-id-options` — List Follow-Up Plan ID Options (Read-only)

Retrieves available options for the Follow-Up Plan ID field.

Full schema: https://pipedream.com/apps/attractwell/actions/list-follow-up-plan-id-options.md

### `attractwell-list-lesson-id-options` — List Lesson ID Options (Read-only)

Retrieves available options for the Lesson ID field.

Full schema: https://pipedream.com/apps/attractwell/actions/list-lesson-id-options.md

### `attractwell-list-tag-options` — List Tag Options (Read-only)

Retrieves available options for the Tag field.

Full schema: https://pipedream.com/apps/attractwell/actions/list-tag-options.md

### `attractwell-list-vault-id-options` — List Vault ID Options (Read-only)

Retrieves available options for the Vault ID field.

Full schema: https://pipedream.com/apps/attractwell/actions/list-vault-id-options.md

## Triggers (3)

### `attractwell-contact-joins-vault-instant` — Contact Joins Vault (Instant) (Instant)

Emit new event when a contact becomes a new member of a vault.

Full schema: https://pipedream.com/apps/attractwell/triggers/contact-joins-vault-instant.md

### `attractwell-new-event-registration-instant` — New Event Registration (Instant) (Instant)

Emit new event when a new registration for an event takes place.

Full schema: https://pipedream.com/apps/attractwell/triggers/new-event-registration-instant.md

### `attractwell-new-lead-from-landing-page-instant` — New Lead from Landing Page (Instant) (Instant)

Emit new event when a lead is gained from a landing page.

Full schema: https://pipedream.com/apps/attractwell/triggers/new-lead-from-landing-page-instant.md

---

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