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,559,539
Community Members
 
Community Events
184
Community Groups

Cannot authenticate API

I am trying to check if the API works.

curl -X GET "https://api.opsgenie.com/v2/alerts/requests/40dd7940-a388-482a-bc06-1a792bf785a4-1627953015805" -H "Authorization: GenieKey ***dd***-766e-4209-****-****e598b976"

gives me: 'Could not authenticate'

I am on the free plan.

Any idea what might be going wrong?

2 answers

1 vote
Nick H
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Aug 03, 2021

Hi @Nilan Bhattacharya ,

The Get Request Status API is available on the Free plan. Make sure you are using the correct URL depending on whether your Opsgenie account is US or EU:

reqid3.jpg

 

So you're aware, your request shared above it to GET an alert based on the request ID (not the alert ID). For example, below I created an alert via API - which produces a request ID in the response:

reqid1.jpg

 

I'd need to use that request ID in the Get Request Status API call:

reqid2.jpg

 

Otherwise, I could use the alert ID to GET the alert as well (above) with this:

https://api.opsgenie.com/v2/alerts/91a9e9fa-e792-4840-bbb5-044cece7d224-1627996363801

 

Hope this helps! Let us know if you have any other questions.

I still can't get it working.  Not sure why it is so difficult.  I am checking with support.

 

Would you know how to increase log levels with Lamp?

0 votes
Gonchik Tsymzhitov
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Aug 03, 2021

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events