Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

New Relic Policies API

The Policies API from New Relic — 8 operation(s) for policies.

New Relic Policies API is one of 41 APIs that New Relic publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

This API exposes 111 JSON Schema definitions.

Tagged areas include Policies. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, authentication docs, an API reference, a JSON-LD context, rate-limit docs, and 111 JSON Schemas.

This API exposes 12 operations across 8 paths, and defines 30 schemas. It is described by OpenAPI 3.1.0, at version 1.

Requests are made against 2 base URLs: https://insights-collector.newrelic.com, https://insights-collector.eu01.nr-data.net.

12 operations 8 paths 30 schemas 2 DELETE2 GET6 POST2 PUT

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.1.0
API Version
1
Base URL
https://api.newrelic.com/v2/
Authentication
API Key
Terms of Service
Resource Areas
1

Authentication & Security 1

New Relic Policies API declares 1 security scheme for authenticating requests. An API key is passed in the header as Api-Key (apiKey). By default, every request must be authenticated.

  • apiKey — New Relic License Key or Ingest API Key

Paths & Operations 12

Across 8 paths, the API surfaces 12 operations — 2 DELETE, 2 GET, 6 POST, 2 PUT. Each is listed below with its method, path, parameters, and response codes.

Policies 12
POST
/alerts_conditions/policies/{policy_id}.json
New Relic Post Alerts Conditions Policies
postAlertsConditionsPoliciesPolicyId 1 param body → 200
POST
/alerts_external_service_conditions/policies/{policy_id}.json
New Relic Post Alerts External Service Conditions Policies
postAlertsExternalServiceConditionsPoliciesPolicyId 1 param body → 200
GET
/alerts_location_failure_conditions/policies/{policy_id}.json
New Relic Get Alerts Location Failure Conditions Policies
getAlertsLocationFailureConditionsPoliciesPolicyId 2 params → 200
POST
/alerts_location_failure_conditions/policies/{policy_id}.json
New Relic Post Alerts Location Failure Conditions Policies
postAlertsLocationFailureConditionsPoliciesPolicyId 2 params body → 200
POST
/alerts_nrql_conditions/policies/{policy_id}.json
New Relic Post Alerts Nrql Conditions Policies
postAlertsNrqlConditionsPoliciesPolicyId 1 param body → 200
GET
/alerts_policies.json
New Relic Get Alerts Policies
getAlertsPolicies 2 params → 200
POST
/alerts_policies.json
New Relic Post Alerts Policies
postAlertsPolicies body → 200
PUT
/alerts_policies/{policy_id}.json
New Relic Put Alerts Policies
putAlertsPoliciesPolicyId 1 param body → 200
DELETE
/alerts_policies/{policy_id}.json
New Relic Delete Alerts Policies
deleteAlertsPoliciesPolicyId 1 param → 200
PUT
/alerts_policy_channels.json
New Relic Put Alerts Policy Channels
putAlertsPolicyChannels 2 params → 200
DELETE
/alerts_policy_channels.json
New Relic Delete Alerts Policy Channels
deleteAlertsPolicyChannels 2 params → 200
POST
/alerts_synthetics_conditions/policies/{policy_id}.json
New Relic Post Alerts Synthetics Conditions Policies
postAlertsSyntheticsConditionsPoliciesPolicyId 1 param body → 200

Schemas 30

The contract defines 30 schemas that model the data the API accepts and returns. The most detailed are ConditionResponseType (12 properties), ConditionBody (10 properties), NrqlConditionResponseType (10 properties), ExternalServiceConditionResponseType (9 properties). Each schema is shown below with its type and property counts.

SyntheticsCondition
object
1 property
NrqlConditionBody
object
8 properties
PolicyChannelsResponseType
object
2 properties
NrqlConditionResponse
object
1 property
PolicyChannelsResponse
object
1 property
NrqlBody
object
2 properties
PolicyResponse
object
1 property
ChannelResponseType
object
5 properties
SyntheticsConditionResponseType
object
5 properties
ExternalServiceConditionResponseType
object
9 properties
ConditionResponse
object
1 property
IJKTermsType
object
5 properties
SyntheticsConditionBody
object
4 properties
ConditionBody
object
10 properties
ExternalServiceConditionResponse
object
1 property
ExternalServiceConditionBody
object
8 properties
PolicyBody
object
2 properties
NrqlResponse
object
2 properties
ChannelResponse
object
1 property
Condition
object
1 property
NrqlCondition
object
1 property
SyntheticsConditionResponse
object
1 property
UserDefinedConditionBody
object
2 properties
ExternalServiceCondition
object
1 property
ChannelLinksResponse
object
1 property
PolicyResponseType
object
5 properties
NrqlConditionResponseType
object
10 properties
Policy
object
1 property
UserDefinedConditionResponse
object
2 properties
ConditionResponseType
object
12 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

new-relic-policies-api-openapi.yml Raw ↑

Other APIs New Relic publishes across the network.

New Relic NerdGraph API
New Relic Alerts API
New Relic Synthetics API
New Relic Infrastructure Alerts API
New Relic Browser API
New Relic Partnership API
New Relic Telemetry SDKs
New Relic OpenTelemetry OTLP Endpoint
New Relic Control
New Relic NRQL Lookups API
New Relic Security Data API
New Relic Mobile SDK