# Create channel

## Create a new sub channel

<mark style="color:green;">`POST`</mark> `https://api.renlaer.com/V1/OpenApi/OpenApiCreateChannel`

#### Headers

| Name                                           | Type   | Description                       |
| ---------------------------------------------- | ------ | --------------------------------- |
| UserId<mark style="color:red;">\*</mark>       | String | "Authentication" generated userId |
| Token<mark style="color:red;">\*</mark>        | String | "Authentication" generated token  |
| Content-Type<mark style="color:red;">\*</mark> | String | application/json                  |

#### Request Body

| Name                                          | Type    | Description                                                                             |
| --------------------------------------------- | ------- | --------------------------------------------------------------------------------------- |
| ChannelName<mark style="color:red;">\*</mark> | String  |                                                                                         |
| ChannelLimitTrafficGb                         | Integer | Available flow values. If not filled or filled with 0, the traffic used is not limited. |

{% tabs %}
{% tab title="200: OK "Code":1000,"Message":"Successful"" %}

```json
{
    "Code": 1000,
    "Message": "Successful",
    "Data": {
        "ChannelId": id,
        "ChannelStatus": 1,
        "ChannelName": "name",
        "ChannelPassword": "password",
        "UsedTraffic": 0.0,
        "ChannelLimitTrafficGb": 0.0,
        "CreateTime": "2023-07-29T02:58:17.4265414+00:00"
    }
}
```

{% endtab %}
{% endtabs %}
