Notifications
Create a notification rule
Create a new notification rule.
post/api/v1/notification/rules
Request body
Example request
{
"name": "Balance threshold reached",
"disabled": true,
"metadata": {
"externalId": "019142cc-a016-796a-8113-1a942fecd26d"
},
"thresholds": [
{
"value": 100
}
],
"channels": [
"01G65Z755AFWAKHE12NY0CQ9FH"
]
}Response
The request has succeeded and a new resource has been created as a result.
Example response
{
"createdAt": "2024-01-01T01:01:01.001Z",
"updatedAt": "2024-01-01T01:01:01.001Z",
"deletedAt": "2024-01-01T01:01:01.001Z",
"id": "01ARZ3NDEKTSV4RRFFQ69G5FAV",
"name": "Balance threshold reached",
"disabled": true,
"channels": [
{
"id": "01ARZ3NDEKTSV4RRFFQ69G5FAV"
}
],
"annotations": {
"externalId": "019142cc-a016-796a-8113-1a942fecd26d"
},
"metadata": {
"externalId": "019142cc-a016-796a-8113-1a942fecd26d"
},
"thresholds": [
{
"value": 100
}
],
"features": [
{
"id": "01ARZ3NDEKTSV4RRFFQ69G5FAV",
"key": "gpt4_tokens"
}
]
}