# Validate Registration — KonfHub

> Validate a user's email or phone number for a given event. See the documentation

- Key: `konfhub-validate-registration`
- Type: Action (Read-only)
- Version: 0.0.2
- App: KonfHub (`konfhub`) — https://pipedream.com/apps/konfhub.md
- This page (HTML): https://pipedream.com/apps/konfhub/actions/validate-registration
- Hints: read-only · open-world
- Source: https://github.com/PipedreamHQ/pipedream/blob/master/components/konfhub/actions/validate-registration/validate-registration.mjs

## Description

Validate a user's email or phone number for a given event. [See the documentation](https://docs.konfhub.com/#api-Common_APIs-Registration_Validation)

## Props

| Prop | Type | Required | Description |
|---|---|---|---|
| `email` | `string` | No | Email address of the user |
| `phone` | `string` | No | Phone number of the user (with country code) |
| `countryCode` | `string` | No | Country code of the phone number, e.g. +91 or 91 |
| `eventId` | `string` | No | ID of the event. You can obtain this from the Konfhub Dashboard's URL, e.g. if the URL is https://events.konfhub.com/e/fe8c3fbb-8b7d-4268-b9c2-f3a8fa6b31c6/ the event ID is fe8c3fbb-8b7d-4268-b9c2-f3a8fa6b31c6 |
| `ticketId` | `string` | No | ID of the ticket purchased |

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

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: "konfhub-validate-registration",
  arguments: {
    email: "Email Address",
    phone: "Phone Number",
  },
})
```

**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: "konfhub-validate-registration",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    konfhub: { authProvisionId: "apn_xxxxxxx" },
    email: "Email Address",
    phone: "Phone Number",
  },
})

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": "konfhub-validate-registration",
    "configured_props": {
      "konfhub": { "authProvisionId": "apn_xxxxxxx" },
      "email": "Email Address",
      "phone": "Phone Number"
    }
  }'
```

---

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