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
Next: Root
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.
Follow the same example shown in the doc and ensure that you've generated the correct API key.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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!
Thanks,
Samir
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.