Skip to main content
GET
/
api
/
v3
/
transmon
/
rules
/
list
/
{event_type}
List existing rules
curl --request GET \
  --url https://api.dataspike.io/api/v3/transmon/rules/list/{event_type} \
  --header 'ds-api-token: <api-key>'
{
  "builtin_rules": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "organization_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "limit price for new users",
      "status": "active",
      "event_type": "payment_pre",
      "rank": 20,
      "expression": "event.user_ds_registration == 0 && event.checkout_price > 1000",
      "causes": [
        "TST",
        "HI_PR"
      ],
      "action": "reject",
      "created_at": "2023-07-18T15:32:13Z",
      "updated_at": "2023-07-18T15:32:13Z"
    }
  ],
  "custom_rules": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "organization_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "limit price for new users",
      "status": "active",
      "event_type": "payment_pre",
      "rank": 20,
      "expression": "event.user_ds_registration == 0 && event.checkout_price > 1000",
      "causes": [
        "TST",
        "HI_PR"
      ],
      "action": "reject",
      "created_at": "2023-07-18T15:32:13Z",
      "updated_at": "2023-07-18T15:32:13Z"
    }
  ]
}

Authorizations

ds-api-token
string
header
required

Response

List of rules

builtin_rules
object[]
required
custom_rules
object[]
required