# Add New Registrant — WebinarFuel

> Creates a new registrant for a selected webinar. See the documentation

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

## Description

Creates a new registrant for a selected webinar. [See the documentation](https://webinarfuel.docs.apiary.io/#/reference/registrant/registrants-collection/create-registrant/200?mc=reference%2Fregistrant%2Fregistrants-collection%2Fcreate-registrant%2F200)

## Props

| Prop | Type | Required | Description |
|---|---|---|---|
| `webinarId` | `string` | Yes | The ID of the webinar Options are loaded from the connected account. |
| `email` | `string` | Yes | The email of the registrant |
| `firstName` | `string` | Yes | The first name of the registrant |
| `tags` | `string[]` | No | The tags to add to the registrant |
| `webinarSessionId` | `string` | Yes | The webinar session id. Options are loaded from the connected account. |
| `timeZone` | `string` | No | Session TimeZone name. Required if webinar timezone is registrant. Example: America/New_York. |

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

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: "webinarfuel-add-new-registrant",
  arguments: {
    webinarId: "Webinar ID",
    email: "Email",
  },
})
```

**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: "webinarfuel-add-new-registrant",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    webinarfuel: { authProvisionId: "apn_xxxxxxx" },
    webinarId: "Webinar ID",
    email: "Email",
  },
})

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": "webinarfuel-add-new-registrant",
    "configured_props": {
      "webinarfuel": { "authProvisionId": "apn_xxxxxxx" },
      "webinarId": "Webinar ID",
      "email": "Email"
    }
  }'
```

---

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