# Get an alert channel — API reference

> Returns one alert channel with its type, scope and configuration.

Source: https://upfour.io/docs/api/notification-channels/get-an-alert-channel

[Developers](https://upfour.io/docs/api.md)/[Alert channels](https://upfour.io/docs/api/notification-channels.md)

Returns one alert channel with its type, scope and configuration.

GET https://app.upfour.io/v1/notification_channels/{channelID}

scope notification_channel.read stable returns 200

## Parameters

| Field | Type | Description |
| --- | --- | --- |
| `channelID` required | uuid | path parameter |

## Returns

A successful request returns `200` with application/json.

Response fields 1 top-level fields

| Field | Type | Description |
| --- | --- | --- |
| `data` | NotificationChannelResponse | |
| NotificationChannelResponse · 17 fields FieldTypeDescription `config` object free-form keys The keys of the channel's type as sent on create. Secret values (auth_token, secret, webhook_url, bot_token, routing_key, api_key, license_key, api_token, app_token, user_key, access_token) are masked: \*\*\*\*\*\* followed by their last four characters when longer than eight characters, otherwise only \*\*\*\*\*\*. `created_at` string (date-time) `id` uuid `monitor_count` integer Monitors that route to this channel; 0 means nothing uses it. Only filled in the list. `name` string `scope` string one of`organization` `client` `team` `type` string one of`email` `sms` `voice` `webhook` `slack` `telegram` `msteams` `discord` `pagerduty` `zapier` `datadog` `newrelic` `jira` `grafana` `ntfy` `pushover` `updated_at` string (date-time) `user_id` uuid `client_id` uuid `last_delivery_at` string (date-time) Last successful delivery. Filled in the list. `last_failure_at` string (date-time) Last failed delivery attempt. Filled in the list. `last_failure_reason` string `last_voice_at` string (date-time) `last_voice_status` string Status of the last phone call, voice channels only. Filled in the list. `organization_id` uuid Company the channel belongs to. `team_id` uuid | | |

## Errors

Only the errors this operation can return. Every error uses the [same envelope](https://upfour.io/docs/api/responses.md).

| Status | Code | Meaning |
| --- | --- | --- |
| 400 | [bad_request](https://upfour.io/docs/api/errors#code-bad_request) | The request is malformed or fails validation. |
| 404 | [not_found](https://upfour.io/docs/api/errors#code-not_found) | The requested resource does not exist or is outside the caller's scope. |

Every call can also return `unauthorized` (401), `rate_limit_exceeded` (429) or `internal_error` (500 / 502). See [Responses and errors](https://upfour.io/docs/api/responses.md).

[PreviousCreate an alert channel](https://upfour.io/docs/api/notification-channels/create-an-alert-channel.md) [NextUpdate an alert channel](https://upfour.io/docs/api/notification-channels/update-an-alert-channel.md)

## Request

### cURL

```bash
curl -s "https://app.upfour.io/v1/notification_channels/00000000-0000-4000-8000-000000000001" \
  -H "Authorization: Bearer $UP4_API_KEY"
```

### JavaScript

```javascript
const res = await fetch("https://app.upfour.io/v1/notification_channels/00000000-0000-4000-8000-000000000001", {
  headers: {
    Authorization: `Bearer ${process.env.UP4_API_KEY}`,
  },
});
console.log(res.status, await res.json());
```

### Python

```python
import os
import requests

res = requests.get(
    "https://app.upfour.io/v1/notification_channels/00000000-0000-4000-8000-000000000001",
    headers={"Authorization": f"Bearer {os.environ['UP4_API_KEY']}"},
)
print(res.status_code, res.json())
```

### Go

```go
package main

import (
	"fmt"
	"io"
	"net/http"
	"os"
)

func main() {
	req, _ := http.NewRequest("GET", "https://app.upfour.io/v1/notification_channels/00000000-0000-4000-8000-000000000001", nil)
	req.Header.Set("Authorization", "Bearer "+os.Getenv("UP4_API_KEY"))
	res, err := http.DefaultClient.Do(req)
	if err != nil {
		panic(err)
	}
	defer res.Body.Close()
	out, _ := io.ReadAll(res.Body)
	fmt.Println(res.StatusCode, string(out))
}
```

### PHP

```php
<?php
$ch = curl_init("https://app.upfour.io/v1/notification_channels/00000000-0000-4000-8000-000000000001");
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        "Authorization: Bearer " . getenv("UP4_API_KEY"),
    ],
]);
$response = curl_exec($ch);
echo curl_getinfo($ch, CURLINFO_RESPONSE_CODE), " ", $response, "\n";
curl_close($ch);
```

## Response

### 200

```json
{
  "data": {
    "config": {
      "email": "oncall@example.com"
    },
    "created_at": "2026-10-27T09:00:00Z",
    "id": "00000000-0000-4000-8000-000000000001",
    "monitor_count": 0,
    "name": "On-call email",
    "organization_id": "00000000-0000-4000-8000-000000000002",
    "scope": "organization",
    "team_id": "00000000-0000-4000-8000-000000000003",
    "type": "email",
    "updated_at": "2026-10-27T09:00:00Z",
    "user_id": "00000000-0000-4000-8000-000000000004"
  }
}
```

### 400

```json
{
  "error": {
    "code": "bad_request",
    "message": "The request is malformed or fails validation.",
    "request_id": "req_…"
  }
}
```

### 404

```json
{
  "error": {
    "code": "not_found",
    "message": "The requested resource does not exist or is outside the caller's scope.",
    "request_id": "req_…"
  }
}
```
