I've created APIs integration to GET Who is on call via cURL
But every time I've tried to cURL to https://api.opsgenie.com/v2/schedules I've received an error below
{"code":40301,"message":"API Key is not granted with configuration access.","took":0.001,"requestId":"18faca16-b73f-4c90-aba0-9f35c43a64f2"}
Command
---curl -X GET 'https://api.opsgenie.com/v2/schedules' -H 'Authorization: GenieKey MYAPISKEY'
API Settings
---
Read Access ✅
Enable ✅
Checked / Tried
---
1. The API key used is newly created. Can be found under Teams => Integrations, on the Opsgenie web page.
2. Can get the list and details of existing alerts through Alert APIs using the same API Key. The existing alerts are created through the Opsgenie web page.
3. Try giving access to Read, Write, Delete, Restrict configuration
4. Tried changing the path to https://api.eu.opsgenie.com in case I am using EU instance. It returns "Could not authenticate" so I don't think I am using the EU instance.