Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,456,344
Community Members
 
Community Events
176
Community Groups

{"message":"Key format is not valid!"

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.

2 answers

1 accepted

0 votes
Answer accepted

Follow the same example shown in the doc and ensure that you've generated the correct API key.

I don't see any doc to create API integration 

0 votes
Samir Atlassian Team Feb 08, 2022

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.

2022-02-08_10-20-20.png

2022-02-08_10-24-14.png

Hope this helps!

 

Thanks,

Samir

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events