Create a notification alert for the customer
1 min
POST
https://app.amberflo.io/customer-portal/notification
sessionTokenstring<p>A required session token used to authenticate API calls made on behalf of a customer. This token is obtained from the <code>Create a session</code> endpoint and must be included with every request to authorize access.</p>
bodyobject
200Successful response
curl --request POST \
--url 'https://app.amberflo.io/customer-portal/notification?sessionToken=string' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data-raw '{
"name": "Too many api calls",
"description": "Alert on too many api calls",
"notificationType": "usage",
"meterId": "24ad0b40-a217-11eb-b01a-19ff91d9370d",
"frequency": "every 1h",
"webhookUrl": "https://hooks.slack.com/services/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",
"email": [
"[email protected]"
],
"thresholdCondition": "greater-than",
"thresholdValue": 1000,
"range": "day",
"enabled": true
}'