# Create Event — Evenium

> Creates a new event. See the documentation

- Key: `evenium-create-event`
- Type: Action (Write)
- Version: 0.0.1
- App: Evenium (`evenium`) — https://pipedream.com/apps/evenium.md
- This page (HTML): https://pipedream.com/apps/evenium/actions/create-event
- Hints: open-world
- Source: https://github.com/PipedreamHQ/pipedream/blob/master/components/evenium/actions/create-event/create-event.mjs

## Description

Creates a new event. [See the documentation](https://static.evenium.com/api-docs/organizer/index-json.html#_create_events)

## Props

| Prop | Type | Required | Description |
|---|---|---|---|
| `title` | `string` | Yes | The title of the event |
| `startDate` | `string` | Yes | The start date of the event in RFC 3339 format (e.g., 2010-07-10T07:00:00.000Z) |
| `endDate` | `string` | Yes | The end date of the event in RFC 3339 format (e.g., 2010-07-12T17:00:00.000Z) |
| `description` | `string` | No | The description of the event |
| `addressName` | `string` | No | The name of the address |
| `addressStreet` | `string` | No | The street of the address |
| `addressCity` | `string` | No | The city of the address |
| `addressCountryCode` | `string` | No | The country code of the address |

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

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: "evenium-create-event",
  arguments: {
    title: "Title",
    startDate: "Start Date",
  },
})
```

**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: "evenium-create-event",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    evenium: { authProvisionId: "apn_xxxxxxx" },
    title: "Title",
    startDate: "Start Date",
  },
})

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": "evenium-create-event",
    "configured_props": {
      "evenium": { "authProvisionId": "apn_xxxxxxx" },
      "title": "Title",
      "startDate": "Start Date"
    }
  }'
```

---

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