v36

OpenAPI 3.1.0raw.githubusercontent.com2026-08-0187270483.0 KB
Function Accuracy

Get Function Metrics

Retrieve performance metrics for functions based on labeled transformation data.

Calculates accuracy, precision, recall, F1, and the underlying confusion-matrix counts for each matching function by comparing model outputs against user corrections. Metrics are aggregated across every transformation the function has produced, regardless of function type — extract, transform, analyze, and join all populate the same metrics column on the transformation row, so v3 surfaces all of them uniformly.

Filtering

Combine functionIDs / functionNames / types to narrow the result set. types accepts extract alongside the legacy transform / analyze types (which remain readable). Pagination is cursor-based.

Requirements

A function only shows non-zero metrics once at least one of its transformations has been labeled — submit corrections via POST /v3/events/{eventID}/feedback.

get/v3/functions/metrics

Query parameters

limitinteger
functionIDsstring[]
functionNamesstring[]
typesFunctionType[]
sortOrder'asc' | 'desc'

Sort direction over the result set (default asc). Pagination works symmetrically in both directions via startingAfter / endingBefore.

startingAfterstring

Cursor — a functionID defining your place in the list.

endingBeforestring

Cursor — a functionID defining your place in the list.

Response

The request has succeeded.

totalCountinteger required

Total number of functions