> ## 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 ticket type for a Luma event, with its capacity, approval setting and sale dates. Includes inputs, outputs, SDK V2 examples, and Deepline cost.

Create a ticket type for a Luma event, with its capacity, approval setting and sale dates.

> [!NOTE]
>
> Tool ID: `luma_post_v1_events_ticket_types_create`

## Run this action

Use the TypeScript SDK for one call. Use `ctx.tools.execute(...)` inside a Play for durable calls, scheduled calls, or CSV processing.

```ts theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
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={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline tools execute luma_post_v1_events_ticket_types_create --input '{
  "event_id": "event_123",
  "name": "Example",
  "type": "free"
}' --json
```

## Example response

The SDK returns this shape at `result.toolResponse.raw`. The example values illustrate the response.

```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
{
  "data": {
    "name": "Example",
    "type": "free",
    "id": "id_123"
  }
}
```

Use `deepline describe 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={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "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={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "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](https://deepline.com/docs/providers/luma/guide.md)
* [SDK V2 quickstart](https://deepline.com/docs/sdk-v2/quickstart.md)
* [SDK reference](https://deepline.com/docs/sdk-v2/sdk-reference.md)
* [Run tools across a CSV](https://deepline.com/docs/sdk-v2/batch-csv.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.