For AI agents: The documentation index is at https://docs.digitalocean.com/llms.txt. Markdown versions of pages use the same URL with index.html.md in place of the HTML page (for example, append index.html.md to the directory path instead of opening the HTML document).
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"
}
}
See /v2/insights/notification-channels/{id} in the API reference for additional detail on responses, headers, parameters, and more.