# Register for Webinar — StealthSeminar

> Register for a webinar. See the documentation

- Key: `stealthseminar-register-for-webinar`
- Type: Action (Write)
- Version: 0.0.1
- App: StealthSeminar (`stealthseminar`) — https://pipedream.com/apps/stealthseminar.md
- This page (HTML): https://pipedream.com/apps/stealthseminar/actions/register-for-webinar
- Hints: open-world
- Source: https://github.com/PipedreamHQ/pipedream/blob/master/components/stealthseminar/actions/register-for-webinar/register-for-webinar.mjs

## Description

Register for a webinar. [See the documentation](https://docs.stealthseminarapp.com/#register-for-a-webinar)

## Props

| Prop | Type | Required | Description |
|---|---|---|---|
| `shortId` | `string` | Yes | The short ID of a webinar. To find your short ID, go to My Webinars, then find your event and click on copy to clipboard for either Registration Page or Webinar Watch Page. The shortId is the last 6 characters of the copied URL. |
| `email` | `string` | Yes | The registrant's email address |
| `startTime` | `string` | Yes | The start time of the event for which the user is registering, in ISO 8601 format Options are loaded from the connected account. |
| `name` | `string` | No | The registrant's name. If no name is provided, the attendee will appear as 'Guest-######' in webinar interactions. |
| `yesterdaysNow` | `boolean` | No | If true, the registration is for a "Watch Yesterday's Webinar Now" event |
| `registrationPageId` | `string` | No | Identifier of the registration page from which the user registered |
| `smsNumber` | `string` | No | Phone number for sending SMS reminders |
| `timezone` | `string` | No | The registrant's timezone - one of the TZ database names |
| `gdprConsentReceived` | `boolean` | No | Whether the registrant has given GDPR consent |
| `linkParams` | `object` | No | Object containing any marketing parameters (v1, v2, v3, v4, v5) or UTM parameters (utm_source, utm_medium, utm_campaign, utm_term, utm_content) and their values |
| `customFields` | `object` | No | Object containing any additional registration information about the attendee. These values will be validated against the webinar's registration field configuration |

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

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: "stealthseminar-register-for-webinar",
  arguments: {
    shortId: "Short 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: "stealthseminar-register-for-webinar",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    stealthseminar: { authProvisionId: "apn_xxxxxxx" },
    shortId: "Short 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": "stealthseminar-register-for-webinar",
    "configured_props": {
      "stealthseminar": { "authProvisionId": "apn_xxxxxxx" },
      "shortId": "Short ID",
      "email": "Email"
    }
  }'
```

---

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