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

Cannot authenticate API

Nilan Bhattacharya
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 2, 2021

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.
August 3, 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.

Nilan Bhattacharya
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 4, 2021

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.
August 3, 2021

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events