# AppsFlyer — Pipedream Connect

> Transform insights into growth. Increase app installs and hit your LTV goals with the #1 measurement partner.

- API slug: `appsflyer` (use in MCP headers and tool keys)
- Auth: API key (Pipedream-managed)
- Categories: Marketing
- Website: https://www.appsflyer.com/
- This page (HTML): https://pipedream.com/apps/appsflyer
- Tools: 3 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: appsflyer`

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

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

const { tools } = await mcp.listTools()

// e.g. run Get Event Types:
const result = await mcp.callTool({
  name: "appsflyer-get-event-types",
  arguments: {
    attributingEntity: "Attributing Entity",
  },
})
```

Docs: [MCP guide](https://pipedream.com/docs/connect/mcp/developers.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: "appsflyer-get-event-types",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    appsflyer: { authProvisionId: "apn_xxxxxxx" },
    attributingEntity: "Attributing Entity",
  },
})
```

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

## Actions (3)

### `appsflyer-get-event-types` — Get Event Types (Read-only)

Returns a list of the available event types for the specified endpoint type. See the documentation

Full schema: https://pipedream.com/apps/appsflyer/actions/get-event-types.md

### `appsflyer-get-message-fields` — Get Message Fields (Read-only)

Returns a list of the available message fields for each platform. See the documentation

Full schema: https://pipedream.com/apps/appsflyer/actions/get-message-fields.md

### `appsflyer-list-app-id-options` — List App ID Options (Read-only)

Retrieves available options for the App ID field.

Full schema: https://pipedream.com/apps/appsflyer/actions/list-app-id-options.md

## Triggers (3)

### `appsflyer-new-in-app-event-instant` — New In-App Event (Instant) (Instant)

Emit new event when an in-app event is recorded, such as a purchase or level completion. See docs here

Full schema: https://pipedream.com/apps/appsflyer/triggers/new-in-app-event-instant.md

### `appsflyer-new-install-instant` — New Install (Instant) (Instant)

Emit new event when a user installs an app tracked by AppsFlyer. See docs here

Full schema: https://pipedream.com/apps/appsflyer/triggers/new-install-instant.md

### `appsflyer-new-uninstall-instant` — New Uninstall (Instant) (Instant)

Emit new event when a user uninstalls an app tracked by AppsFlyer. See docs here

Full schema: https://pipedream.com/apps/appsflyer/triggers/new-uninstall-instant.md

---

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