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

# Categories and Support Tiers in AeroDesk

> Add, retrieve, edit, and delete ticket categories and support tiers in AeroDesk using the getApi() config hook from your addon.

Organize support requests and classify priority levels seamlessly without declaring intermediate variables. This page shows how to manage ticket categories and support tiers directly through the AeroDesk configuration API.

## Ticket Categories

Ticket categories let you group incoming requests by type. Each category has a key, a display name, a welcome message, and an associated channel ID.

### Retrieve a Category

Fetch an existing category by its key.

```java theme={null}
TicketCategory bugCategory = getApi().getConfig().tickets.categories.get("bug");
```

### Add a Category

Create a new category by putting a `TicketCategory` instance into the categories map.

```java theme={null}
getApi().getConfig().tickets.categories.put(
    "bug",
    new TicketCategory("Bug Reports", "Welcome message here", "123456789")
);
```

### Edit a Category

Modify a field on an existing category in place.

```java theme={null}
getApi().getConfig().tickets.categories.get("bug").embedTitle = "New Embed Title";
```

### Delete a Category

Remove a category by its key.

```java theme={null}
getApi().getConfig().tickets.categories.remove("bug");
```

## Support Tiers

Support tiers define priority or service levels for tickets. Each tier has a name and a linked channel ID.

### Retrieve a Tier

Access a tier by its index in the list.

```java theme={null}
BotConfig.TicketTier tier = getApi().getConfig().tickets.ticketTiers.get(0);
```

### Add a Tier

Append a new `TicketTier` to the tiers list.

```java theme={null}
getApi().getConfig().tickets.ticketTiers.add(
    new BotConfig.TicketTier("VIP Support", "987654321")
);
```

### Edit a Tier

Update a tier property directly.

```java theme={null}
getApi().getConfig().tickets.ticketTiers.get(0).name = "Basic Support";
```

### Delete a Tier

Remove a tier that matches a condition using `removeIf`.

```java theme={null}
getApi().getConfig().tickets.ticketTiers.removeIf(
    tier -> tier.name.equals("VIP Support")
);
```


## Related topics

- [AeroDesk Developer API](/index.md)
- [Keyword FAQs and Escalation Levels in AeroDesk](/keyword-faqs-and-escalation-levels.md)
