Skip to content
For LLMsView as Markdown·

New Relic

Monitor applications, query metrics, and manage alerts with the New Relic API.

DetailValue
CategoryMonitoring
Base URLhttps://api.newrelic.com/v2
AuthenticationAPI Key
Endpoints8
Connector keynewrelic

Using New Relic in a workflow

  1. Go to Connections and click New Connection.
  2. Pick New Relic from the marketplace.
  3. Enter your credentials (see Authentication above for what's expected).
  4. In a workflow, drop an API Call node and select this connection.
  5. Pick the operation you need from the Operation dropdown — the full list is below.

Available endpoints

EndpointSummary
GET /applications.jsonList applications
GET /applications/{id}.jsonGet application details
GET /applications/{application_id}/metrics/data.jsonGet metric data
GET /alerts_policies.jsonList alert policies
POST /alerts_policies.jsonCreate an alert policy
GET /alerts_violations.jsonList alert violations
GET /alerts_incidents.jsonList alert incidents
GET /key_transactions.jsonList key transactions

Each endpoint is documented in full below. Use the outline on the right to jump to one.

GET /applications.json

List applications

DetailValue
Operation IDmonitoring.listApplications
MethodGET
Path/applications.json

Parameters

No parameters.

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your New Relic connection from the Connection dropdown.
  3. In the Operation dropdown, select monitoring.listApplications.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream New Relic API reference.

GET /applications/{id}.json

Get application details

DetailValue
Operation IDmonitoring.getApplication
MethodGET
Path/applications/{id}.json

Parameters

No parameters.

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your New Relic connection from the Connection dropdown.
  3. In the Operation dropdown, select monitoring.getApplication.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream New Relic API reference.

GET /applications/{application_id}/metrics/data.json

Get metric data

DetailValue
Operation IDmonitoring.getMetricData
MethodGET
Path/applications/{application_id}/metrics/data.json

Parameters

No parameters.

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your New Relic connection from the Connection dropdown.
  3. In the Operation dropdown, select monitoring.getMetricData.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream New Relic API reference.

GET /alerts_policies.json

List alert policies

DetailValue
Operation IDmonitoring.listAlertPolicies
MethodGET
Path/alerts_policies.json

Parameters

No parameters.

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your New Relic connection from the Connection dropdown.
  3. In the Operation dropdown, select monitoring.listAlertPolicies.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream New Relic API reference.

POST /alerts_policies.json

Create an alert policy

DetailValue
Operation IDmonitoring.createAlertPolicy
MethodPOST
Path/alerts_policies.json

Parameters

No parameters.

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your New Relic connection from the Connection dropdown.
  3. In the Operation dropdown, select monitoring.createAlertPolicy.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream New Relic API reference.

GET /alerts_violations.json

List alert violations

DetailValue
Operation IDmonitoring.listAlertViolations
MethodGET
Path/alerts_violations.json

Parameters

No parameters.

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your New Relic connection from the Connection dropdown.
  3. In the Operation dropdown, select monitoring.listAlertViolations.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream New Relic API reference.

GET /alerts_incidents.json

List alert incidents

DetailValue
Operation IDmonitoring.listAlertIncidents
MethodGET
Path/alerts_incidents.json

Parameters

No parameters.

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your New Relic connection from the Connection dropdown.
  3. In the Operation dropdown, select monitoring.listAlertIncidents.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream New Relic API reference.

GET /key_transactions.json

List key transactions

DetailValue
Operation IDmonitoring.listKeyTransactions
MethodGET
Path/key_transactions.json

Parameters

No parameters.

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your New Relic connection from the Connection dropdown.
  3. In the Operation dropdown, select monitoring.listKeyTransactions.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream New Relic API reference.