I am attempting to build a Microsoft Power Automate flow that includes and HTTP action step that will send an alert to Opsgenie. I am following this documentation:
https://docs.opsgenie.com/docs/alert-api. Based upon this documentation, the headers should be as follows:
curl -X POST https://api.opsgenie.com/v2/alerts -H "Content-Type: application/json" -H "Authorization: GenieKey eb243592-faa2-4ba2-a551q-1afdf565c889"
This is my set up in Power Automate
When I test this flow, I receive this response:
Hi there J,
Thanks for writing into Community, I'm Talar from the Atlassian Opsgenie support team, happy to help!
Opsgenie offers 2 types of API Keys -
You can read more about the keys here: https://support.atlassian.com/opsgenie/docs/api-key-management/
I suspect that they API Key you're using there is from the Settings > API Key Management
Could you please create an API Integration and use the key from there instead, please?
If it still doesn't work, testing with another API tool (e.g. Postman) to double-check the endpoint and authorisation being used is valid might be useful!
Hope this helps!
Talar
PS. I'd recommend deleting the API key posted here as this is a public forum 🙂
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.