# Create Event — Eventbrite

> Create a new Eventbrite event. See the documentation

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

## Description

Create a new Eventbrite event. [See the documentation](https://www.eventbrite.com/platform/api#/reference/event/create/create-an-event)

## Props

| Prop | Type | Required | Description |
|---|---|---|---|
| `organization` | `string` | Yes | Select an organization Options are loaded from the connected account. |
| `name` | `string` | Yes | Event name. Value cannot be empty nor whitespace |
| `summary` | `string` | No | Event summary. This is a plaintext field and will have any supplied HTML removed from it. Maximum of 140 characters |
| `timezone` | `string` | Yes | The timezone Options are loaded from the connected account. |
| `startTime` | `string` | Yes | The event start time relative to UTC. (Ex. 2018-05-12T02:00:00Z). |
| `endTime` | `string` | Yes | The event end time relative to UTC. (Ex. 2018-05-12T02:00:00Z) |
| `hideStartDate` | `boolean` | No | Whether the start date should be hidden. Defaults to false if left blank. |
| `hideEndDate` | `boolean` | No | Whether the end date should be hidden. Defaults to false if left blank. |
| `currency` | `string` | Yes | The ISO 4217 currency code for this event |
| `onlineEvent` | `boolean` | No | If this event doesn't have a venue and is only held online. Defaults to false if left blank. |
| `organizerId` | `string` | No | ID of the event organizer |
| `logoId` | `string` | No | Image ID of the event logo |
| `venueId` | `string` | No | Event venue ID |
| `formatId` | `string` | No | Event format |
| `categoryId` | `string` | No | Event category |
| `subcategoryId` | `string` | No | Event subcategory (US only) |
| `listed` | `boolean` | Yes | Is this event publicly searchable on Eventbrite? Defaults to true. |
| `shareable` | `boolean` | No | Can this event show social sharing buttons? Defaults to false if left blank. |
| `inviteOnly` | `boolean` | No | Can only people with invites see the event page?. Defaults to false if left blank. |
| `showRemaining` | `boolean` | No | If the remaining number of tickets is publicly visible on the event page. Defaults to false if left blank. |
| `password` | `string` | No | Password needed to see the event in unlisted mode |
| `capacity` | `integer` | No | Set specific capacity (if omitted, sums ticket capacities) |
| `isReservedSeating` | `boolean` | No | If the event is reserved seating. Defaults to false if left blank. |
| `isSeries` | `boolean` | No | If the event is part of a series. Specifying this attribute as True during event creation will always designate the event as a series parent, never as a series occurrence. Series occurrences must be created through the schedules API and cannot be created using the events API. Defaults to false if left blank. |
| `showPickASeat` | `boolean` | No | For reserved seating event, if attendees can pick their seats. Defaults to false if left blank. |
| `showSeatmapThumbnail` | `boolean` | No | For reserved seating event, if venue map thumbnail visible on the event page. Defaults to false if left blank. |
| `showColorsInSeatmapThumbnail` | `boolean` | No | For reserved seating event, if venue map thumbnail should have colors on the event page. Defaults to false if left blank. |
| `source` | `string` | No | Source of the event (defaults to API) |
| `locale` | `string` | Yes | Indicates event language on Event's listing page. Language options from Eventbrite documentation: https://www.eventbrite.com/platform/api#/reference/event/retrieve/create-an-event |

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

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: "eventbrite-create-event",
  arguments: {
    organization: "Organization",
    name: "Name",
  },
})
```

**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: "eventbrite-create-event",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    eventbrite: { authProvisionId: "apn_xxxxxxx" },
    organization: "Organization",
    name: "Name",
  },
})

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": "eventbrite-create-event",
    "configured_props": {
      "eventbrite": { "authProvisionId": "apn_xxxxxxx" },
      "organization": "Organization",
      "name": "Name"
    }
  }'
```

---

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