dots.v2.insights.notificationChannels.byId().get()

Generated on 5 Nov 2026 from DoTs version v1.23.0

Usage

client.v2.insights.notificationChannels.byId(id).get(requestConfiguration?: RequestConfiguration<object>): Promise<undefined | NotificationChannelsGetResponse>

Description

To retrieve a notification channel, send a GET request to /v2/insights/notification-channels/{id}. Secret credentials are never returned. When a secret is configured, the response includes an optional *_status object (for example webhook_url_status) with configured: true.

Parameters

id string required

Example: 550e8400-e29b-41d4-a716-446655440000

A unique identifier for a notification channel.

Request Sample

Show Request Sample
import { FetchRequestAdapter } from "@microsoft/kiota-http-fetchlibrary";
import {
    createDigitalOceanClient,
    DigitalOceanApiKeyAuthenticationProvider,
} from "@digitalocean/dots";

const authProvider = new DigitalOceanApiKeyAuthenticationProvider(process.env.DIGITALOCEAN_TOKEN!);
const adapter = new FetchRequestAdapter(authProvider);
const client = createDigitalOceanClient(adapter);

const response = await client.v2.insights.notificationChannels
    .byId("550e8400-e29b-41d4-a716-446655440000").get();

Response Example

Show Response Example
{
  "notification_channel": {
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "name": "On-call email",
    "channel_type": "CHANNEL_TYPE_EMAIL",
    "email": {
      "to": "[email protected], [email protected]"
    },
    "usage": {
      "rule_count": 0
    },
    "created_at": "2026-09-03T10:15:00Z",
    "updated_at": "2026-09-03T10:15:00Z"
  }
}

More Information

See /v2/insights/notification-channels/{id} in the API reference for additional detail on responses, headers, parameters, and more.

We can't find any results for your search.

Try using different keywords or simplifying your search terms.