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 Events API

Custom event ingestion endpoints

New Relic Events 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 Events. 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 2 operations across 2 paths, and defines 6 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.

2 operations 2 paths 6 schemas 1 GET1 POST

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 Events 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 2

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

Events 2

Custom event ingestion endpoints

POST
/v1/accounts/{accountId}/events
New Relic Send Custom Events
sendEvents 3 params body → 200400403408413429
GET
/alerts_events.json
New Relic Get Alerts Events
getAlertsEvents 7 params → 200

Schemas 6

The contract defines 6 schemas that model the data the API accepts and returns. The most detailed are RecentEventResponseType (10 properties), ErrorResponse (3 properties), SuccessResponse (2 properties), CustomEvent (2 properties). Each schema is shown below with its type and property counts.

RecentEventResponseType
object
10 properties
CustomEvent
object
A custom event to record. Must include eventType. All other attributes are user-defined key-value pairs. Attribute names must not start with nr. (reserved). Va…
2 properties 1 required
EventPayload
array
An array of custom event objects to ingest
SuccessResponse
object
Successful ingestion response
2 properties
RecentEventResponse
object
1 property
ErrorResponse
object
Error response
3 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

new-relic-events-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