Asset Discovery Custom Discovery Rule Create
POST
https://api.deepinfo.com/v1/easm/discovery/custom-rulesCreates 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
| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | Required | min length 1; max length 255 |
filters | object | Required | The filters of the rule; see the example request body |
tags | array | Optional | max items 10 |
auto_ | boolean | Required | |
enabled | boolean | Required |
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
| Field | Type | Description |
|---|---|---|
id | string | |
name | string | |
filters | object | |
tags | array of string | |
auto_ | boolean | |
enabled | boolean | |
create_ | string | date-time |
last_ | string | 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.
| Field | Type | Example |
|---|---|---|
id | string | "00000000000000000000000e8e040001" |
name | string | "Main domains" |
filters | object | |
filters. | array< | |
filters. | string | "webdata.http.final_domain" |
filters. | string | "acme.example" |
filters. | string | "eq" |
filters. | array | |
filters. | array | |
tags | array | |
auto_approval | boolean | false |
enabled | boolean | true |
create_date | string | "2025-06-01T08:00:00Z" |
last_update_date | string | "2025-07-01T08:00:00Z" |
Examples
Selecting one loads it into the request and response panels.