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.
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'
wget -qO- --header "x-api-key:REPLACE_WITH_YOUR_API_KEY" 'ENDPOINT_URL'
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 data security and licenses documentation.