New Relic
APM, NRQL queries, alerts, incidents and entities
Managed auth
Authentication
Methods your end users can connect with. Credentials are stored encrypted, and secret values are never shown again or returned by the API.
API key
Your users enter
- User key (NRAK-…)SecretRequired
- Data regionOptionalIdentifier2 choices
Where to find them
- At one.newrelic.com (or one.eu.newrelic.com): your avatar (bottom left) → “API keys” → “Create a key”.
- Under “Key type”, choose “User”, give it a name and click “Create a key”.
- Copy the key (NRAK-…). It acts with your user's permissions; to limit them, create it with a dedicated user that has a read-only role.
Tools (3)
New Relic API request
NEWRELIC_SEND_REQUESTAuthenticated call to the New Relic API (https://{server}). Any endpoint of the API is allowed. The main API is NerdGraph (use NEWRELIC_SEND_GRAPHQL_REQUEST or NEWRELIC_RUN_NRQL_QUERY), e.g. { actor { accounts { id name } } }, { actor { entitySearch(query: "domain = 'APM' AND reporting = 'true'") { results { entities { guid name alertSeverity } } } } } or { actor { account(id: 1234567) { alerts { policiesSearch { policies { id name } } } } } }. REST v2 (legacy): GET /v2/applications.json.
Required scopes
No scopes required
Input
New Relic API request input Name Type Description methodstringHTTP methodOne of: GET,POST,PUT,PATCH,DELETEDefault:"GET"pathrequiredstringPath relative to the API base URL, or a full URL on the same API (e.g. a next-page link) queryobjectQuery string parameters bodyunknownJSON body formobjectBody as application/x-www-form-urlencoded instead of JSON body_base64stringBinary body, base64 (at most 960000 characters) content_typestringContent-Type of body_base64 headersobjectExtra headers such as Accept. Authentication is added automatically. New Relic GraphQL request
NEWRELIC_SEND_GRAPHQL_REQUESTRuns a GraphQL query or mutation against the New Relic API and returns its data and errors.
Required scopes
No scopes required
Input
New Relic GraphQL request input Name Type Description queryrequiredstringGraphQL query or mutation variablesobjectGraphQL variables NRQL query
NEWRELIC_RUN_NRQL_QUERYRuns an NRQL query on an account and returns the rows, e.g. SELECT count(*) FROM Transaction FACET appName SINCE 1 hour ago or SELECT * FROM NrAiIncident WHERE event = 'open' SINCE 1 day ago.
Required scopes
No scopes required
Input
NRQL query input Name Type Description nrqlrequiredstringNRQL query accountintegerAccount ID (empty: the only accessible account)

