Skip to main content

Thomson Reuters CLEAR API connectors

Thomson Reuters (TR) CLEAR provides search, reporting, and analytics capabilities against public records data and external live gateway data sources. The instruction describes how to install and configure the Thomson Reuters Clear - Adverse Media Search Connector for the Evan and Evelyn AI Agents to work with TR CLEAR as a data provider.

resources

You must have credentials to access TR CLEAR resources:

Installation​

To obtain an Asset Bundle (zip archive) containing the required version of the TR CLEAR connector, contact your account manager or the Support team. Once you have the Asset Bundle, import it to Control Tower following the instructions provided in the guide.

Once the import is completed successfully, you should see the installed connector variation in Control Tower:

  • For Work.AI versions up to v10.2.9: navigate to the Digital Workers page > Thomson Reuters Clear - Adverse Media Search Connector group

  • For Work.AI v10.3+: navigate to the AI Agents (Work.AI v10.3+) > Thomson Reuters Clear - Adverse Media Search Connector group

The TR CLEAR connector contains the following Business Processes (BPs):

  • TR Clear Adverse Media Monitor Adhoc Search runs one-off adverse media searches for a subject.

  • TR Clear Adverse Media Manage Monitor adds, updates, and deletes monitored subjects in TR CLEAR monitor lists, one at a time or in bulk. The BP is called by REST.

  • TR Clear Manage Monitor Alert Enrichment is a background BP that keeps the Data Store in line with TR CLEAR. It fixes monitor list subject counts, fills in missing subject IDs, and re-adds subjects that TR CLEAR does not have. Start it once; it then runs on its own timer.

  • TR Clear Adverse Media Monitor Results Poller reads new monitor results from TR CLEAR and calls the AI Agent asynchronously.

  • TR Clear Adverse Media Monitor Results Poller Batch reads new monitor results, calls the AI Agent synchronously, and saves the responses to S3.

  • TR Clear Adverse Media Monitor Results Poller Batch Push is another flavor of the poller that reads new monitor results from TR CLEAR.

    The three poller BPs do the same job in different ways. Use the flavor that your client needs.

upgrade to v4.3.1

Use TR Clear - Adverse Media Search Connector v4.3.1 instead of v4.3.0, where the Manage Monitor step of the TR Clear Manage Monitor Alert Enrichment BP is imported with the wrong configuration. The v4.3.1 upgrade removes the old reconciliation Data Store, index, and columns of the enrichment BP, so back up the Data Store database first.

Configuration​

To configure the TR CLEAR connector as a data provider, follow the steps for your platform version:

  • For Work.AI versions up to v10.2.9: go to the Digital Workers page, open the Actions menu next to the connector variation and select Settings.

  • For Work.AI v10.3+: go to the AI Agents page, open the Actions menu next to the connector variation, and select Settings.

In the configuration form, set the following parameters as needed:

  • API URL. Enter the base URL for the TR CLEAR API endpoint provided by Thomson Reuters.

  • Credentials location. Specify the authentication alias stored in Secrets Vault.

  • Credentials keystore. Enter the keystore details associated with the credentials for the provider license.

  • Proxy authentication host. Provide the hostname of your proxy server if your environment requires outbound API calls to be routed through a proxy.

  • Proxy authentication port. Specify the port number used by your proxy server.

  • Proxy authentication protocol schema. Specify the protocol used by the proxy.

  • Proxy credentials. Enter the username and password for proxy access.

  • Search Type. Select Evelyn NSS for Evelyn or Evan AMM for Evan, depending on which AI Agent will use the connector.

  • Gramm-Leach-Bliley Act. Select the intended permissible purpose to comply with the privacy provisions of the GLB Act. Misrepresenting your purpose is a violation of the subscriber agreement and applicable laws. Any misuse of West (Thomson Reuters) data may result in account termination and referral to the appropriate authorities.

  • Driver's Privacy Protection Act. Select the intended permissible use while acknowledging the DPPA requirements. The Act restricts disclosure of personal information contained in motor vehicle records. It does not apply to accident reports, violations (MVRs), or driver status.

  • Voter Permissible Purpose. Select the intended permissible use when accessing voter registration records. State laws require that each search, including its purpose and details, be stored for at least five years. Not all permissible uses apply to every state.

  • Minimum relevance score. Enter a number from 0 to 100. Any results with a relevance score below this threshold are excluded.

  • Category Tags. Provide one or more category tags to include in the search. Tags help refine the scope of adverse media results.

  • Use country in the search. Select the checkbox to include the country field in subject requests.

  • Use state in the search (for Evelyn only). Select the checkbox to include the state field in subject requests.

  • Use city in the search (for Evelyn only). Select the checkbox to include the city field in subject requests.

  • Use date of birth in the search (for Evelyn only). Select the checkbox to include the date of birth field in subject requests.

  • S3 bucket name. Enter the name of the S3 bucket.

  • S3 folder name. Enter the name of the folder in the S3 bucket.

  • Enrichment Polling Interval (Hours). Specify the number of hours between each run of the TR Clear Manage Monitor Alert Enrichment BP. The default is 24 hours, and the minimum value is 1 hour. Each run syncs the monitor list subject counts and checks them against TR CLEAR, then fills in the missing subject IDs.

Set up SSL certificate​

In addition to the user ID and password needed for basic authentication, the TR CLEAR API requires an SSL client certificate to authenticate API calls. Once installed in the environment, the certificate can be used by any number of clients.

To install the client certificate, complete the following steps:

  1. Create a keystore file using the client certificate and password provided by Thomson Reuters, for example:

    keytool -importkeystore -v -srckeystore clientcert.pfx -srcstoretype pkcs12 -keystore newstore.ks
  2. Upload the keystore file to the WorkFusion environment on the Agent virtual machines. The path is /opt/workfusion/vds-data/connectors/tr-clear.

  3. Create a secret entry with the tr.clear.api.keystore alias containing the following values:

    • Key: the path to the keystore file on the Agent machine, for instance, /opt/workfusion/vds-data/connectors/tr-clear/newstore.ks
    • Value: the keystore password
info

Agent node IP addresses must also be added to the whitelist on the Thomson Reuters side. Otherwise, API calls from the TR CLEAR connector will fail.

Configure rate limiting​

The TR CLEAR system enforces a limit of 25 concurrent open connections per CLEAR API user. To prevent HTTP 429 errors, set the following ZooKeeper property that limits the maximum number of workers to 25 when a single BP uses a single CLEAR API user. Adjust the number of workers accordingly if multiple BPs use the same TR CLEAR credentials.

Once the ZooKeeper property is updated, restart the Worker Management Service for the changes to take effect.

Set error retry​

By default, HTTP 5xx error codes and any other exceptions are retried twice, starting with a one-second delay and using exponential backoff with a 2x multiplier. This results in retry delays of 1 second and then 2 seconds, for a maximum processing time of approximately 4 seconds. If all retries are exhausted or a non-retryable HTTP error occurs (typically 4xx), the error is caught and returned in the error response.

You can modify the default configuration in ZooKeeper. Note that the node path differs for each BP:

The TR CLEAR connector integrates with TR CLEAR APIs to support adverse media searches for the Evan and Evelyn AI Agents in the TR Clear Adverse Media Monitor Adhoc Search BP.

API endpoints​

The connector integrates the following TR CLEAR API endpoints:

  • {{baseUrl}}/v2/adversemedia/searchResults submits the search criteria and returns a result URL that contains SearchId and GroupCount (total number of results).

  • {{baseUrl}}/v2/adversemedia/searchResults/<SearchID>?startGroup=<Start Index of the Group; 1 based>&maxGroups=<Number of Groups to fetch in one call>. The maxGroups (pageSize) parameter defaults to 50. To change its value, create and update the following ZooKeeper node with the desired number: /config/tr-clear-api/<userId>/maxRecordsPerPage.

Configuration parameters​

The following configuration parameters are available for the connector:

PropertyDefault valueDescriptionZooKeeper node to override property value
camel.error-handler.custom-enabledtrueEnables or disables the custom error handler./config/application,tr-clear-adhoc-search/camel.error-handler.custom-enabled
camel.error-handler.maximum-redeliveries2Maximum number of retry attempts after the initial failure. When the value is set to 2, the message is attempted three times in total (1 initial attempt and 2 retries)./config/application,tr-clear-adhoc-search/camel.error-handler.maximum-redeliveries
camel.error-handler.redelivery-delay1000Initial delay in milliseconds before the first retry attempt. Default is 1000 ms (1 second)./config/application,tr-clear-adhoc-search/camel.error-handler.redelivery-delay
camel.error-handler.back-off-multiplier2Multiplier that increases the delay between retries. When the value is set to 2, retries follow an exponential backoff: 1s → 2s → 4s./config/application,tr-clear-adhoc-search/camel.error-handler.back-off-multiplier
camel.error-handler.retryable-status-codes500-599HTTP status codes that trigger retries. The 500-599 range retries all server-side errors (5xx), while client-side errors (4xx) are not retried./config/application,tr-clear-adhoc-search/camel.error-handler.retryable-status-codes

Connector input​

{
"searchRequest" : string,
"searchPeriod": int //optional, only used by Evan
"entityId": string //optional
"location": [ //optional
{
"country": string,
"state": string,
"city": string
}
],
"dates": [ //optional, only used by Evelyn
string
],
"addToOngoingMonitor" : boolean // optional, true to add the monitor via the TR Clear Adverse Media Manage Monitor BP
"inputData": string // optional. If 'addToOngoingMonitor'=true, its content is sent to the TR Clear Adverse Media Manage Monitor BP as 'subjectDetails'
}
}

You can enable or disable processing of "country", "state", "city", and "dates" fields in the connector configuration. When addToOngoingMonitor is set to true, the monitor is forwarded to the TR Clear Adverse Media Manage Monitor BP.

The rest_request field is populated with the JSON shown below, using values extracted from connector_input.

{
"action": "addSubject",
"userReference": string // entityId (Evan) or inputData.id (Evelyn)
"subjectDetails" string // inputData
}

Connector output​

Below are the connector response and mapping details.

Evan
{
searchUrl - String (<Uri> field from the first response),
articles: [
{
fullText - String,
originalLink - String (<URL> response field),
title - String (<Title> response field),
summary - String (<Snippet> response field),
publicationDate - LocalDate (<Date> response field).
wordCount - Integer (should be calculated from the <FullText>. Null if content was not returned)
language - String (<Language> response field)
relevanceScore - double
},
...
]
}
Evelyn
{
// AdverseMediaResultsPage.RecordId
search_id: String
hits: [{
// AdverseMediaResultsPage.ResultGroup.RecordDetails.RecordId
id: String
AdverseMediaResultsPage.ResultGroup.RecordDetails.Relevance
relevance_score: double
// AdverseMediaResultsPage.ResultGroup.RecordDetails.FirstName
first_name: String
// AdverseMediaResultsPage.ResultGroup.RecordDetails.LastName
last_name: String
// AdverseMediaSanctionsResults.MatchedEntry
matched_name: String
// AdverseMediaSanctionsResults.MatchedEntryType
entity_type: {"INDIVIDUAL", "ENTITY", null}
// AdverseMediaSanctionsResults.SanctionAdditionalInfo.Alias
// AdverseMediaSoeResults.AdditionalInfo.Aka
alias_name: [String]
// AdverseMediaSanctionsResults.AdverseMediaSoeResults.Gender
gender: {"Male", "Female", "Other", null}
// AdverseMediaSanctionsResults.AdditionalInfo.Citizenship = country, type = 'Citizenship'
// AdverseMediaSanctionsResults.AdditionalInfo.BirthPlace = address
// AdverseMediaSanctionsResults.AdditionalInfo.Country = country
// AdverseMediaSanctionsResults.AdditionalInfo.Address = address
// AdverseMediaSanctionsResults.AdditionalInfo.AddressCountry = country

//
address: [{
type: String
country: String
state: String
city: String
address: String
}]
// AdverseMediaSanctionsResults.AdditionalInfo.DateOfBirth
// AdverseMediaSanctionsResults.AdditionalInfo.BirthDate
// AdverseMediaSanctionsResults.AdditionalInfo.Date
dates: [{
type: "String"
date: "mm/dd/yyyy"
}] or an empty array

}]
}

If a failure occurs, the connector returns the following exception in its response:

{
errorMessage: "<error message>"
}

For retry behavior, see Set error retry.

TR Clear Adverse Media Manage Monitor​

TR Clear Adverse Media Manage Monitor lets you create, update, and delete monitored subjects through the TR CLEAR APIs. It automatically creates monitor lists when needed and distributes subjects across them, keeping each list under the configured maximum (250000 subjects by default; the TR CLEAR limit is 500,000).

The createMonitor and addMonitorSubjects calls are asynchronous: TR CLEAR returns the subject IDs later. The last step of the BP waits for this response and saves the subject IDs in the Data Store. Subjects whose IDs never arrive are fixed by the TR Clear Manage Monitor Alert Enrichment BP.

API endpoints​

The connector integrates the following TR CLEAR API endpoints:

  • /v2/adversemedia/createMonitor creates a named adverse media monitor list containing one or more subjects, with the async flag set to true.

  • /v2/adversemedia/createMonitor/:id retrieves the status of the asynchronous request to create a monitor list.

  • /v2/adversemedia/addMonitorSubjects adds subjects to an existing adverse media monitor list, with the async flag set to true.

  • /v2/adversemedia/addMonitorSubjects/:id retrieves the status of the asynchronous request to add subjects.

  • /v2/adversemedia/deleteMonitorSubjects deletes a subject from a monitor list.

  • /v2/adversemedia/monitorListDetail returns details of a specific monitor list.

Configuration parameters​

The following configuration parameters are available for the connector:

PropertyDefault valueDescriptionZooKeeper node to override property value
camel.error-handler.custom-enabledtrueEnables or disables the custom error handler./config/application,tr-clear-manage-monitor/camel.error-handler.custom-enabled
camel.error-handler.maximum-redeliveries2Maximum number of retry attempts after the initial failure. When the value is set to 2, the message is attempted three times in total (1 initial attempt and 2 retries)./config/application,tr-clear-manage-monitor/camel.error-handler.maximum-redeliveries
camel.error-handler.redelivery-delay1000Initial delay in milliseconds before the first retry attempt. Default is 1000 ms (1 second)./config/application,tr-clear-manage-monitor/camel.error-handler.redelivery-delay
camel.error-handler.back-off-multiplier2Multiplier that increases the delay between retries. When the value is set to 2, retries follow an exponential backoff: 1s → 2s → 4s./config/application,tr-clear-manage-monitor/camel.error-handler.back-off-multiplier
camel.error-handler.retryable-status-codes500-599HTTP status codes that trigger retries. The 500-599 range retries all server-side errors (5xx), while client-side errors (4xx) are not retried./config/application,tr-clear-manage-monitor/camel.error-handler.retryable-status-codes
tr.clear.adverse-media.list.maximum-subjects-count250000Maximum number of subjects assigned to one monitor list. When the limit is reached, the connector uses another existing list or creates a new one./config/application,tr-clear-manage-monitor/tr.clear.adverse-media.list.maximum-subjects-count
tr.clear.adverse-media.bulk-add.max-subjects10000Maximum number of subjects accepted in one bulk add, update, or delete request. Requests that exceed the limit are rejected before processing. Also defines the size of the re-add requests sent by the TR Clear Manage Monitor Alert Enrichment BP./config/application,tr-clear-manage-monitor/tr.clear.adverse-media.bulk-add.max-subjects
tr.clear.adverse-media.bulk-add.dedup-chunk-size-db2000Number of user references looked up in the Data Store in one query during bulk operations./config/application,tr-clear-manage-monitor/tr.clear.adverse-media.bulk-add.dedup-chunk-size-db
tr.clear.adverse-media.db.write-batch-size2000Number of rows written to the Data Store in one batch./config/application,tr-clear-manage-monitor/tr.clear.adverse-media.db.write-batch-size
manage-monitor.async-poll.bulk.max-attempts30Maximum number of attempts to poll for the result of an asynchronous bulk add or update request. With the default polling settings, the BP stops polling after about 25 minutes./config/application,tr-clear-manage-monitor/manage-monitor.async-poll.bulk.max-attempts
manage-monitor.async-poll.bulk.initial-delay5000Initial delay in milliseconds before the first polling retry (5 seconds)./config/application,tr-clear-manage-monitor/manage-monitor.async-poll.bulk.initial-delay
manage-monitor.async-poll.bulk.multiplier1.5Multiplier that increases the delay between polling attempts. When the value is set to 1.5, delays grow as 5s → 7.5s → 11.25s, up to the maximum delay./config/application,tr-clear-manage-monitor/manage-monitor.async-poll.bulk.multiplier
manage-monitor.async-poll.bulk.max-delay60000Maximum delay in milliseconds between polling attempts (60 seconds)./config/application,tr-clear-manage-monitor/manage-monitor.async-poll.bulk.max-delay
manage-monitor.db-clear.max-attempts3Maximum number of attempts to clear a subject ID in the Data Store during an update./config/application,tr-clear-manage-monitor/manage-monitor.db-clear.max-attempts
manage-monitor.db-clear.initial-delay200Initial delay in milliseconds before the first retry to clear a subject ID./config/application,tr-clear-manage-monitor/manage-monitor.db-clear.initial-delay
manage-monitor.db-clear.multiplier2.0Multiplier that increases the delay between retries to clear a subject ID./config/application,tr-clear-manage-monitor/manage-monitor.db-clear.multiplier
manage-monitor.db-clear.max-delay2000Maximum delay in milliseconds between retries to clear a subject ID./config/application,tr-clear-manage-monitor/manage-monitor.db-clear.max-delay

Operations​

The connector exposes the operations below. Invoke them using the following URL:

<environment>/input-connector-rest/execute-record-json/tr-manage-monitor

Bulk operations add, update, or delete many subjects in one request. They use the same URL as the single operations, with a different action value. The following rules apply to all bulk operations:

  • A request can contain up to the number of subjects configured in tr.clear.adverse-media.bulk-add.max-subjects (10000 by default). Larger requests are rejected before any processing.

  • If the same userReference appears more than once in a request, the first occurrence is processed, and the others are counted in duplicatesIgnored.

  • A subject without userReference is reported as a failure and identified by its position (index N).

  • The connector makes one TR CLEAR call per monitor list, not one per subject.

  • A failure on one monitor list does not stop the processing of the other lists.

Add subject​

Use the following payload to add a subject for monitoring. The connector uses any additional fields in subjectDetails to build monitoring keywords and stores both the subject details and the derived keywords in the Data Store. If you add the same subject more than once, it is updated with the new information:

{
"action": string, // always "addSubject"
"userReference": string,
"subjectDetails": { // JSON object representing subject details - required
"search_request": string, // name to monitor
// Any additional fields needed to build the keywords for the subject to monitor
}
}
Evan
{
"action": "addSubject",
"userReference": "112233-3",
"subjectDetails": {
"search_request": "Osama Bin Laden III",
"entity_type": "INDIVIDUAL",
"residence_country": "US",
"citizenship_country": "GB",
"subdivision": "US-NY",
"city": "New York",
"year_of_birth": 1951,
"date_of_birth": "1951-05-30",
"external_id": "task_external_id",
"additional_information": "some additional information"
}
}

The subject name is extracted from subjectDetails.search_request. You can enable or disable processing of the residence_country, citizenship_country, monitor_country, and dates fields in the connector configuration.

Evelyn
{
"action": "addSubject",
"userReference": "ABC123456789",
"subjectDetails": {
"addToOngoingMonitor": true,
"clientId": "1",
"gender": "MALE",
"entityType": "INDIVIDUAL",
"dates": [
{
"original": {
"month": null,
"year": "1985",
"type": "DOB",
"day": null,
"full": null
},
"source": null,
"derived": null
}
],
"uuid": "46c7865b-7382-4077-8a2f-88abe71d9791",
"goldDecision": null,
"name": {
"firstName": "Robert",
"lastName": "Everest",
"fullName": null,
"middleName": "Landon",
"source": null,
"derived": null
},
"locations": [],
"id": "ABC123456789",
"additionalData": {},
"category": null
}
}

The subject name is extracted from name.fullName or from the concatenation of name.firstName, name.middleName, and name.lastName.

Add subjects in bulk​

Use addSubjectBulk to add multiple subjects in one request. The connector deduplicates the subjects, groups them by monitor list, and makes one API call per list. This action is also sent by the TR Clear Manage Monitor Alert Enrichment BP for subjects that TR CLEAR does not have: one request per monitor list, split into several requests when a list has more such subjects than tr.clear.adverse-media.bulk-add.max-subjects allows.

If userReference already exists in the Data Store, the subject is treated as an update, as in Update subjects in bulk. Changes to its name, location, or date of birth cause the existing TR CLEAR record to be replaced with the updated information. If only fields in subjectDetails change, the Data Store is updated without calling TR CLEAR.

New subjects are added as follows:

  1. The connector saves the new subjects in the Data Store without a TR CLEAR subject ID and updates the monitor list subject count.

  2. The connector calls TR CLEAR to create a new monitor list or to add the subjects to an existing one.

  3. The last step of the BP waits for the asynchronous TR CLEAR response and saves the subject IDs.

If the TR CLEAR call fails, the subjects remain in the Data Store without subject IDs. The TR Clear Manage Monitor Alert Enrichment BP adds them later.

{
"action": "addSubjectBulk",
"subjects": [
{
"userReference": string,
"subjectDetails": {
"search_request": string,
// Any additional fields needed to build the keywords
}
},
...
]
}
See an example

Request:

{
"action": "addSubjectBulk",
"subjects": [
{
"userReference": "REF-001",
"subjectDetails": {
"search_request": "John Doe",
"residence_country": "GB"
}
},
{
"userReference": "REF-002",
"subjectDetails": {
"search_request": "Jane Roe",
"residence_country": "US"
}
}
]
}

Response:

{
"processing": "success",
"action": "addSubjectBulk",
"details": "[{\"uri\":\"https://.../api/v2/adversemedia/createMonitor/abc123\",\"refs\":[\"REF-001\",\"REF-002\"]}]",
"bulk_summary": "{\"totalRequested\":2,\"duplicatesIgnored\":0,\"created\":2,\"updated\":0,\"dbRefreshed\":0,\"deleted\":0,\"failed\":0}"
}

Response when the TR CLEAR call fails:

{
"processing": "success",
"action": "addSubjectBulk",
"details": "[]",
"bulk_summary": "{\"totalRequested\":3,\"duplicatesIgnored\":0,\"created\":0,\"updated\":0,\"dbRefreshed\":0,\"deleted\":0,\"failed\":3,\"failures\":{\"API call failed; subject staged in DB and pending enrichment: HTTP operation failed\":[\"REF-001\",\"REF-002\",\"REF-003\"]}}"
}

Update subject​

The payload for updating a subject is identical to the Add subject payload, except for the action value. If the subject's location or date of birth in subjectDetails changes, the connector updates the subject in TR CLEAR. Otherwise, it updates only subjectDetails in the Data Store.

{
"action": string, // always "updateSubject"
"userReference": string,
"subjectDetails": { // JSON object representing subject details - required
"search_request": string, // name to monitor
// Any additional fields needed to build the keywords for the subject to monitor
}
}
See an example
{
"action": "updateSubject",
"userReference": "112233-3",
"subjectDetails": {
"search_request": "Osama Bin Laden III",
"entity_type": "INDIVIDUAL",
"residence_country": "US",
"citizenship_country": "GB",
"subdivision": "US-NY",
"city": "New York",
"year_of_birth": 1951,
"date_of_birth": "1951-05-30",
"external_id": "task_external_id",
"additional_information": "some additional information"
}
}

Update subjects in bulk​

Use updateSubjectBulk to update multiple monitored subjects in one request. Each subject must exist in the Data Store and have a TR CLEAR subject ID. Otherwise, the subject is reported as a failure. The connector compares each subject with its stored record:

  • If the subject's name, location, or date of birth changes, the connector deletes the subject from TR CLEAR, clears its subject ID in the Data Store together with saving the new details, and then adds the subject to the same monitor list again because TR CLEAR does not support partial identity updates. The connector makes one delete call and one add call per affected monitor list, rather than per subject. These subjects are counted in updated.

  • If only other fields in subjectDetails change, the connector updates the Data Store without calling TR CLEAR. These subjects are counted in dbRefreshed.

The last step of the BP polls the asynchronous add response and saves the new subject IDs. If the delete succeeds but the add fails, the Data Store keeps the new details without a subject ID, and the TR Clear Manage Monitor Alert Enrichment BP adds the subject later.

{
"action": "updateSubjectBulk",
"subjects": [
{
"userReference": string,
"subjectDetails": {
"search_request": string,
// Any additional fields needed to build the keywords
}
},
...
]
}
See an example

Request:

{
"action": "updateSubjectBulk",
"subjects": [
{
"userReference": "REF-101",
"subjectDetails": {
"search_request": "Johnathan Doe",
"residence_country": "GB"
}
},
{
"userReference": "REF-102",
"subjectDetails": {
"search_request": "Jane Roe",
"residence_country": "US",
"internal_note": "details-only refresh"
}
}
]
}

Response (REF-101 changed its name, REF-102 changed only its details):

{
"processing": "success",
"action": "updateSubjectBulk",
"details": "[{\"uri\":\"https://.../api/v2/adversemedia/addMonitorSubjects/def456\",\"refs\":[\"REF-101\"]}]",
"bulk_summary": "{\"totalRequested\":2,\"duplicatesIgnored\":0,\"created\":0,\"updated\":1,\"dbRefreshed\":1,\"deleted\":0,\"failed\":0}"
}

Delete subject​

The payload for deleting a subject is similar to the add and update operations. subjectDetails is optional.

{
"action": string, // always "deleteSubject"
"userReference": string,
"subjectDetails": { // JSON object representing subject details - optional
"search_request": string, // name to monitor
// Any additional fields needed to build the keywords for the subject to monitor
}
}
See an example
{
"action": "deleteSubject",
"userReference": "testUserReference"
}

Delete subjects in bulk​

Use deleteSubjectBulk to delete multiple subjects in one request. Each subject must exist in the Data Store and have a TR CLEAR subject ID. Otherwise, the subject is reported as a failure. The connector groups subjects by monitor list and makes one API call per list. This operation does not wait for an asynchronous TR CLEAR response.

Each monitor list is processed independently. If deletion fails for one list, the connector records those subjects as failures, leaves their Data Store records unchanged, and continues processing the other lists. Data Store records are deleted only after TR CLEAR confirms the deletion. If the TR CLEAR call fails, nothing is changed, and you can send the request again.

{
"action": "deleteSubjectBulk",
"subjects": [
{ "userReference": "100-ab" },
{ "userReference": "100-cd" }
]
}
See an example

Request:

{
"action": "deleteSubjectBulk",
"subjects": [
{ "userReference": "REF-001" },
{ "userReference": "REF-002" }
]
}

Response:

{
"processing": "success",
"action": "deleteSubjectBulk",
"details": "[\"<DeleteMonitorSubjectsResponse>...</DeleteMonitorSubjectsResponse>\"]",
"bulk_summary": "{\"totalRequested\":2,\"duplicatesIgnored\":0,\"created\":0,\"updated\":0,\"dbRefreshed\":0,\"deleted\":2,\"failed\":0}"
}

Response​

Bulk operations return a response structured as follows:

{
"processing": string // "success" or "failed"
"details": string // response details from Thomson Reuters CLEAR system
"action": string // manage monitor action (addSubject, deleteSubject, and so on)
"bulk_summary": string // details of the bulk operation
}

The first response comes immediately from the Manage Monitor step:

FieldDescription
processingsuccess or failed. The value is success even when some subjects fail, so always check failed in bulk_summary.
actionOperation that was run.
detailsFor add and update operations, the TR CLEAR URIs to wait for, with the subjects of each URI. For delete operations, the TR CLEAR responses.
bulk_summaryOperation counts: totalRequested, duplicatesIgnored, created, updated, dbRefreshed, deleted, failed, and failures (failed subjects grouped by reason).

For add and update operations, the last step of the BP later adds a second row to the BP results:

FieldDescription
processedtrue when the TR CLEAR response is read.
missing_subject_refsSubjects that TR CLEAR did not confirm. If TR CLEAR does not respond in time (about 25 minutes with the default settings), all requested subjects are listed. These subjects remain without subject IDs until the TR Clear Manage Monitor Alert Enrichment BP fixes them.
See an example
{
"processed": "true",
"tr_response": "Bulk operation response omitted: too large to return. See bulk_summary and missing_subject_refs.",
"missing_subject_refs": [
"REF-002"
]
}

To resolve failures, start with bulk_summary.failures in the first response. For add and update operations, also check the second row in the BP results.

MessageDescriptionAction
Subject is missing a required 'userReference'The subject cannot be tracked.Fix the input and send these subjects again.
Failed to parse subject: ...subjectDetails could not be read.Fix the input and send these subjects again.
DB save failed: ...A Data Store error occurred. TR CLEAR was not called.Send the request again later.
API call failed; subject staged in DB and pending enrichmentThe subject is saved in the Data Store, but the TR CLEAR call failed.No action is needed. The TR Clear Manage Monitor Alert Enrichment BP adds the subject once it is 60 minutes old.
Subject not found in DBThe userReference is unknown for this TR CLEAR user and search type.Check the reference. To add a new subject, use addSubjectBulk.
Subject has no subjectId.The subject is still waiting for its TR CLEAR subject ID.Wait for the TR Clear Manage Monitor Alert Enrichment BP to run, then send the update or delete request again.
Delete API call failed: ...The TR CLEAR delete call failed. Nothing is changed.Send the request again.
Subject deleted from monitor but add failed; staged in DB ...During an update, the subject was removed from TR CLEAR, but adding it back failed.No action is needed. The TR Clear Manage Monitor Alert Enrichment BP adds the subject with the new details.
Subject deleted from TR Clear but its old subjectId could not be cleared in DB ...Rare. The Data Store still has the old subject ID, so the enrichment BP skips the subject.Set subject_id to NULL for these records. The enrichment BP then adds them again.
DB delete failed after TR Clear delete succeeded: ...The subject is deleted from TR CLEAR but remains in the Data Store.Delete the Data Store record manually. The enrichment BP never deletes records.
DB batch update failed: ...A Data Store error occurred while saving the update.Send the update request again.
missing_subject_refs is not emptyTR CLEAR did not confirm these subjects or did not respond in time.No action is needed. The enrichment BP retries them. If the same subjects keep appearing, check their data.
processed is falseThe last step of the BP could not read the TR CLEAR response.Check the log. The enrichment BP fixes the subjects without subject IDs.
Incorrect monitor list subject countA count update failed.No action is needed. The count check of the enrichment BP fixes it on the next run.

To check subjects in the Data Store, run the following query:

SELECT subject_user_reference, list_name, subject_name, subject_id,
CASE WHEN subject_id IS NULL THEN 'WAITING FOR TR ID' ELSE 'IN TR CLEAR' END AS state,
date_created, date_updated
FROM ds_uc_trclearmanagemonitor_monitorsubject_v1
WHERE user_id = '<TR Clear API user>'
AND type = 'ADVERSE_MEDIA' -- or 'SANCTIONS'
AND subject_user_reference IN ('REF-001', 'REF-002');

For retry behavior, see Set error retry.

TR Clear Manage Monitor Alert Enrichment​

TR Clear Manage Monitor Alert Enrichment is a background BP that keeps the Data Store in line with TR CLEAR. It runs on a timer, so nobody calls it. At each run, the BP does the following:

  • Checks the subject count of each monitor list: fixes the count stored in the Data Store and compares it with TR CLEAR.

  • Finds the subjects that have no TR CLEAR subject ID yet and fills in the ID from TR CLEAR.

  • Adds back to TR CLEAR the subjects that TR CLEAR does not have.

The BP never deletes subjects and never changes a subject ID that is already set.

When the TR Clear Adverse Media Manage Monitor BP adds a subject, it saves the subject in the Data Store first and calls TR CLEAR second. TR CLEAR returns the subject ID later (asynchronously), so until then, the Data Store record has an empty subject_id. If the TR CLEAR call fails or the response never comes, the record stays empty. The TR Clear Manage Monitor Alert Enrichment BP fixes such records.

The BP consists of the following steps:

  1. Monitor Subject Enrichment Trigger runs on a timer, checks the counts, and selects the monitor lists to enrich:

    • For each monitor list, it sets the stored subject count to the actual number of subject records. Lists changed in the last five minutes keep their count because an operation can still be running. Then it compares the counts with TR CLEAR. Differences are only written to the log; nothing is changed in TR CLEAR. If this check fails, the rest of the run still proceeds.

    • It selects only the subjects without a subject ID that have not been changed for 60 minutes because newer records can still be waiting for the TR CLEAR response. One record per monitor list goes to the next step. If there are no such subjects, the run ends here.

  2. Manage Monitor (adverse_media_alert_enrichment) reads each monitor list from TR CLEAR page by page using the monitorListDetail endpoint: up to 25 pages, with a two-second pause between pages. When a Data Store subject is found, its TR CLEAR subject ID is saved. Reading stops early once all subjects are found. Only when the whole list is read, the step builds addSubjectBulk requests for the subjects that TR CLEAR does not have, with up to 10,000 subjects per request.

  3. Decision Rule sends the rows with a re-add request (rest_request) to the next step. The other rows go to the final results.

  4. Manage Monitor (adverse_media_manage_monitor_noCaller) adds the missing subjects to TR CLEAR. It works the same way as the Manage Monitor step of the TR Clear Adverse Media Manage Monitor BP but does not send its result back to a caller because this BP is started by a timer, not by a REST call.

  5. Manage Monitor (adverse_media_manage_monitor_async_response) waits for the TR CLEAR response and saves the new subject IDs. Subjects that TR CLEAR did not confirm are listed in missing_subject_refs. They remain without subject IDs, and the next run tries again.

info

Subjects are re-added only after the complete monitor list is read. If the list is not read to the end (because of the page limit or a TR CLEAR error), nothing is re-added, and the next run starts again from page 1.

Configuration parameters​

In the configuration form, use Enrichment Polling Interval (Hours) to specify the interval between enrichment runs. The default is 24 hours. The first run starts when the BP starts. To start a run immediately, restart the BP.

The following ZooKeeper properties control the enrichment behavior:

PropertyDefault valueDescriptionZooKeeper node to override property value
tr.clear.adverse-media.monitor-enrichment.null-readd-min-age-minutes60Minimum number of minutes a subject without a subject ID must remain unchanged before the BP processes it./config/application,tr-clear-monitor-results-trigger/tr.clear.adverse-media.monitor-enrichment.null-readd-min-age-minutes and /config/application,tr-clear-manage-monitor/tr.clear.adverse-media.monitor-enrichment.null-readd-min-age-minutes
tr.clear.adverse-media.monitor-enrichment.count-sync-recent-activity-minutes5Monitor lists changed in the last N minutes keep their stored subject count./config/application,tr-clear-monitor-results-trigger/tr.clear.adverse-media.monitor-enrichment.count-sync-recent-activity-minutes
tr.clear.adverse-media.monitor-enrichment.list-detail.max-pages-per-list25Maximum number of TR CLEAR pages read per monitor list in one run./config/application,tr-clear-manage-monitor/tr.clear.adverse-media.monitor-enrichment.list-detail.max-pages-per-list
tr.clear.adverse-media.monitor-enrichment.list-detail.page-delay-ms2000Pause in milliseconds between reading two pages./config/application,tr-clear-manage-monitor/tr.clear.adverse-media.monitor-enrichment.list-detail.page-delay-ms
tr.clear.adverse-media.bulk-add.max-subjects10000Maximum number of subjects in one re-add request./config/application,tr-clear-manage-monitor/tr.clear.adverse-media.bulk-add.max-subjects
tr.clear.adverse-media.db.write-batch-size2000Number of subject IDs saved in one Data Store write./config/application,tr-clear-manage-monitor/tr.clear.adverse-media.db.write-batch-size
manage-monitor.async-poll.bulk.max-attempts30Maximum number of attempts to poll TR CLEAR for the response./config/application,tr-clear-manage-monitor/manage-monitor.async-poll.bulk.max-attempts
manage-monitor.async-poll.bulk.initial-delay5000Initial delay in milliseconds between polling attempts (5 seconds)./config/application,tr-clear-manage-monitor/manage-monitor.async-poll.bulk.initial-delay
manage-monitor.async-poll.bulk.multiplier1.5Multiplier that increases the delay between polling attempts./config/application,tr-clear-manage-monitor/manage-monitor.async-poll.bulk.multiplier
manage-monitor.async-poll.bulk.max-delay60000Maximum delay in milliseconds between polling attempts (60 seconds). With the default polling settings, the step stops polling after about 25 minutes./config/application,tr-clear-manage-monitor/manage-monitor.async-poll.bulk.max-delay

Connector output​

The BP provides the following fields for monitoring and validating each run:

FieldDescription
monitor_list_nameMonitor list the output row belongs to. Present in every row.
processingProcessing result for the monitor list, for example: all subjects found in TR CLEAR, the whole list read with no subjects to re-add (walk complete), the list not read to the end because of the page limit or a TR CLEAR error (walk incomplete), or an error message.
rest_requestOne addSubjectBulk request sent to the Manage Monitor (adverse_media_manage_monitor_noCaller) step. Present only in rows with re-adds.
processedtrue when the Manage Monitor (adverse_media_manage_monitor_async_response) step has read the TR CLEAR response.
missing_subject_refsSubjects that TR CLEAR did not confirm. If TR CLEAR does not respond in time, all requested subjects are listed.

Each run writes two summary lines for the count check to the log: Monitor list subject count sync lists the counts fixed in the Data Store, and Monitor list TR Clear check lists the differences between the Data Store and TR CLEAR, such as Count differs, In the DB, not in TR Clear, or In TR Clear, not in the DB. The log level is INFO when everything matches and WARN when a count is fixed or differs.

The Manage Monitor (adverse_media_manage_monitor_async_response) step writes one [BulkAsync] line per TR CLEAR response. The line shows how many subjects were requested, confirmed, and missing, or giving up if TR CLEAR did not respond in time.

Use the output and the logs to resolve the following issues:

IssueAction
Subjects remain without subject IDs after several runs.Check the rest_request rows, missing_subject_refs of the last step, and the [BulkAsync] log lines.
[BulkAsync] ... still not ready ... giving upTR CLEAR did not respond within about 25 minutes. No action is needed: the next run finds the subjects in TR CLEAR or adds them again.
The re-add fails with alertSubject.name ... null or missing.One subject without a subject ID in the monitor list has no name in subject_details (search_request for ADVERSE_MEDIA, name for SANCTIONS). The whole request for this list fails. Fix or delete this Data Store record.
processing reports that the list was not read to the end (walk incomplete).The monitor list was not read to the end because of the page limit or a TR CLEAR error, so nothing was re-added. Check the TR CLEAR errors in the log. The next run starts again from page 1.
The count check reports Count differs or In the DB, not in TR Clear.Compare the monitor list in TR CLEAR with the Data Store. Usually, an add request did not reach TR CLEAR. The BP re-adds the subject once its record is 60 minutes old.
The count check reports In TR Clear, not in the DB.These are monitor lists of the TR CLEAR account that this Data Store does not know, for example, lists created by another environment that uses the same TR CLEAR account.

TR Clear Adverse Media Monitor Results Poller​

TR Clear Adverse Media Monitor Results Poller connects to the TR CLEAR API and polls monitor lists for new results. You can configure the connector to work with Evan or Evelyn, depending on the sync event step defined in the BP.

The BP is designed to run once per execution. Use the platform scheduler to schedule it to run every X days.

Several poller BPs are available:

  • TR Clear Adverse Media Monitor Results Poller calls the AI Agent asynchronously.

    TR Clear - Adverse Media Search Connector before v3.9.0TR Clear - Adverse Media Search Connector v3.9.0+
  • TR Clear Adverse Media Monitor Results Poller Batch (from version 3.9.0 onward) calls the AI Agent synchronously and saves the responses to the S3 location defined in the configuration.

Configure the Decision Rule step as shown below:

Work.AI up to v10.2.9Work.AI v10.3+

API endpoints​

The connector integrates the following TR CLEAR API endpoints:

  • {{baseUrl}}/v2/adversemedia/monitorResults submits the search criteria and returns a result URL that contains SearchId and GroupCount (total number of results).

  • {{baseUrl}}/v2/adversemedia/monitorResults/<SearchID>?startGroup=<Start Index of the Group; 1 based>&maxGroups=<Number of Groups to fetch in one call>. The maxGroups (pageSize) parameter defaults to 50. To change the value, create and update the following ZooKeeper node with the desired number: /config/tr-clear-api/<userId>/maxRecordsPerPage.

warning

Do not set the value too low as this increases API call volume and may cause TR CLEAR to enforce rate limits.

Configuration parameters​

The following configuration parameters are available for the connector:

PropertyDefault valueDescriptionZooKeeper node to override property value
camel.error-handler.custom-enabledtrueEnables or disables the custom error handler./config/application,tr-clear-monitor-results/camel.error-handler.custom-enabled
camel.error-handler.maximum-redeliveries2Maximum number of retry attempts after the initial failure. When the value is set to 2, the message is attempted three times in total (1 initial attempt and 2 retries)./config/application,tr-clear-monitor-results/camel.error-handler.maximum-redeliveries
camel.error-handler.redelivery-delay1000Initial delay in milliseconds before the first retry attempt. Default is 1000 ms (1 second)./config/application,tr-clear-monitor-results/camel.error-handler.redelivery-delay
camel.error-handler.back-off-multiplier2Multiplier that increases the delay between retries. When the value is set to 2, retries follow an exponential backoff: 1s → 2s → 4s./config/application,tr-clear-monitor-results/camel.error-handler.back-off-multiplier
camel.error-handler.retryable-status-codes500-599HTTP status codes that trigger retries. The 500–599 range retries all server-side errors (5xx), while client-side errors (4xx) are not retried./config/application,tr-clear-monitor-results/camel.error-handler.retryable-status-codes

Trigger usage​

From version 3.9.0 onward, the Trigger connector is used to communicate with Thomson Reuters using the CLEAR APIs. The logic is as follows:

  1. For the configured user and AI Agent combination, retrieve all list names and related properties from the uc_trclearmanagemonitor_monitorlistname_v1 Data Store.

  2. For each returned list_name, create a record in the uc_trclearmanagemonitor_monitorresults_processing_v1 Data Store, submit the search criteria, and receive the resulting URL containing SearchId and GroupCount (the number of results).

  3. Generate the pagination list based on the maxRecordsPerPage ZooKeeper property associated with the user ID.

  4. For each page, retrieve the results and create a map of <subjectName, Map<subjectUserReference, MonitorResult>>.

    Once all the maps associated with a specific subjectName are collected, the corresponding records for each unique subject reference with the same name are sent to processing.

Connector input​

No input is required for the connector as it generates its own input based on the configuration parameters. Additionally, it generates a default date range covering the previous day. The last successful search date is stored in the following ZooKeeper location:

  • TR Clear - Adverse Media Search Connector before v3.9.0:

    • Evan: /config/tr-clear-api/<userId>/monitorResults/adverse_media/lastSearchDate

    • Evelyn /config/tr-clear-api/<userId>/monitorResults/sanctions/lastSearchDate

  • TR Clear - Adverse Media Search Connector v3.9.0+: the uc_trclearmanagemonitor_monitorlistname_v1 Data Store > the last_search_date column

Subsequent runs check this stored value, if present, and use it as the From date. This ensures that if the TR Clear Adverse Media Monitor Results Poller BP does not run for several days (due to errors or an intentional stop), the lookback period starts from the last successful run, preventing gaps in result retrieval. If necessary, you can manually set a custom start date for the next run.

Connector output​

Below are the connector response and mapping details.

Evan
{
listName: String (Monitor list name),
searchSubject: String,
subjectId: String (TR CLEAR-generated ID),
userReference: String (WorkFusion supplied reference for search subject),
searchUrl - String (<Uri> field from the first response),
articles: [
{
fullText - String,
originalLink - String (<URL> response field),
title - String (<Title> response field),
summary - String (<Snippet> response field),
publicationDate - LocalDate (<Date> response field),
wordCount - Integer (should be calculated from the <FullText>. Null if content was not returned),
language - String (<Language> response field)
relevanceScore - double
},
...
]
}
Evelyn
{
listName: String (Monitor list name),
searchSubject: String,
subjectId: String (TR CLEAR-generated ID),
userReference: String (WorkFusion supplied reference for search subject),
// AdverseMediaResultsPage.RecordId
search_id: String
hits: [{
// AdverseMediaResultsPage.ResultGroup.RecordDetails.RecordId
id: String
AdverseMediaResultsPage.ResultGroup.RecordDetails.Relevance
relevance_score: double
// AdverseMediaResultsPage.ResultGroup.RecordDetails.FirstName
first_name: String
// AdverseMediaResultsPage.ResultGroup.RecordDetails.LastName
last_name: String
// AdverseMediaSanctionsResults.MatchedEntry
matched_name: String
// AdverseMediaSanctionsResults.MatchedEntryType
entity_type: {"INDIVIDUAL", "ENTITY", null}
// AdverseMediaSanctionsResults.SanctionAdditionalInfo.Alias
// AdverseMediaSoeResults.AdditionalInfo.Aka
alias_name: [String]
// AdverseMediaSanctionsResults.AdverseMediaSoeResults.Gender
gender: {"Male", "Female", "Other", null}
// AdverseMediaSanctionsResults.AdditionalInfo.Citizenship = country, type = 'Citizenship'
// AdverseMediaSanctionsResults.AdditionalInfo.BirthPlace = address
// AdverseMediaSanctionsResults.AdditionalInfo.Country = country
// AdverseMediaSanctionsResults.AdditionalInfo.Address = address
// AdverseMediaSanctionsResults.AdditionalInfo.AddressCountry = country

//
address: [{
type: String
country: String
state: String
city: String
address: String
}]
// AdverseMediaSanctionsResults.AdditionalInfo.DateOfBirth
// AdverseMediaSanctionsResults.AdditionalInfo.BirthDate
// AdverseMediaSanctionsResults.AdditionalInfo.Date
dates: [{
type: "String"
date: "mm/dd/yyyy"
}] or an empty array

}]
}

If a failure occurs, the connector returns the following exception in the response. In this case, the BP is not triggered.

{
errorMessage: "<error message>"
}

For retry behavior, see Set error retry.