Add the following code to your appsettings.json (if you're using another type of config, add it there):
"RaygunSettings": {
"ApiKey": "paste_your_api_key_here"
}
Your app API key is displayed when you create a new application in your Raygun account, or can be viewed in the application settings. RaygunSettings has many options which are explained further down this page.