You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
I am trying to create an alert via REST API. I am getting 202 response during alert creation and receiving response payload as mentioned in the API document. But, I don't see alert getting created in Opsgenie. I am stuck at this step and couldn't proceed further. Did any one face this problem?
The 202 should have been returned with a Request ID. You can use the Request Status API endpoint with that ID to get the information on how the request was processed.
https://docs.opsgenie.com/docs/alert-api#get-request-status.
A 202 typically means "The request is valid and will be processed asynchronously.
Unlike 200, it does not guarantee that the request will be handled successfully. You can check the Logs for the result" - https://docs.opsgenie.com/docs/response#response-codes
The Logs tab can be found under the Settings tab. You could then search for the alert's message, alias, request ID, etc. to check if the request is received by Opsgenie:
There is a chance the alert is getting deduplicated as well - meaning the request is increasing the count of an already existing open Opsgenie alert (if the alias is matching): https://docs.opsgenie.com/docs/alert-deduplication
You could also use the alert dash to check if this alert does exist / is being deduplicate by creating a query for the message, alias, etc. https://docs.opsgenie.com/docs/alerts-search-query-help
Try these steps and let us know if you are able to find the alert, or run into any other questions or issues.
-Nick
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.