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

# Luma: Post V1 Events Ticket Types Create

> Create a new ticket type for an event. Includes SDK V2 guidance, input constraints, response fields, and Deepline credit cost.

Create a new ticket type for an event.

<Info>
  Tool ID: `luma_post_v1_events_ticket_types_create`
</Info>

## Run this action

Use the TypeScript SDK for a single call. Put `ctx.tools.execute(...)` inside a Play when the call should be durable, scheduled, or run across a CSV.

```ts theme={null}
import { Deepline } from 'deepline';

const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
  'luma_post_v1_events_ticket_types_create',
  {
    "event_id": "event_123",
    "name": "Example",
    "type": "free"
  },
);

console.log(result.toolResponse.raw);
```

### CLI

```bash theme={null}
deepline tools execute luma_post_v1_events_ticket_types_create --input '{
  "event_id": "event_123",
  "name": "Example",
  "type": "free"
}' --json
```

## Example response

The SDK exposes this shape at `result.toolResponse.raw`. Values below are representative.

```json theme={null}
{
  "data": {
    "name": "Example",
    "type": "free",
    "id": "id_123"
  }
}
```

Use `deepline tools get luma_post_v1_events_ticket_types_create --json` for the latest machine-readable contract.

## Input reference

Create a new ticket type for an event. Paid ticket types require the calendar to have a connected Stripe account.

| Name                       | Type               | Required | Default | Details                                 |
| -------------------------- | ------------------ | -------- | ------- | --------------------------------------- |
| `payload.event_id`         | `string`           | Yes      | —       | Event ID, this usually starts with evt- |
| `payload.name`             | `string`           | Yes      | —       | Minimum length: 1. Maximum length: 30.  |
| `payload.require_approval` | `boolean`          | No       | —       | —                                       |
| `payload.is_hidden`        | `boolean`          | No       | —       | —                                       |
| `payload.description`      | `string`           | No       | —       | Maximum length: 1000.                   |
| `payload.valid_start_at`   | `string`           | No       | —       | ISO 8601 Date. For example, 2025-09-01  |
| `payload.valid_end_at`     | `string`           | No       | —       | ISO 8601 Date. For example, 2025-09-01  |
| `payload.max_capacity`     | `number`           | No       | —       | —                                       |
| `payload.type`             | `"free" \| "paid"` | Yes      | —       | Allowed: `free`, `paid`.                |
| `payload.cents`            | `number`           | No       | —       | —                                       |
| `payload.currency`         | `string`           | No       | —       | —                                       |
| `payload.is_flexible`      | `boolean`          | No       | —       | —                                       |
| `payload.min_cents`        | `number`           | No       | —       | —                                       |

<details>
  <summary>Show raw input schema</summary>

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Create a new ticket type for an event. Paid ticket types require the calendar to have a connected Stripe account.",
    "properties": {
      "event_id": {
        "type": "string",
        "description": "Event ID, this usually starts with evt-"
      },
      "name": {
        "type": "string",
        "minLength": 1,
        "maxLength": 30
      },
      "require_approval": {
        "type": "boolean"
      },
      "is_hidden": {
        "type": "boolean"
      },
      "description": {
        "type": [
          "string",
          "null"
        ],
        "maxLength": 1000
      },
      "valid_start_at": {
        "type": [
          "string",
          "null"
        ],
        "description": "ISO 8601 Date. For example, 2025-09-01"
      },
      "valid_end_at": {
        "type": [
          "string",
          "null"
        ],
        "description": "ISO 8601 Date. For example, 2025-09-01"
      },
      "max_capacity": {
        "type": [
          "number",
          "null"
        ]
      },
      "type": {
        "type": "string",
        "enum": [
          "free",
          "paid"
        ]
      },
      "cents": {
        "type": [
          "number",
          "null"
        ]
      },
      "currency": {
        "type": [
          "string",
          "null"
        ]
      },
      "is_flexible": {
        "type": "boolean"
      },
      "min_cents": {
        "type": [
          "number",
          "null"
        ]
      }
    },
    "required": [
      "event_id",
      "name",
      "type"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name                           | Type               | Required | Default | Details                                        |
| ------------------------------ | ------------------ | -------- | ------- | ---------------------------------------------- |
| `result.data`                  | `object`           | Yes      | —       | Provider response payload.                     |
| `result.data.name`             | `string`           | Yes      | —       | Minimum length: 1. Maximum length: 30.         |
| `result.data.require_approval` | `boolean`          | No       | —       | —                                              |
| `result.data.is_hidden`        | `boolean`          | No       | —       | —                                              |
| `result.data.description`      | `string \| null`   | No       | —       | Maximum length: 1000.                          |
| `result.data.valid_start_at`   | `string \| null`   | No       | —       | ISO 8601 Date. For example, 2025-09-01         |
| `result.data.valid_end_at`     | `string \| null`   | No       | —       | ISO 8601 Date. For example, 2025-09-01         |
| `result.data.max_capacity`     | `number \| null`   | No       | —       | —                                              |
| `result.data.type`             | `"free" \| "paid"` | Yes      | —       | Allowed: `free`, `paid`.                       |
| `result.data.cents`            | `number \| null`   | No       | —       | —                                              |
| `result.data.currency`         | `string \| null`   | No       | —       | —                                              |
| `result.data.is_flexible`      | `boolean`          | No       | —       | —                                              |
| `result.data.min_cents`        | `number \| null`   | No       | —       | —                                              |
| `result.data.id`               | `string`           | Yes      | —       | —                                              |
| `result.meta`                  | `object`           | No       | —       | Additional response metadata (status, paging). |

<details>
  <summary>Show raw output schema</summary>

  ### Output JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Standard tool result payload.",
    "properties": {
      "data": {
        "type": "object",
        "description": "Provider response payload.",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 30
          },
          "require_approval": {
            "type": "boolean"
          },
          "is_hidden": {
            "type": "boolean"
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 1000
          },
          "valid_start_at": {
            "type": [
              "string",
              "null"
            ],
            "description": "ISO 8601 Date. For example, 2025-09-01"
          },
          "valid_end_at": {
            "type": [
              "string",
              "null"
            ],
            "description": "ISO 8601 Date. For example, 2025-09-01"
          },
          "max_capacity": {
            "type": [
              "number",
              "null"
            ]
          },
          "type": {
            "type": "string",
            "enum": [
              "free",
              "paid"
            ]
          },
          "cents": {
            "type": [
              "number",
              "null"
            ]
          },
          "currency": {
            "type": [
              "string",
              "null"
            ]
          },
          "is_flexible": {
            "type": "boolean"
          },
          "min_cents": {
            "type": [
              "number",
              "null"
            ]
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "type",
          "id"
        ],
        "additionalProperties": false
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Deepline cost

* Pricing model: `fixed` (per call).
* Estimated Deepline credits: `0` per pricing unit.
* Provider-native pricing may still exist outside Deepline credit billing.

## Related documentation

* [Luma provider guide](/docs/providers/luma/guide)
* [SDK V2 quickstart](/docs/sdk-v2/quickstart)
* [SDK reference](/docs/sdk-v2/sdk-reference)
* [Run tools across a CSV](/docs/sdk-v2/batch-csv)
