# Darkweb Mention Rule Create

POST /cti/darkweb-mention-rules: Creates a dark web mention rule.

Source: https://docs.deepinfo.com/reference/cti/darkweb-mention-rule-create/

Last updated: 2026-12-05

---
`POST https://api.deepinfo.com/v1/cti/darkweb-mention-rules`

Creates a dark web mention rule. `name` (1–255 characters), `filters` and `enabled` are required; `tags` is optional and takes at most 10 entries. Answers **201** with the stored rule.

**The `filters` values are not documented yet.** `filters` is required and may not be empty; it takes `must`, `must_not` and `should` lists of `{name, type, value}`, the same shape as the search endpoints. But the spec declares `name` and `type` as plain strings with no list of allowed values, and the API rejected every combination we tried with 400 `30010` *`Request failed. Given filters are not valid.`* without naming what it does accept. We have asked the team for the field and operator lists; this description will name them once they are measured.

## 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` |
| `enabled` | boolean | Required |  |

```json
{}
```

## Response Fields

| Field | Type | Description |
|---|---|---|
| `id` | string | Id of the record; pass it to this folder's detail endpoint. |
| `name` | string | The record's name. |
| `filters` | object | The filters saved on this record, in the same shape the search endpoint takes. |
| `tags` | array of string | The tags set on the record. |
| `enabled` | boolean | Whether the record is switched on. |
| `create_date` | string | When the record was created (UTC). |
| `last_update_date` | string | When the record was last changed (UTC). |

> No example response yet. The response's fields are listed above.

## Examples

### 400 · Validation Error (empty body {})

```bash
curl -X POST 'https://api.deepinfo.com/v1/cti/darkweb-mention-rules' \
  -H 'apikey: YOUR_API_KEY' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{}'
```

`Content-Type: application/json` · `deepinfo-request-id: 00000000-0000-4000-8000-0000356d0001`

```json
{
  "code": 10400,
  "parameters": [
    {
      "param": "name",
      "details": [
        "This field is required."
      ]
    },
    {
      "param": "filters",
      "details": [
        "This field is required."
      ]
    }
  ],
  "solution": "https://docs.deepinfo.com/reference/"
}
```

### 400 · Validation Error (empty filters {})

```bash
curl -X POST 'https://api.deepinfo.com/v1/cti/darkweb-mention-rules' \
  -H 'apikey: YOUR_API_KEY' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "name": "Main domains",
  "enabled": true,
  "filters": {}
}'
```

`Content-Type: application/json` · `deepinfo-request-id: 00000000-0000-4000-8000-0000356d0001`

```json
{
  "code": 10400,
  "parameters": [
    {
      "param": "filters",
      "details": [
        "Filters attribute can not be empty"
      ]
    }
  ],
  "solution": "https://docs.deepinfo.com/reference/"
}
```

### 400 · Invalid Parameter (invalid filters)

```bash
curl -X POST 'https://api.deepinfo.com/v1/cti/darkweb-mention-rules' \
  -H 'apikey: YOUR_API_KEY' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "name": "Main domains",
  "enabled": true,
  "filters": {
    "must": [
      {
        "name": "Acme must",
        "type": "eq",
        "value": "acme.example"
      }
    ]
  }
}'
```

`Content-Type: application/json` · `deepinfo-request-id: 00000000-0000-4000-8000-0000356d0001`

```json
{
  "code": 30010,
  "details": [
    "Request failed. Given filters are not valid."
  ],
  "solution": "https://docs.deepinfo.com/reference/"
}
```
