# ChartMogul — Pipedream Connect

> Subscription Analytics and Revenue Reporting

- API slug: `chartmogul` (use in MCP headers and tool keys)
- Auth: API key (Pipedream-managed)
- Categories: Data Analytics
- Website: https://chartmogul.comd
- This page (HTML): https://pipedream.com/apps/chartmogul
- Tools: 22 actions · 0 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: chartmogul`

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

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

const { tools } = await mcp.listTools()

// e.g. run Add Custom Attributes To Customer Via Email:
const result = await mcp.callTool({
  name: "chartmogul-add-custom-attributes-via-email",
  arguments: {
    customerEmail: "Customer Email",
    custom: ["Custom"],
  },
})
```

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

## API proxy

For a ChartMogul 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.chartmogul.com/v1/ping

curl "https://api.pipedream.com/v1/connect/{project_id}/proxy/aHR0cHM6Ly9hcGkuY2hhcnRtb2d1bC5jb20vdjEvcGluZw?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: "chartmogul-add-custom-attributes-via-email",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    chartmogul: { authProvisionId: "apn_xxxxxxx" },
    customerEmail: "Customer Email",
    custom: ["Custom"],
  },
})
```

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

## Actions (22)

### `chartmogul-add-custom-attributes-via-email` — Add Custom Attributes To Customer Via Email (Write)

Adds custom attributes to customers that have the specified email address. See the docs here

Full schema: https://pipedream.com/apps/chartmogul/actions/add-custom-attributes-via-email.md

### `chartmogul-add-custom-attributes-via-uuid` — Add Custom Attributes To Customer Via UUID (Write)

Adds custom attributes to a given customer. See the docs here

Full schema: https://pipedream.com/apps/chartmogul/actions/add-custom-attributes-via-uuid.md

### `chartmogul-add-tags-via-email` — Add Tags To Customer Via Email (Write)

Adds tags to customers that have the specified email address. See the docs here

Full schema: https://pipedream.com/apps/chartmogul/actions/add-tags-via-email.md

### `chartmogul-add-tags-via-uuid` — Add Tags To Customer Via UUID (Write)

Adds tags to a given customer. See the docs here

Full schema: https://pipedream.com/apps/chartmogul/actions/add-tags-via-uuid.md

### `chartmogul-create-customer` — Create Customer (Write)

Creates a customer object in ChartMogul under the specified data_source See the docs here

Full schema: https://pipedream.com/apps/chartmogul/actions/create-customer.md

### `chartmogul-list-customer-email-options` — List Customer Email Options (Read-only)

Retrieves available options for the Customer Email field.

Full schema: https://pipedream.com/apps/chartmogul/actions/list-customer-email-options.md

### `chartmogul-list-customer-id-options` — List Customer UUID Options (Read-only)

Retrieves available options for the Customer UUID field.

Full schema: https://pipedream.com/apps/chartmogul/actions/list-customer-id-options.md

### `chartmogul-list-data-source-id-options` — List Data Source UUID Options (Read-only)

Retrieves available options for the Data Source UUID field.

Full schema: https://pipedream.com/apps/chartmogul/actions/list-data-source-id-options.md

### `chartmogul-merge-customers` — Merge Customers (Write)

Accepts details of two customer objects that you want to merge. See the docs here

Full schema: https://pipedream.com/apps/chartmogul/actions/merge-customers.md

### `chartmogul-retrieve-all-key-metrics` — Retrieve All Key Metrics (Read-only)

Retrieves all key metrics, for the specified time period. See the docs here

Full schema: https://pipedream.com/apps/chartmogul/actions/retrieve-all-key-metrics.md

### `chartmogul-retrieve-arr` — Retrieve ARR (Read-only)

Retrieves the Annualized Run Rate (ARR), for the specified time period. See the docs here

Full schema: https://pipedream.com/apps/chartmogul/actions/retrieve-arr.md

### `chartmogul-retrieve-arpa` — Retrieve Average Revenue Per Account (ARPA) (Read-only)

Retrieves the Average Revenue Per Account (ARPA), for the specified time period. See the docs here

Full schema: https://pipedream.com/apps/chartmogul/actions/retrieve-arpa.md

### `chartmogul-retrieve-asp` — Retrieve Average Sale Price ASP (Read-only)

Retrieves the Average Sale Price (ASP), for the specified time period. See the docs here

Full schema: https://pipedream.com/apps/chartmogul/actions/retrieve-asp.md

### `chartmogul-retrieve-customer-churn-rate` — Retrieve Customer Churn Rate (Read-only)

Retrieves the Customer Churn Rate, for the specified time period. See the docs here

Full schema: https://pipedream.com/apps/chartmogul/actions/retrieve-customer-churn-rate.md

### `chartmogul-retrieve-customer-count` — Retrieve Customer Count (Read-only)

Retrieves the number of active customers, for the specified time period. See the docs here

Full schema: https://pipedream.com/apps/chartmogul/actions/retrieve-customer-count.md

### `chartmogul-retrieve-ltv` — Retrieve Customer Lifetime Value (Read-only)

Retrieves the Customer Lifetime Value (LTV), for the specified time period. See the docs here

Full schema: https://pipedream.com/apps/chartmogul/actions/retrieve-ltv.md

### `chartmogul-retrieve-customer-profile` — Retrieve Customer Profile (Read-only)

Retrieves a customer object from your ChartMogul account. See the docs here

Full schema: https://pipedream.com/apps/chartmogul/actions/retrieve-customer-profile.md

### `chartmogul-retrieve-mrr` — Retrieve Monthly Recurring Revenue (MRR) (Read-only)

Retrieves the Monthly Recurring Revenue (MRR), for the specified time period. See the docs here

Full schema: https://pipedream.com/apps/chartmogul/actions/retrieve-mrr.md

### `chartmogul-retrieve-mrr-churn-reate` — Retrieve MRR Churn Rate (Read-only)

Retrieves the Net MRR Churn Rate, for the specified time period. See the docs here

Full schema: https://pipedream.com/apps/chartmogul/actions/retrieve-mrr-churn-reate.md

### `chartmogul-search-customers-via-email` — Search Customers Via Email (Read-only)

Returns a list of all customer objects with the specified email address in your ChartMogul account. See the docs here

Full schema: https://pipedream.com/apps/chartmogul/actions/search-customers-via-email.md

### `chartmogul-search-customers-via-external-id` — Search Customers Via External Id (Read-only)

Returns a list of all customer objects with the specified external_id in your ChartMogul account. See the docs here

Full schema: https://pipedream.com/apps/chartmogul/actions/search-customers-via-external-id.md

### `chartmogul-update-customer` — Update Customer (Write)

Updates certain modifiable attributes of a customer object in your ChartMogul account. See the docs here

Full schema: https://pipedream.com/apps/chartmogul/actions/update-customer.md

---

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