Unify and manage your data

Scan match statistics by lookup type using filter

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

The Scan statistics by lookup type API retrieves Autopilot match statistics for a specific lookup type using pagination. It supports advanced filtering and sorting through expressions.

The API 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 filtered and sorted datasets.

HTTP method and endpoint

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

POST /configuration/{tenantId}/autopilot/stats/{lookupType}/_scan?filter={filter}&limit={limit}&sort={sort}&order={order}

The following table describes the endpoint path parameters.

ParameterTypeRequiredDescription
tenantIdStringYesTenant identifier
lookupTypeStringYesLookup type

Request headers

The following request headers must be included.

HeaderValueRequired
AuthorizationBearer {token}Yes

Query parameters

The following table describes the query parameters.

ParameterTypeRequiredDescriptionAccepted values / Default
filterStringNoAdditional filter expression.
limitIntegerNoPage size.Default: 100, max: 100
sortStringNoSort field name.
orderStringNoSort order.asc or desc

Request body

The request body must be omitted or set to null in the initial request. In subsequent requests, include the scrollId returned from the previous response in the request body to fetch the next set of results, for example using the scroll ID "xyz".

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, when available.
candidateValueStringDisplay value of the selected lookup candidate, when available.
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 processed automatically.
frequencyAtMappingNumberFrequency count recorded at the time the mapping or lookup creation decision was made.
frequencyWindowHoursNumberTime window, in hours, used to calculate source frequency.
statusStringStatus of the result, such as LOOKUP_CREATED or MISSPELLED.
mappedAtNumberTimestamp, in epoch milliseconds, when the value was mapped or the lookup was created, when available.
mappedByStringUser that created the mapping or lookup, when available.
createdAtNumberTimestamp, in epoch milliseconds, when the result record was created.
sourceFrequencyObjectFrequency summary for the unmapped value.
sourceFrequency.totalCountNumberTotal number of times the unmapped value appeared in the evaluated period.
sourceFrequency.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 result.
aiReasoningStringExplanation of why the result was selected.
configVersionNumberVersion of the configuration used when the result was generated.

Response body

The following example shows a successful response.

{
    "scrollId": "xyz",
    "values": [
        {
            "tenantId": "my_tenant",
            "lookupType": "Currencies",
            "source": "SAP",
            "unmappedValue": "GBP Pound",
            "semanticScore": 0.0,
            "centroidMatch": false,
            "currentFrequency": 2,
            "requiredFrequency": 1,
            "frequencyAtMapping": 2,
            "frequencyWindowHours": 1,
            "status": "LOOKUP_CREATED",
            "mappedAt": 1775498802218,
            "mappedBy": "SYSTEM",
            "createdAt": 1775498800892,
            "sourceFrequency": {
                "totalCount": 2,
                "hourlyFrequency": {
                    "1775498400000": 2
                }
            },
            "updateDate": 1775498802218,
            "aiConfidence": 0.98,
            "aiReasoning": "GBP Pound refers to the currency used in the United Kingdom, which matches the description for this lookup type.",
            "configVersion": 6
        },
        {
            "tenantId": "my_tenant",
            "lookupType": "Currencies",
            "source": "SAP",
            "unmappedValue": "GBP Poumd",
            "candidateLookupCode": "GBP Pound",
            "candidateValue": "GBP Pound",
            "semanticScore": 0.87547207,
            "centroidMatch": false,
            "currentFrequency": 4,
            "requiredFrequency": 1,
            "frequencyAtMapping": 0,
            "frequencyWindowHours": 1,
            "status": "MISSPELLED",
            "createdAt": 1775498801429,
            "sourceFrequency": {
                "totalCount": 4,
                "hourlyFrequency": {
                    "1775498400000": 4
                }
            },
            "updateDate": 1775498838488,
            "aiConfidence": 0.97,
            "aiReasoning": "The unmapped value 'GBP Poumd' is a misspelling of the candidate 'GBP Pound', which refers to the British pound currency.",
            "configVersion": 6
        }
    ]
}