## Why Create a Channel?

When working within your network, you may find it necessary to create a new channel to the network. The Kevel Inventory Management API enables you to add a new channel to the network using the Create Channels API endpoint.

By default, an `All Sites` channel is created with the network, which cannot be deleted. The result includes the unique Channel ID that can be used to update or remove the channel.

## API Syntax

When using the Create Channels API endpoint 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:

`POST https://api.kevel.co/v1/channel`

Where:

- `POST` - the type of API request being made.
- `https://api.kevel.co` - the URL for the request.
- `v1` - the API version.
- `channel` - the API endpoint being called.

> ### Note  
> Make sure to set `Engine` to `0` in all requests.

### Parameters  
| Parameter      | Type           | Description |
|----------------|----------------|-------------|
| Title          | string         | The channel's name (required) |
| AdTypes        | array of int32s| The ad types you want to use (required) |
| Engine         | string         | Defaults to 0, set to 0 for all requests (required) |
| CPM            | float          | Set to 0 for all requests |
| CustomTargeting| string         | Zerkel string for Custom targeting. Max length is 1000 characters. |
| IsDeleted      | boolean        | Defaults to false, don't use when creating a channel. |

### Response (200)

```json
{
  "Title": "Finance Sites",
  "IsDeleted": false,
  "CustomTargeting": null,
  "AdTypes": [5],
  "Keywords": null,
  "Commission": 0,
  "Engine": "CPM",
  "CPM": 0,
  "Id": 1234
}
```

### Example Request

```shell
curl -X POST -H "X-Adzerk-ApiKey:$ADZERK_API_KEY" -H "Content-Type:application/json" "https://api.kevel.co/v1/channel" --data-binary '{"Title":"Finance Sites","Engine":0,"AdTypes":[5]}'
```
