# Add Meeting Registrant — Zoom

> Registers a participant or multiple participants for a meeting. See the documentation

- Key: `zoom-add-meeting-registrant`
- Type: Action (Write)
- Version: 0.3.12
- App: Zoom (`zoom`) — https://pipedream.com/apps/zoom.md
- This page (HTML): https://pipedream.com/apps/zoom/actions/add-meeting-registrant
- Hints: open-world
- Source: https://github.com/PipedreamHQ/pipedream/blob/master/components/zoom/actions/add-meeting-registrant/add-meeting-registrant.mjs

## Description

Registers a participant or multiple participants for a meeting. [See the documentation](https://developers.zoom.us/docs/api/rest/reference/zoom-api/methods/#operation/meetingRegistrantCreate)

## Props

| Prop | Type | Required | Description |
|---|---|---|---|
| `meetingId` | `string` | Yes | The meeting ID to get details for. Options are loaded from the connected account. |
| `occurrenceIds` | `string` | No | Occurrence IDs. You can find these with the meeting get API. Multiple values separated by comma. |
| `email` | `string` | Yes | A valid email address of the registrant. |
| `firstName` | `string` | Yes | Registrant's first name. |
| `lastName` | `string` | Yes | Registrant's last name. |
| `address` | `string` | No | Registrant's address. |
| `city` | `string` | No | Registrant's city. |
| `country` | `string` | No | Registrant's country. |
| `zip` | `string` | No | Registrant's Zip/Postal code. |
| `state` | `string` | No | Registrant's State/Province. |
| `phone` | `string` | No | Registrant's Phone number. |
| `industry` | `string` | No | Registrant's industry. |
| `org` | `string` | No | Registrant's Organization. |
| `jobTitle` | `string` | No | Registrant's job title. |
| `purchasingTimeFrame` | `string` | No | This field can be included to gauge interest of webinar attendees towards buying your product or service. |
| `roleInPurchaseProcess` | `string` | No | Role in Purchase Process. |
| `noOfEmployees` | `string` | No | Number of Employees. |
| `comments` | `string` | No | A field that allows registrants to provide any questions or comments that they might have. |
| `customQuestions` | `string` | No | Custom questions. |
| `registrants` | `object` | No | Use this field to enter multiple registrants at once. Will override the single registrant fields if provided. Each registrant should be an object with at least the following properties: email, first_name, last_name. Example: [ { "email": "test@example.com", "first_name": "John", "last_name": "Doe" } ] |

## 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": "zoom",
      },
    },
  },
)

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: "zoom-add-meeting-registrant",
  arguments: {
    meetingId: "Meeting ID",
    occurrenceIds: "Occurrence IDs",
  },
})
```

**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: "zoom-add-meeting-registrant",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    zoom: { authProvisionId: "apn_xxxxxxx" },
    meetingId: "Meeting ID",
    occurrenceIds: "Occurrence IDs",
  },
})

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": "zoom-add-meeting-registrant",
    "configured_props": {
      "zoom": { "authProvisionId": "apn_xxxxxxx" },
      "meetingId": "Meeting ID",
      "occurrenceIds": "Occurrence IDs"
    }
  }'
```

---

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