Appearance
Create Keyword
POST
/v2/organizations/{organizationId}/keywordsParameters
Path Parameters
organizationIdintegerrequiredpathThe unique identifier of the organization (int64).
Body Parameters
groupIdintegerrequiredbodyThe ID of the group to add the keyword to (int64).
namestringrequiredbodyDisplay name for the keyword.
keywordjsonrequiredbodyKeyword definition object containing the search query and filters. See keyword object fields below.
historySearchjsonbodyControls 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
| Field | Type | Description |
|---|---|---|
naturalQuery | string | The search query in natural language. Supports boolean operators like OR, AND, and quoted phrases. |
naturalFilters | string | Filters 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. |
mayAuthors | array of object | Only keep mentions written by one of these authors. Each entry is an Author Object. Equivalent to author: in naturalFilters. |
notAuthors | array of object | Exclude mentions written by any of these authors. Each entry is an Author Object. Equivalent to not_author: in naturalFilters. |
mayLangs | array of string | Language codes to include (e.g. ["en", "de"]). Use the Languages endpoint to get valid codes. |
mayLocations | array of string | Location codes to include (e.g. ["US", "GB"]). Use the Locations endpoint to get valid codes. |
maySourceTypes | array of string | Source types to monitor. Allowed values: WEB, FACEBOOK, TWITTER, FORUM, COMMENT, YOUTUBE, INSTAGRAM, REDDIT, TIKTOK, PRINT, RADIO, TV, BLUESKY, THREADS |
Author Object
| Field | Type | Description |
|---|---|---|
author | string | The author name or handle to match. Compared against the whole author string of a mention, not as a substring. See How author matching works. |
caseSensitive | boolean | Match the exact casing of author. Defaults to false (case-insensitive). |
History Search Object
| Field | Type | Description |
|---|---|---|
enabled | boolean | Set to false to skip the history search. Defaults to true. Cannot be combined with from or to. |
from | string (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. |
to | string (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"]
}
}History Search
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
historySearchCoveragelists the period that was searched. It is empty when no history was searched, for example withenabled: falseor 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.
frommust be beforeto,tomust not be in the future, afromgiven withouttomust be in the past, andenabled: falsecannot be combined withfromorto. Otherwise the request returns HTTP400with the error codeINVALID_PARAM. See Errors & Rate Limits.
Checking the history search
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
}| Field | Type | Description |
|---|---|---|
status | string | QUEUED, IN_PROGRESS, DONE, FAILED or TIMEOUT. |
progress | object | processed and total candidates. Absent until the search starts. |
limitReached | boolean | Whether 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 asfalse.
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.
Natural filters (recommended)
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: trueto require the exact casing. - Accents and diacritics are not folded:
Josedoes not matchJosé. 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 type | Author filter is matched against |
|---|---|
WEB | The article byline. Articles without a byline never match. |
COMMENT | The comment author's name. |
TWITTER, BLUESKY | The display name and the handle. |
INSTAGRAM, THREADS | The full name (when set) and the username. |
FACEBOOK | The page or user name and the numeric page/user ID. |
YOUTUBE | The channel name and the channel ID. |
REDDIT, TIKTOK | The username. |
PRINT, RADIO, TV | The author field of the article or clip, when available. |
FORUM | No 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
| Field | Type | Description |
|---|---|---|
id | integer (int64) | Unique identifier for the created keyword |
name | string | Display name of the keyword |
color | string | Hex color code assigned to the keyword |
naturalQuery | string | The search query as provided in the request |
active | boolean | Whether the keyword is actively monitoring |
createdAt | string (ISO 8601) | Timestamp of when the keyword was created |
editedAt | string (ISO 8601) | Timestamp of the last edit to the keyword |
historySearchCoverage | array of object | The 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
| Status | Description |
|---|---|
400 Bad Request | The keyword definition or historySearch is invalid. See Validation rules and History Search |
403 Forbidden | The organization has reached its plan's keyword limit (see below), or you don't have access to the group |
404 Not Found | The organization or the groupId doesn't exist. Error code NOT_EXISTS; nothing is created |
429 Too Many Requests | More 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.