# Airtop — Pipedream Connect

> Build powerful web agents by chatting with AI

- API slug: `airtop` (use in MCP headers and tool keys)
- Auth: API key (Pipedream-managed)
- Categories: Artificial Intelligence (AI)
- Website: http://airtop.ai/
- This page (HTML): https://pipedream.com/apps/airtop
- Tools: 7 actions · 1 trigger

## 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: airtop`

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

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

const { tools } = await mcp.listTools()

// e.g. run Create Session:
const result = await mcp.callTool({
  name: "airtop-create-session",
  arguments: {
    profileName: "Profile Name",
    saveProfileOnTermination: true,
  },
})
```

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

## API proxy

For a Airtop 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.airtop.ai/api/v1/sessions

curl "https://api.pipedream.com/v1/connect/{project_id}/proxy/aHR0cHM6Ly9hcGkuYWlydG9wLmFpL2FwaS92MS9zZXNzaW9ucw?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: "airtop-create-session",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    airtop: { authProvisionId: "apn_xxxxxxx" },
    profileName: "Profile Name",
    saveProfileOnTermination: true,
  },
})
```

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

## Actions (7)

### `airtop-create-session` — Create Session (Write)

Create a new cloud browser session. See the documentation

Full schema: https://pipedream.com/apps/airtop/actions/create-session.md

### `airtop-create-window` — Create Window (Write)

Create a new browser window in an active session. See the documentation

Full schema: https://pipedream.com/apps/airtop/actions/create-window.md

### `airtop-end-session` — End Session (Write)

End a browser session. See the documentation

Full schema: https://pipedream.com/apps/airtop/actions/end-session.md

### `airtop-list-session-id-options` — List Session ID Options (Read-only)

Retrieves available options for the Session ID field.

Full schema: https://pipedream.com/apps/airtop/actions/list-session-id-options.md

### `airtop-load-url` — Load URL (Write)

Navigate a browser window to a specific URL. See the documentation

Full schema: https://pipedream.com/apps/airtop/actions/load-url.md

### `airtop-query-page` — Query Page (Read-only)

Extract data or ask questions about page content using AI. See the documentation

Full schema: https://pipedream.com/apps/airtop/actions/query-page.md

### `airtop-scrape-content` — Scrape Content (Read-only)

Scrape structured content from a web page using AI. See the documentation

Full schema: https://pipedream.com/apps/airtop/actions/scrape-content.md

## Triggers (1)

### `airtop-new-session-created` — New Session Created (Polling)

Emit new event when a new session is created in Airtop. See the documentation

Full schema: https://pipedream.com/apps/airtop/triggers/new-session-created.md

---

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