v51

latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-01302395850.8 KB
v2
admin
admin
execution_analytics

Generate Execution Analytics

Generate activity summaries and correctness scores for graph executions.

This endpoint:

  1. Fetches all completed executions matching the criteria
  2. Identifies executions missing activity_status or correctness_score
  3. Generates missing data using AI in batches
  4. Updates the database with new stats
  5. Returns a detailed report of the analytics operation
post/api/executions/admin/execution_analytics

Request body

graph_idstring required

Graph ID to analyze

graph_versioninteger nullable

Optional graph version

user_idstring nullable

Optional user ID filter

created_afterstring date-time nullable

Optional created date lower bound

model_namestring

Model to use for generation

batch_sizeinteger

Batch size for concurrent processing

system_promptstring nullable

Custom system prompt (default: built-in prompt)

user_promptstring nullable

Custom user prompt with {{GRAPH_NAME}} and {{EXECUTION_DATA}} placeholders (default: built-in prompt)

skip_existingboolean

Whether to skip executions that already have activity status and correctness score

Response

Successful Response

total_executionsinteger required
processed_executionsinteger required
successful_analyticsinteger required
failed_analyticsinteger required
skipped_executionsinteger required