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,298,098
Community Members
 
Community Events
165
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 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?

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Confluence

An update on Confluence Cloud customer feedback – June 2022

Hi everyone, We’re always looking at how to improve Confluence and customer feedback plays an important role in making sure we're investing in the areas that will bring the most value to the most c...

148 views 1 3
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you