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

# createdTickets

Notifies when a ticket is created. If `locationId` is provided, the subscription fires only when tickets are created in that specific location. If `locationId` is omitted, it fires for all locations the user has access to.

**Note:** Device principals (iPad/TV) must always provide a `locationId`.

```graphql theme={null}
createdTickets(
  locationId: ID
): Ticket!
```

### Arguments

#### [<span class="gqlmd-mdx-entity"><code class="gqlmd-mdx-entity-parent">createdTickets</code>.<code class="gqlmd-mdx-entity-name">locationId</code></span>](#)<span class="gqlmd-mdx-bullet"> ● </span>[<span class="gqlmd-mdx-entity"><code class="gqlmd-mdx-entity-name">ID</code></span>](/reference/graphql/scalars/id) <mark class="gqlmd-mdx-badge">nullable</mark> <mark class="gqlmd-mdx-badge">scalar</mark>

If provided, restricts the subscription to tickets created in the specified location. If omitted, the subscription fires for all locations the user has access to.

### Type

#### [<span class="gqlmd-mdx-entity"><code class="gqlmd-mdx-entity-name">Ticket</code></span>](/reference/graphql/objects/ticket) <mark class="gqlmd-mdx-badge">object</mark>
