Currently New Relic supports two versions of the REST API. Version 1 is deprecated and has been replaced with the newer v2. No termination date has been announced. However, no further development or modifications are being made to v1.
Important
Start new projects by referring to Getting started with API v2 and the New Relic REST API v2 examples. Also, begin migrating your v1 scripts to their v2 equivalent.
To use the REST API v1 in any way, your API key is required. Then, from the command line, you can use:
curl -gH "x-api-key:REPLACE_WITH_YOUR_API_KEY" 'ENDPOINT_URL'
OR
wget -qO- --header "x-api-key:REPLACE_WITH_YOUR_API_KEY" 'ENDPOINT_URL'
For more help
If you need more help, check out these support and learning resources:
- Browse the Explorers Hub to get help from the community and join in discussions.
- Find answers on our sites and learn how to use our support portal.
- Run New Relic Diagnostics, our troubleshooting tool for Linux, Windows, and macOS.
- Review New Relic's and and documentation.