Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Opsgenie API - API call /close?identifierType=alias does not work

Anna Lupovskaya June 3, 2025

Hello - I'm trying to close an alert using the API call curl -X POST https://api.opsgenie.com/v2/alerts/<alias_here>/close?identifierType=alia

My alert looks like og_alert_Screenshot 2025-06-03 171455.png

My API call looks like 

POST https://api.opsgenie.com/v2/alerts/00fb592a-96fc-4bff-8b94-e8839d10f000/close?identifierType=alias

Response: 

{
"result": "Request will be processed",
"took": 0.007,
"requestId": "1c96097d-93b7-47af-a9fb-e2cdf5dd070d"
}

But alert was never closed. 

 

I tried to add note, acknowledge alert using alias and it worked as expected, only 'close' action does not work. 

Please, help to resolve this issue. Thank you!

3 answers

1 accepted

0 votes
Answer accepted
Anna Lupovskaya June 4, 2025

The issue was resolved. 

0 votes
Anna Lupovskaya June 6, 2025

Hello @Aditya Bodke 

I set up filer in the integration Like the followed integration_filter_Screenshot 2025-06-06 094113.pngThan, before I make 'close' call, I update message to make sure that it contains 'Resolved' and after that I make 'close' call, and it works. It did not work other way. 

Aditya Bodke
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 6, 2025

Happy Friday Anna!

Thank you so much sharing your solution with the community. 

 

Best Regards,

Aditya

0 votes
Aditya Bodke
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 5, 2025

Hello Anna!

Thank you for reaching out to the Opsgenie community!

I understand that you were facing an issue with closing an alert using the close alert API , and I’m glad to hear it’s now resolved.


The API endpoint you used is correct and should work as expected:

https://api.opsgenie.com/v2/alerts/<alias_here>/close?identifierType=alias

Just as a reminder, the close action only works on open alerts. If the alert is already closed or doesn’t exist, the API will respond as if the request is processed, but no changes will occur.


If you don’t mind sharing, could you let us know what resolved the issue? It might help others in the community who run into a similar problem.

 

Best Regards,

Aditya

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
TAGS
AUG Leaders

Atlassian Community Events