action contract_p_get_stats_resource { label: "Get inbox statistics" description: "Compute and return statistics on the given inbox, optionally restricted to a date range and a field.\n\nStats will return per field:\n- accuracy\n- precision\n- f1 score\n- recall\n\n**Note** Depending on the date range and fields, computation might be intensive\n\n**Permission required:** view_statistics" provider: contract_p method: GET path: "/stats/{inbox_id}" encoding: json input: { type: "object" properties: { end_date: { type: "string" format: "date-time" } field_name: { type: "string" } start_date: { type: "string" format: "date-time" } version_name: { type: "string" } } additionalProperties: false } output: { type: "object" additionalProperties: true } }