Manage notifiers via API
Learn how to manage Axiom notifiers via API.
This page explains how to manage notifiers programmatically via the API.
Prerequisites
- Create an Axiom account.
- Create a dataset in Axiom where you send your data.
- Create an API token in Axiom with permissions to create, read, update, and delete datasets.
- In the code samples below, replace
API_TOKEN
with the Axiom API token you have generated. For added security, store the API token in an environment variable.
Create notifiers
To create a notifier, send a POST request to the notifiers
endpoint. In the body of the request, specify the following:
name
of the notifier.- The
properties
field takes an object that defines the attributes of the notifier. The required attributes depend on the type of notifier you create. For example, to create an email notifier, specify the list of emails to be notified.
For example:
The example response contains the notifier ID that you can later use to access the notifier programmatically.
For more information, see the API reference.
Get information about notifiers
Get information about all notifiers
To get information about all the notifiers in your Axiom organization, send a GET request to the notifiers
endpoint. For example:
The example response is a list of notifier objects. Each object contains a unique notifier ID that you can later use to access the notifier programmatically.
For more information, see the API reference.
Get information about specific notifier
To get information about a specific notifier, send a GET request to the notifiers/ID
endpoint where ID
is the unique ID of the notifier. For example:
Example response:
For more information, see the API reference.
Update notifiers
To update a notifier, send a PUT request to the notifiers/ID
endpoint where ID
is the unique ID of the notifier. In the body of the request, specify the properties you want to update. Include the name
field even if you don’t want to change it. For example:
Example response:
For more information, see the API reference.
Delete notifiers
To delete a notifier, send a DELETE request to the notifiers/ID
endpoint where ID
is the unique ID of the notifier. For example:
For more information, see the API reference.