Skip to main content
POST
/
context
/
entitymatching
/
predict
JavaScript SDK
const response = await client.entityMatching.predict({
 externalId: 'model123',
 sources: [{externalId: 'asset1', name: 'asset1'}, {externalId: 'asset2', name: 'asset2'}],
 targets: [{externalId: 'ts1', name: 'ts1'}, {externalId: 'ts2', name: 'ts2'}],
});
{
  "jobId": 123,
  "status": "Queued",
  "createdTime": 1730204346000,
  "startTime": 1730204346000,
  "statusTime": 1730204346000,
  "errorMessage": null
}

Authorizations

Authorization
string
header
required

Access token issued by the CDF project's configured identity provider. Access token must be an OpenID Connect token, and the project must be configured to accept OpenID Connect tokens. Use a header key of 'Authorization' with a value of 'Bearer $accesstoken'. The token can be obtained through any flow supported by the identity provider.

Body

application/json
id
integer<int64>
required

The ID of the model that is used to predict matches.

Required range: 1 <= x <= 9007199254740991
sources
object[]

List of source entities to predict matches for, for example, time series. If omitted, will use sources from create and assetsAcl:READ capability will be required for the request.

Maximum array length: 2000000
targets
object[]

List of potential target entities to match to one or more of the source entities, for example, assets. If omitted, will use targets from create and assetsAcl:READ capability will be required for the request.

Required array length: 1 - 2000000 elements
numMatches
integer

The maximum number of results to return for each source entity.

Required range: 0 <= x <= 100
Example:

3

scoreThreshold
number

Only return matches with score above this threshold.

Required range: 0 <= x <= 1
Example:

0.7

Response

Success

jobId
integer<int64>
required

Contextualization job ID.

Example:

123

status
enum<string>
required

The status of the job.

Available options:
Queued,
Running,
Completed,
Failed
createdTime
integer<int64>
required

The number of milliseconds since 00:00:00 Thursday, 1 January 1970, Coordinated Universal Time (UTC), minus leap seconds.

Required range: x >= 0
Example:

1730204346000

startTime
integer<int64>
required

The number of milliseconds since 00:00:00 Thursday, 1 January 1970, Coordinated Universal Time (UTC), minus leap seconds.

Required range: x >= 0
Example:

1730204346000

statusTime
integer<int64>
required

The number of milliseconds since 00:00:00 Thursday, 1 January 1970, Coordinated Universal Time (UTC), minus leap seconds.

Required range: x >= 0
Example:

1730204346000

errorMessage
string

If the job failed, some more information about the error cause.

Example:

null

Last modified on April 23, 2026