Is there any API available for Task/Alert?

Hello @debnath,
Absolutely. You can create Alerts and tasks with the InfluxDB v2 API. Some examples for getting the flux behind checks, notification endpoints, and notification rules are here:

or for example to get the a specific check:

curl -X GET \
  https://us-west-2-1.aws.cloud2.influxdata.com/api/v2/checks/074...my_check_ID...000/query \
  -H 'authorization: Token Oxxx….my_token...xxxBg==' \

here’s the docs on how to post a new check:

Unfortunately task management isn’t built into the python client yet.

Please let me know if you need help with anything in particular.

Finally, what type of app are you building? That sounds exciting.

1 Like