POSThttps://api.deepinfo.com/v1/easm/discovery/custom-rules

Creates a custom discovery rule. filters select which domains in Deepinfo's dataset become candidates; auto_approval adds them to your assets directly.

Authentication

Send your API key in the apikey request header.

Request Body

ParameterTypeRequiredDescription
namestringRequired
min length 1; max length 255
filtersobjectRequired
The filters of the rule; see the example request body
tagsarrayOptional
max items 10
auto_approvalbooleanRequired
enabledbooleanRequired
application/json
{
  "name": "Main domains",
  "filters": {
    "must": [
      {
        "name": "webdata.http.final_domain",
        "value": "acme.example",
        "type": "eq"
      }
    ],
    "must_not": [],
    "should": []
  },
  "tags": [],
  "auto_approval": false,
  "enabled": true
}

Response Fields

FieldTypeDescription
idstring
namestring
filtersobject
tagsarray of string
auto_approvalboolean
enabledboolean
create_datestring
date-time
last_update_datestring
date-time

Response Schema

Inferred from examples Built from the saved 2xx example response: the fields it contains, with the types seen there. It is not a contract.

FieldTypeExample
idstring"00000000000000000000000e8e040001"
namestring"Main domains"
filtersobject
filters.mustarray<object>
filters.must[].namestring"webdata.http.final_domain"
filters.must[].valuestring"acme.example"
filters.must[].typestring"eq"
filters.must_notarray
filters.shouldarray
tagsarray
auto_approvalbooleanfalse
enabledbooleantrue
create_datestring"2025-06-01T08:00:00Z"
last_update_datestring"2025-07-01T08:00:00Z"

Examples

Selecting one loads it into the request and response panels.

Reference updated