Notifications

Get notification rule

Get a notification rule by id.

get/api/v1/notification/rules/{ruleId}

Path parameters

ruleIdstring required
Example:01G65Z755AFWAKHE12NY0CQ9FH

Response

The request has succeeded.

OR
OR
OR

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