Unify and manage your data

Scan statistics by Lookup type and status using pagination

Learn how to scan Autopilot match statistics for a specific lookup type and status using cursor-based pagination.

The Scan statistics by lookup type and status API retrieves Autopilot match statistics for a specific lookup type and status directly from the database using cursor-based pagination. It returns results in pages and includes a scrollId in each response.

You use this scrollId in subsequent requests to retrieve the next set of results. This approach enables efficient traversal of large datasets and ensures that results do not overlap or duplicate when processing filtered match statistics.

HTTP method and endpoint

Use the following HTTP method and endpoint path to submit the request:

POST /configuration/{tenantId}/autopilot/stats/{lookupType}/{status}/_dbscan?source={source}&limit={limit}

This endpoint scans Autopilot match statistics for the specified lookup type and status and returns results in pages using a cursor.

The following table describes the endpoint path parameters.

ParameterTypeRequiredDescription
tenantIdStringYesTenant identifier
lookupTypeStringYesLookup type
statusStringYesStatus value, for example TRACKING or AUTOMAPPED

Query parameters

The following table describes the query parameters.

ParameterTypeRequiredDescriptionAccepted values / Default
sourceStringNoFilters by source system name.
limitIntegerNoPage size.Default: 100, max: 100

Request headers

The following request headers must be included.

HeaderValueRequired
AuthorizationBearer {token}Yes

Request body

For the first request, omit the request body or send null. For subsequent requests, pass the scrollId returned by the previous response in the request body. For example, use the scroll ID: "xyx" in the next request to retrieve the following set of results.

Response body

The following table describes the fields returned in the response body.

FieldTypeDescription
scrollIdStringIdentifier used to retrieve the next set of results in the current scroll session.
valuesArrayList of result objects returned in the response.
tenantIdStringTenant identifier associated with the result.
lookupTypeStringName of the lookup type.
sourceStringSource system or origin of the unmapped value.
unmappedValueStringOriginal source value that did not previously have a lookup mapping.
candidateLookupCodeStringLookup code selected as the candidate for mapping.
candidateValueStringDisplay value of the selected lookup candidate.
semanticScoreNumberSimilarity score assigned to the candidate match.
centroidMatchBooleanIndicates whether the candidate matched the centroid-based comparison logic.
currentFrequencyNumberObserved frequency of the unmapped value in the current evaluation window.
requiredFrequencyNumberMinimum frequency threshold required before the value can be mapped automatically.
frequencyAtMappingNumberFrequency count recorded at the time the mapping was created.
frequencyWindowHoursNumberTime window, in hours, used to calculate source frequency.
statusStringStatus of the mapping result.
mappedAtNumberTimestamp, in epoch milliseconds, when the value was mapped.
mappedByStringUser that created the mapping.
createdAtNumberTimestamp, in epoch milliseconds, when the result record was created.
sourceFrequencyObjectFrequency summary for the unmapped value.
totalCountNumberTotal number of times the unmapped value appeared in the evaluated period.
hourlyFrequencyObjectHourly breakdown of observed frequency, keyed by epoch-millisecond time buckets.
updateDateNumberTimestamp, in epoch milliseconds, when the result was last updated.
aiConfidenceNumberConfidence score assigned by the AI model for the proposed mapping.
aiReasoningStringExplanation of why the candidate value was selected as a match.
configVersionNumberVersion of the configuration used when the mapping decision was generated.

Example Response

The following example shows a successful response.

{
    "scrollId": "eyJzIjoiMMKnJEZJTiTCrjHCpyRGSU4kwq4ywqckRklOJMKuM8KnJEZJTiTCrjTCpyRGSU4kwqkwOjU6NSJ9",
    "values": [
        {
            "tenantId": "my_tenant",
            "lookupType": "Currencies",
            "source": "Reltio",
            "unmappedValue": "British Pound Sterling",
            "candidateLookupCode": "GBP Pound",
            "candidateValue": "GBP Pound",
            "semanticScore": 0.9245659,
            "centroidMatch": true,
            "currentFrequency": 4,
            "requiredFrequency": 1,
            "frequencyAtMapping": 4,
            "frequencyWindowHours": 1,
            "status": "AUTOMAPPED",
            "mappedAt": 1775498978200,
            "mappedBy": "SYSTEM",
            "createdAt": 1775498973807,
            "sourceFrequency": {
                "totalCount": 4,
                "hourlyFrequency": {
                    "1775498400000": 4
                }
            },
            "updateDate": 1775498978200,
            "aiConfidence": 0.98,
            "aiReasoning": "The unmapped value 'British Pound Sterling' refers to the same currency as the candidate 'GBP Pound'.",
            "configVersion": 6