Skip to content

Create Keyword ​

POST/v2/organizations/{organizationId}/keywords

Creates a new keyword (monitoring query) within the specified organization.

2 req/10s

Parameters ​

Path Parameters

organizationIdintegerrequiredpath

The unique identifier of the organization (int64).

Body Parameters

groupIdintegerrequiredbody

The ID of the group to add the keyword to (int64).

namestringrequiredbody

Display name for the keyword.

keywordjsonrequiredbody

Keyword definition object containing the search query and filters. See keyword object fields below.

historySearchjsonbody

Controls the history search that runs when the keyword is created. Leave it out to search the full history (the last 80 days). See History Search below.

Keyword Object Fields ​

FieldTypeDescription
naturalQuerystringThe search query in natural language. Supports boolean operators like OR, AND, and quoted phrases.
naturalFiltersstringFilters written in the natural filter syntax: one key:value,value filter per line. Use author: and not_author: to filter by author. See Filtering by Author.
mayAuthorsarray of objectOnly keep mentions written by one of these authors. Each entry is an Author Object. Equivalent to author: in naturalFilters.
notAuthorsarray of objectExclude mentions written by any of these authors. Each entry is an Author Object. Equivalent to not_author: in naturalFilters.
mayLangsarray of stringLanguage codes to include (e.g. ["en", "de"]). Use the Languages endpoint to get valid codes.
mayLocationsarray of stringLocation codes to include (e.g. ["US", "GB"]). Use the Locations endpoint to get valid codes.
maySourceTypesarray of stringSource types to monitor. Allowed values: WEB, FACEBOOK, TWITTER, FORUM, COMMENT, YOUTUBE, INSTAGRAM, REDDIT, TIKTOK, PRINT, RADIO, TV, BLUESKY, THREADS

Author Object ​

FieldTypeDescription
authorstringThe author name or handle to match. Compared against the whole author string of a mention, not as a substring. See How author matching works.
caseSensitivebooleanMatch the exact casing of author. Defaults to false (case-insensitive).

History Search Object ​

FieldTypeDescription
enabledbooleanSet to false to skip the history search. Defaults to true. Cannot be combined with from or to.
fromstring (ISO 8601)Search only mentions published at or after this time. Defaults to the start of the history (80 days ago). An earlier value searches the whole history.
tostring (ISO 8601)Search only mentions published at or before this time. Defaults to now. Must not be in the future.

Additional filter fields

The keyword object supports many additional filter fields beyond those listed above. The fields documented here cover the most common use cases. Contact support for information about advanced filtering options.

Request Body Example ​

json
{
  "groupId": 456,
  "name": "Tesla Mentions",
  "keyword": {
    "naturalQuery": "Tesla OR \"Elon Musk\"",
    "naturalFilters": "not_author:\"Tesla Fan Club\"",
    "mayLangs": ["en", "de"],
    "maySourceTypes": ["WEB", "TWITTER", "FACEBOOK"]
  }
}

When a keyword is created, Determ searches its history for mentions that match, going back 80 days, and adds them to the keyword's feed. New mentions are collected from the moment the keyword is created either way. Use historySearch to turn the history search off or to search only part of the history.

Skip the history search:

json
{
  "groupId": 456,
  "name": "Tesla Mentions",
  "keyword": { "naturalQuery": "Tesla" },
  "historySearch": { "enabled": false }
}

Search only the last 24 hours (leave out to to search up to now):

json
"historySearch": { "from": "2026-11-12T09:00:00Z" }

Search a specific period:

json
"historySearch": { "from": "2026-11-01T00:00:00Z", "to": "2026-11-08T00:00:00Z" }
  • The response's historySearchCoverage lists the period that was searched. It is empty when no history was searched, for example with enabled: false or when the whole period is older than 80 days.
  • The history search runs in the background. Its progress is not part of the response. See Checking the history search.
  • The setting applies only to the search made when the keyword is created, and it is not saved. If the keyword's query is later edited to match more mentions, its full history is searched again.
  • from must be before to, to must not be in the future, a from given without to must be in the past, and enabled: false cannot be combined with from or to. Otherwise the request returns HTTP 400 with the error code INVALID_PARAM. See Errors & Rate Limits.

GET /v2/organizations/{organizationId}/keywords/{keywordId}/history-search-status reports the keyword's latest history search:

json
{
  "keywordId": 789,
  "status": "DONE",
  "progress": { "processed": 25000, "total": 25000 },
  "limitReached": true
}
FieldTypeDescription
statusstringQUEUED, IN_PROGRESS, DONE, FAILED or TIMEOUT.
progressobjectprocessed and total candidates. Absent until the search starts.
limitReachedbooleanWhether a DONE search stopped at its limit. Absent when unknown. See below.

A history search retrieves at most a fixed number of candidates, newest first. The limit applies to candidates before the keyword's filters are applied, so it is not the number of mentions that reach the feed, and neither is progress.

  • limitReached: true: the search had more candidates than its limit and stopped at it. The oldest part of the searched period is missing from the feed.
  • limitReached: false: the search retrieved every candidate in the searched period.
  • No limitReached: the search has not finished (QUEUED, IN_PROGRESS), did not finish (FAILED, TIMEOUT), or whether it reached the limit is unknown. Treat it as unknown, never as false.

The status is kept for 4 hours after the search last changed it. After that the endpoint returns 404, so read it once it reaches DONE. A new history search for the keyword, for example after its query is edited to match more mentions, replaces the status, limitReached included.

Filtering by Author ​

Author filters include or exclude mentions by specific authors. They are part of the keyword object and can be written in two equivalent ways.

naturalFilters is a plain-text field. Write one filter per line as key:value1,value2,.... Separate values with commas and wrap values that contain spaces in double quotes. Filters may also be separated by spaces instead of new lines. author: keeps only mentions written by one of the listed authors, and not_author: excludes mentions written by any of them.

json
{
  "groupId": 123,
  "name": "Starbucks",
  "keyword": {
    "naturalQuery": "Starbucks AND coffee",
    "naturalFilters": "author:Starbucks,\"Starbucks Coffee\"\nnot_author:\"Some Blogger\""
  }
}

Structured fields ​

The same filters as arrays of Author Objects inside the keyword object. Only this form lets you set caseSensitive per author, shown here on one entry.

json
"keyword": {
  "naturalQuery": "Starbucks AND coffee",
  "mayAuthors": [
    { "author": "Starbucks" },
    { "author": "Starbucks Coffee", "caseSensitive": true }
  ],
  "notAuthors": [
    { "author": "Some Blogger" }
  ]
}

Both forms can be combined with other filters in the same request. If the same filter is provided in both forms, the value from naturalFilters is used.

How author matching works ​

  • The author value is compared against the whole author string of the mention. It is an exact match, not a "contains" search.
  • Matching is case-insensitive by default. Set caseSensitive: true to require the exact casing.
  • Accents and diacritics are not folded: Jose does not match José. Different Unicode encodings of the same characters are treated as equal, so how the name was typed does not matter.
  • What counts as the author depends on the source type. When a source records several author values, matching any one of them is enough.
Source typeAuthor filter is matched against
WEBThe article byline. Articles without a byline never match.
COMMENTThe comment author's name.
TWITTER, BLUESKYThe display name and the handle.
INSTAGRAM, THREADSThe full name (when set) and the username.
FACEBOOKThe page or user name and the numeric page/user ID.
YOUTUBEThe channel name and the channel ID.
REDDIT, TIKTOKThe username.
PRINT, RADIO, TVThe author field of the article or clip, when available.
FORUMNo author is recorded for forum mentions, so author filters never match them.

Validation rules ​

  • Author lists must not be empty and must not contain duplicates.
  • The same author cannot appear in both the include list and the exclude list.
  • An unknown filter key or a malformed value returns HTTP 400. See Errors & Rate Limits.

Validate a definition before creating it

POST /v2/keywords/validate with the body { "keyword": { ... } } checks a keyword definition without creating anything. The response contains the normalized naturalFilters and the structured definition, so you can see exactly how your filters were interpreted.

Try it ​

Parameters

Organization ID

Keyword

The group to add the keyword to

Display name for the keyword

Keyword Definition

Natural language search query

Natural filters such as author: and not_author: (see Filtering by Author)

Include mentions in these languages

Include mentions from these locations

Include mentions from these sources

Response ​

json
{
  "id": 789,
  "name": "Tesla Mentions",
  "color": "#4A90D9",
  "naturalQuery": "Tesla OR \"Elon Musk\"",
  "active": true,
  "createdAt": "2024-01-15T10:30:00Z",
  "editedAt": "2024-01-15T10:30:00Z",
  "historySearchCoverage": [
    { "from": "2023-10-27T10:30:00Z", "to": "2024-01-15T10:30:00Z" }
  ]
}

Response Fields ​

FieldTypeDescription
idinteger (int64)Unique identifier for the created keyword
namestringDisplay name of the keyword
colorstringHex color code assigned to the keyword
naturalQuerystringThe search query as provided in the request
activebooleanWhether the keyword is actively monitoring
createdAtstring (ISO 8601)Timestamp of when the keyword was created
editedAtstring (ISO 8601)Timestamp of the last edit to the keyword
historySearchCoveragearray of objectThe periods of history that history searches have covered, each with from and to (ISO 8601). After creation it holds the period that was searched, or nothing if no history was searched. See History Search.

Errors ​

StatusDescription
400 Bad RequestThe keyword definition or historySearch is invalid. See Validation rules and History Search
403 ForbiddenThe organization has reached its plan's keyword limit (see below), or you don't have access to the group
404 Not FoundThe organization or the groupId doesn't exist. Error code NOT_EXISTS; nothing is created
429 Too Many RequestsMore than 2 requests in 10 seconds. See Errors & Rate Limits

Keyword limit ​

Each plan allows a set number of keywords per organization. When the organization already has that many, creating another returns 403 Forbidden with the error code ILLEGAL_PERMISSION, and nothing is created. The detail names the limit:

json
{
  "type": "about:blank",
  "title": "Forbidden",
  "status": 403,
  "detail": "you have exceeded maximum number of keywords 50 in organization",
  "instance": "/v2/organizations/100/keywords",
  "code": "ILLEGAL_PERMISSION"
}

The limit counts every keyword in the organization, active or not. To make room, delete a keyword: its place is freed immediately (see Keyword limit on that page). Retrying the create without deleting returns the same 403.

See the Errors & Rate Limits page for the full error response structure.

Built by Determ — Media Monitoring & Analytics