You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
curl -v -XGET -H "Authorization: GenieKey *****************" 'https://api.opsgenie.com/v2/alerts?searchIdentifier=openAlerts&searchIdentifierType=name&limit=10&sort=createdAt&order=desc'
I'm trying to invoke the curl but getting this error key format is not valid. even the same thing I'm getting in python. using the same key which I generated from security settings in my profile.
Hi @Ashok Simma ,
When creating alerts via API, you need to use an API Key from an API Integration, not from API Key Management section. This is because all alerts in Opsgenie are created via integrations, so the API Key used to create alerts via API needs to be tied to an integration.
You can add an API integration by going to one of your teams in Opsgenie > integrations tab > Add integration > select API integration.
Hope this helps!