# Create Collector — SurveyMonkey

> Create a collector for a survey. A collector is the channel responses come in through — an SMS or email invitation, a web link, or a popup. See the documentation

- Key: `survey_monkey-create-collector`
- Type: Action (Write)
- Version: 0.0.2
- App: SurveyMonkey (`survey_monkey`) — https://pipedream.com/apps/survey-monkey.md
- This page (HTML): https://pipedream.com/apps/survey-monkey/actions/create-collector
- Hints: open-world
- Source: https://github.com/PipedreamHQ/pipedream/blob/master/components/survey_monkey/actions/create-collector/create-collector.mjs

## Description

Create a collector for a survey. A collector is the channel responses come in through — an SMS or email invitation, a web link, or a popup. [See the documentation](https://api.surveymonkey.com/v3/docs?javascript#api-endpoints-post-surveys-survey_id-collectors)

## Props

| Prop | Type | Required | Description |
|---|---|---|---|
| `survey` | `string` | Yes | Select a Survey from the list. Alternatively, you can provide a custom Survey ID. Options are loaded from the connected account. |
| `type` | `string` | Yes | The kind of collector to create. Every type except Web link requires a paid SurveyMonkey plan. |
| `name` | `string` | Yes | A nickname for the collector. |
| `senderEmail` | `string` | No | Sender email for email collectors. The address must be verified in your SurveyMonkey account before invitations will send. |
| `thankYouMessage` | `string` | No | Message shown on the thank you page once a respondent completes the survey. SurveyMonkey treats this as the older form of thank_you_page and recommends that object instead — pass it through Additional Options to use it. |
| `closedPageMessage` | `string` | No | Message shown once the survey is closed. |
| `redirectUrl` | `string` | No | Redirect respondents to this URL on survey completion. |
| `closeDate` | `string` | No | When the collector should close, e.g. 2026-12-03T10:15:30+00:00. |
| `responseLimit` | `integer` | No | Close the collector after this many responses. |
| `anonymousType` | `string` | No | Turns off IP tracking. For email collectors it also removes the respondent's email address and name from the response. |
| `editResponseType` | `string` | No | When respondents can edit their response. |
| `isBrandingEnabled` | `boolean` | No | Whether the popup has SurveyMonkey branding. Only applies to popup collectors. |
| `additionalOptions` | `object` | No | Any other collector option to send in the request body, e.g. {"thank_you_page": {"is_enabled": true, "message": "Thanks!"}} or the popup-only width/height/sample_rate settings. See the documentation for the full list. Note that values typed directly into this field arrive as strings, so pass booleans and numbers from a previous step or an expression when the API expects those types. |

## Run it

**MCP**

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

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

const { tools } = await mcp.listTools()

// listTools() hands your model this tool's input schema, so it can
// fill the arguments itself:
const result = await mcp.callTool({
  name: "survey_monkey-create-collector",
  arguments: {
    survey: "Survey",
    type: "Type",
  },
})
```

**TypeScript**

```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: "survey_monkey-create-collector",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    survey_monkey: { authProvisionId: "apn_xxxxxxx" },
    survey: "Survey",
    type: "Type",
  },
})

console.log(result)
```

**cURL**

```bash
curl -X POST https://api.pipedream.com/v1/connect/{project_id}/actions/run \
  -H "Content-Type: application/json" \
  -H "X-PD-Environment: production" \
  -H "Authorization: Bearer {access_token}" \
  -d '{
    "external_user_id": "{external_user_id}",
    "id": "survey_monkey-create-collector",
    "configured_props": {
      "survey_monkey": { "authProvisionId": "apn_xxxxxxx" },
      "survey": "Survey",
      "type": "Type"
    }
  }'
```

---

- App: https://pipedream.com/apps/survey-monkey.md · All apps: https://pipedream.com/apps
