Is possible to create an alert via http request? #5089
-
| 
         Hey guys!  | 
  
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
| 
        
 Hi @liyujun-dev! I'm Dosu and I’m helping the keep team. Yes, you can create an alert event in Keep via an HTTP POST request to the  Here’s the relevant endpoint and requirements: 
 You can also use  If you need the exact JSON schema for  To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other    | 
  
Beta Was this translation helpful? Give feedback.
Hi @liyujun-dev! I'm Dosu and I’m helping the keep team.
Yes, you can create an alert event in Keep via an HTTP POST request to the
/eventendpoint. The payload should be in the format of anAlertDtoobject (or a list of them), which represents the alert details. This endpoint requires authentication with an entity that has thewrite:alertpermission. The authentication method depends on your deployment (JWT, API key, or no authentication in dev mode) — see the authentication overview for details.Here’s the relevant endpoint and requirements:
POST /eventAlertDtoschema (fields likename,status,severity, etc.)