Skip to content

Is possible to create an alert via http request? #5089

Answered by dosubot bot
liyujun-dev asked this question in Q&A
Discussion options

You must be logged in to vote

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 /event endpoint. The payload should be in the format of an AlertDto object (or a list of them), which represents the alert details. This endpoint requires authentication with an entity that has the write:alert permission. 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:

  • Endpoint: POST /event
  • Payload: JSON body matching the AlertDto schema (fields like name, status, severity, etc.)
  • Authentication: Bearer token (JW…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by liyujun-dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant