> ## Documentation Index
> Fetch the complete documentation index at: https://alhwyn.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Create a ticket type

> Create a new ticket type for a Luma event with luma.events.ticketTypes.create(eventId, body), setting name, price, capacity, and sale window.

<Badge color="purple">SDK</Badge> `luma.events.ticketTypes.create(eventId: string, body: TicketTypeCreateParams): Promise<TicketType>`

Creates a new ticket type for an event.

<RequestExample>
  ```typescript Example theme={null}
  const ticketType = await luma.events.ticketTypes.create("evt-abc123", {
    name: "General admission",
    type: "free",
  });

  console.log("Created:", ticketType.api_id);
  ```
</RequestExample>

<ResponseExample>
  ```json Response theme={null}
  {
    "api_id": "tkt-new456",
    "name": "General admission",
    "type": "free",
    "is_hidden": false
  }
  ```
</ResponseExample>

### Parameters

<ParamField path="eventId" type="string" required>
  Event `api_id` from `events.list()`.
</ParamField>

<ParamField path="body" type="TicketTypeCreateParams" required>
  Ticket type fields to create. See the [official Luma API docs](https://docs.luma.com) for available fields.
</ParamField>

### Test it

Create a free ticket type on a test event:

```typescript theme={null}
const eventId = "evt-abc123";

const ticketType = await luma.events.ticketTypes.create(eventId, {
  name: "SDK test ticket",
  type: "free",
});
console.log("Created:", ticketType.api_id);
```
