when posting via the code using generated header and payload I am getting following error
{"message":"Key format is not valid!","took":0.0,"requestId":"dd21ff02-99d8-4a6e-8712-496c50f3d3b3"}
Per internet resources resources you are supposed to use OPSGenie integration API key, which I am using. It's the Autosys one. When I use the same payload and headers in the Postman, it creates with no issues. Is it possible to find out what the issue could be?
This is the payload and header that code generates
payload
{"priority": "P3", "source": "autosys_monitoring", "message": "AUTOSYS ASI JOB Fail: dro_d_IOVP_chk_alert_resumable", "description": "dro_d_IOVP_chk_alert_resumable Failed on dfwrspdb", "responders": [{"type": "team", "id": "xxxxxx-54ef-4932-xxx-d62ca51dd4d4"}]}
Headers
{'Content-Type': 'application/json', 'Authorization': 'GenieKey xxxxxxx-xxxx-xxxxx-xxxx-xxxxx'}
Url to execute POST
https://api.opsgenie.com/v2/alerts