Filters

Update the workspace filters

Replace any of the lists; an omitted list is untouched and an empty one clears it. Entries are stored in canonical form (terms lowercased, authors as profile links or bare names, repositories as owner/name, subreddits without r/). Takes effect on new mentions within a minute; stored mentions are untouched.

PATCH
/v1/filters
AuthorizationBearer <token>

API key minted via POST /v1/api-keys (format mk_live_...)

In: header

excludedTerms?array<string>

Replaces the list; [] clears it.

Itemsitems <= 200
excludedAuthors?array<string>

Replaces the list; [] clears it.

Itemsitems <= 200
excludedRepos?array<string>

Replaces the list; [] clears it.

Itemsitems <= 200
subreddits?

Reddit only; an omitted list is untouched.

Response Body

application/json

application/json

application/json

curl -X PATCH "https://api.mentio.dev/v1/filters" \  -H "Content-Type: application/json" \  -d '{}'
{
  "excludedTerms": [
    "string"
  ],
  "excludedAuthors": [
    "string"
  ],
  "excludedRepos": [
    "string"
  ],
  "subreddits": {
    "only": [
      "string"
    ],
    "excluded": [
      "string"
    ]
  },
  "updatedAt": "string"
}
{
  "error": {
    "code": "unauthorized",
    "message": "string",
    "requestId": "string",
    "retryAfterSeconds": 0
  }
}
{
  "error": {
    "code": "unauthorized",
    "message": "string",
    "requestId": "string",
    "retryAfterSeconds": 0
  }
}