# Fetch Channel By Id

## Get Channel By Id

<mark style="color:blue;">`GET`</mark> `https://api.oneroute.io/api/public/channel/:id`

This endpoint allows you to fetch a channel by its ID.

#### Path Parameters

| Name | Type   | Description                 |
| ---- | ------ | --------------------------- |
| id   | string | id of the channel to fetch. |

#### Headers

| Name   | Type   | Description                 |
| ------ | ------ | --------------------------- |
| apiKey | string | API Key for authentication. |

{% tabs %}
{% tab title="200 " %}

```
{
    "data": {
        "id": "553e8ec2-bdc2-4b01-b6bf-eb07fa640218",
        "phone": null,
        "identifier": "OneRoute SMS",
        "medium": "SMS",
        "credentials": null,
        "description": "SMS Channel",
        "name": "OneRoute SMS",
        "type": "CUSTOM",
        "country": "NG",
        "status": "ACTIVE",
        "createdAt": "2021-08-04T12:32:11.543Z",
        "updatedAt": "2021-08-04T12:32:11.543Z",
        "firm_id": "e9e46626-0093-4bf6-a657-2a824567d801",
        "provider_config_id": "d2fd2feb-06dc-4787-ae3e-dbeb20e184d2"
    },
    "message": "channel fetched successfully",
    "success": true
}
```

{% endtab %}

{% tab title="401 " %}

```
{
    "data": null,
    "message": "Invalid API Key",
    "success": false
}
```

{% endtab %}

{% tab title="404 " %}

```
{
    "data": null,
    "message": "channel not found",
    "success": false
}
```

{% endtab %}
{% endtabs %}
