New Relic · Capability

New Relic Event API — Events

New Relic Event API — Events. 1 operations. Lead operation: New Relic Send Custom Events. Self-contained Naftiko capability covering one New Relic business surface.

Run with Naftiko New RelicEvents

What You Can Do

POST
Sendevents — New Relic Send Custom Events
/v1/v1/accounts/{accountid}/events

MCP Tools

new-relic-send-custom-events

New Relic Send Custom Events

Capability Spec

event-events.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: New Relic Event API — Events
  description: 'New Relic Event API — Events. 1 operations. Lead operation: New Relic Send Custom Events. Self-contained Naftiko
    capability covering one New Relic business surface.'
  tags:
  - New Relic
  - Events
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    NEW_RELIC_API_KEY: NEW_RELIC_API_KEY
capability:
  consumes:
  - type: http
    namespace: event-events
    baseUri: https://insights-collector.newrelic.com
    description: New Relic Event API — Events business capability. Self-contained, no shared references.
    resources:
    - name: v1-accounts-accountId-events
      path: /v1/accounts/{accountId}/events
      operations:
      - name: sendevents
        method: POST
        description: New Relic Send Custom Events
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: accountId
          in: path
          type: integer
          description: The New Relic account ID to ingest events into
          required: true
        - name: Content-Encoding
          in: header
          type: string
          description: Use gzip for compressed payloads
        - name: Content-Type
          in: header
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: apikey
      key: Api-Key
      value: '{{env.NEW_RELIC_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: event-events-rest
    port: 8080
    description: REST adapter for New Relic Event API — Events. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/v1/accounts/{accountid}/events
      name: v1-accounts-accountid-events
      description: REST surface for v1-accounts-accountId-events.
      operations:
      - method: POST
        name: sendevents
        description: New Relic Send Custom Events
        call: event-events.sendevents
        with:
          accountId: rest.accountId
          Content-Encoding: rest.Content-Encoding
          Content-Type: rest.Content-Type
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: event-events-mcp
    port: 9090
    transport: http
    description: MCP adapter for New Relic Event API — Events. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: new-relic-send-custom-events
      description: New Relic Send Custom Events
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: event-events.sendevents
      with:
        accountId: tools.accountId
        Content-Encoding: tools.Content-Encoding
        Content-Type: tools.Content-Type
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.