# New Custom webhook events — SurveyMonkey

> Emit new custom webhook event

- Key: `survey_monkey-custom-webhook-events`
- Type: Trigger (Instant)
- Version: 0.0.4
- App: SurveyMonkey (`survey_monkey`) — https://pipedream.com/apps/survey-monkey.md
- This page (HTML): https://pipedream.com/apps/survey-monkey/triggers/custom-webhook-events
- Source: https://github.com/PipedreamHQ/pipedream/blob/master/components/survey_monkey/sources/custom-webhook-events/custom-webhook-events.mjs

## Props

| Prop | Type | Required | Description |
|---|---|---|---|
| `objectType` | `string` | Yes | Object type to filter events by: survey or collector. NOTE: Setting object_type to collector and event_type to collector_created will result in a 400 error. Object type should not be provided for survey_created webhook |
| `eventType` | `string` | Yes | Event type that the webhook listens to |

## Returns

Events emitted by SurveyMonkey.

## Run it

**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 deployed = await pd.triggers.deploy({
  id: "survey_monkey-custom-webhook-events",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    survey_monkey: { authProvisionId: "apn_xxxxxxx" },
    objectType: "Object type",
    eventType: "Event types",
  },
  webhookUrl: "https://example.com/webhooks/survey-monkey",
})

console.log(deployed.id)
```

**cURL**

```bash
curl -X POST https://api.pipedream.com/v1/connect/{project_id}/triggers/deploy \
  -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-custom-webhook-events",
    "webhook_url": "https://example.com/webhooks/survey-monkey",
    "configured_props": {
      "survey_monkey": { "authProvisionId": "apn_xxxxxxx" },
      "objectType": "Object type",
      "eventType": "Event types"
    }
  }'
```

**MCP**

MCP servers expose SurveyMonkey actions as on-demand tools.

New Custom webhook events is an event source, so your application deploys it with the Connect SDK or API and then either receives each event at a webhook URL or retrieves events on demand with the trigger events API.

## Event delivery

Every event is sent to the HTTP endpoint you choose when you deploy the source. Or: no webhook required — your app or agent can fetch recent events from the [trigger events API](https://pipedream.com/docs/connect/api-reference/list-trigger-events.md) instead.

---

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