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