# Why retrieve a list of flight categories?

When you are working with flights, and potentially want to make changes and updates to an existing flight in a campaign, it can be useful to first retrieve a list of the different flight categories so you can then determine what changes you would like to make.

# API Syntax

When using the `List Flight Categories` API, it is important to understand the syntax required to make the request. Because the Kevel API is a RESTful API, there is a specific request format that must be followed to ensure the endpoint can process the request. The format is:

`GET https://api.kevel.co/v1/flight/{FlightID}/categories`

Where:

- `GET` - the type of API request being made.
- `https://api.kevel.co` - the URL for the request.
- `v1` - the API version.
- `flight` - the API endpoint being called.
- `FlightID` - The ID associated with the flight.
- `categories` - The different categories associated with the flight.

## FlightID

**Type:** int32  
**Required:** Yes

The ID of the Flight

# Response Example

```
curl -X GET -H "X-Adzerk-ApiKey:$ADZERK_API_KEY" "https://api.kevel.co/v1/flight/123456/categories"
```

## Response Format

```json
{
  "page": 1,
  "items": [
    {
      "Id": 123,
      "Name": "Sports"
    },
    {
      "Id": 234,
      "Name": "Current Events"
    }
  ]
}
```
