New Relic · Arazzo Workflow

New Relic Attach Notification Channel To Policy

Version 1.0.0

Create a notification channel and associate it with an alert policy.

1 workflow 1 source API 1 provider
View Spec View on GitHub AnalysisAnalyticsAPMDevOpsInfrastructureMonitoringObservabilityPerformancePlatformArazzoWorkflows

Provider

new-relic

Workflows

attach-notification-channel-to-policy
Create a channel and associate it with an alert policy.
Creates a notification channel, reads the generated channel id, and updates the policy/channel association so the supplied policy notifies through the new channel.
2 steps inputs: channelName, channelType, policyId outputs: associatedPolicyId, channelId
1
createChannel
Create the notification channel of the requested type, returning the generated channel id used for the policy association.
2
associateChannel
Associate the newly created channel with the target alert policy so the policy routes its notifications to the channel.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: New Relic Attach Notification Channel To Policy
  summary: Create a notification channel and associate it with an alert policy.
  description: >-
    Wires alert notifications end to end. The workflow creates a notification
    channel, captures its id, and then associates that channel with an existing
    alert policy so violations on the policy are routed to the channel. Every
    step spells out its request inline so the flow can be read and executed
    without opening the underlying OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: alertsApi
  url: ../openapi/new-relic-alerts-api-openapi.yml
  type: openapi
workflows:
- workflowId: attach-notification-channel-to-policy
  summary: Create a channel and associate it with an alert policy.
  description: >-
    Creates a notification channel, reads the generated channel id, and updates
    the policy/channel association so the supplied policy notifies through the
    new channel.
  inputs:
    type: object
    required:
    - channelName
    - channelType
    - policyId
    properties:
      channelName:
        type: string
        description: The name of the new notification channel.
      channelType:
        type: string
        description: The channel type (e.g. email, slack, webhook, pagerduty).
      policyId:
        type: integer
        description: The id of the alert policy to associate the channel with.
  steps:
  - stepId: createChannel
    description: >-
      Create the notification channel of the requested type, returning the
      generated channel id used for the policy association.
    operationId: postAlertsChannels
    requestBody:
      contentType: application/json
      payload:
        channel:
          name: $inputs.channelName
          type: $inputs.channelType
          configuration: {}
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      channelId: $response.body#/channel/id
      channelName: $response.body#/channel/name
  - stepId: associateChannel
    description: >-
      Associate the newly created channel with the target alert policy so the
      policy routes its notifications to the channel.
    operationId: putAlertsPolicyChannels
    parameters:
    - name: policy_id
      in: query
      value: $inputs.policyId
    - name: channel_ids
      in: query
      value: $steps.createChannel.outputs.channelId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      associatedPolicyId: $response.body#/policy/id
      associatedChannelIds: $response.body#/policy/channel_ids
  outputs:
    channelId: $steps.createChannel.outputs.channelId
    associatedPolicyId: $steps.associateChannel.outputs.associatedPolicyId

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/new-relic-attach-notification-channel-to-policy-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.