Skip to Content
Analytics boards

Discover analysis query capabilities

Permissionboards:readAuthentication
GET
/analysis/schema

Returns the complete machine-readable query vocabulary, per-column operations and filter operators, dynamic extraction-object fields, agent IDs, time bases, and hard result limits. Agents should read this endpoint instead of guessing which operation a column supports.

Authorization

bearerAuth
headerAuthorizationBearer <token>

Use a Voice API key or connected-app OAuth access token. Authentication.

Response Body

Current workspace-specific analysis schema.

application/json
  1. response
schema_version*string

2.0 publishes every source's columns once, under sources[]. The 1.x top-level call_columns / guardrail_columns / tool_call_columns / contact_columns and extraction_objects duplicated them and were removed.

operations*array<>
Items5 <= items <= 5
filter_operators*array<>
Items11 <= items <= 11
sources*array<>

The queryable sources and their columns: the fixed call, guardrail, tool_call and contact sources, then one extraction source per active extraction object (identified by extraction_object_id).

Items4 <= items
agents*array<>
constraints*
Example Request
curl -X GET 'https://api.kejue.co/v1/analysis/schema'
Example Response
{  "schema_version": "2.0",  "operations": [    "count",    "count",    "count",    "count",    "count"  ],  "filter_operators": [    "eq",    "eq",    "eq",    "eq",    "eq",    "eq",    "eq",    "eq",    "eq",    "eq",    "eq"  ],  "sources": [    {      "source": "call",      "label": "string",      "extraction_object_id": "dd58f28a-20cf-4d0e-af7a-6fd115475937",      "extraction_object_name": "string",      "description": "string",      "supports_agent_scope": true,      "time_basis": "session.started_at",      "columns": [        {          "name": "string",          "label": "string",          "type": "string",          "description": "string",          "required": true,          "enum_values": [            "string"          ],          "item_type": "string",          "supported_operations": [            "count"          ],          "filter_operators": [            "eq",            "eq"          ]        }      ]    },    {      "source": "call",      "label": "string",      "extraction_object_id": "dd58f28a-20cf-4d0e-af7a-6fd115475937",      "extraction_object_name": "string",      "description": "string",      "supports_agent_scope": true,      "time_basis": "session.started_at",      "columns": [        {          "name": "string",          "label": "string",          "type": "string",          "description": "string",          "required": true,          "enum_values": [            "string"          ],          "item_type": "string",          "supported_operations": [            "count"          ],          "filter_operators": [            "eq",            "eq"          ]        }      ]    },    {      "source": "call",      "label": "string",      "extraction_object_id": "dd58f28a-20cf-4d0e-af7a-6fd115475937",      "extraction_object_name": "string",      "description": "string",      "supports_agent_scope": true,      "time_basis": "session.started_at",      "columns": [        {          "name": "string",          "label": "string",          "type": "string",          "description": "string",          "required": true,          "enum_values": [            "string"          ],          "item_type": "string",          "supported_operations": [            "count"          ],          "filter_operators": [            "eq",            "eq"          ]        }      ]    },    {      "source": "call",      "label": "string",      "extraction_object_id": "dd58f28a-20cf-4d0e-af7a-6fd115475937",      "extraction_object_name": "string",      "description": "string",      "supports_agent_scope": true,      "time_basis": "session.started_at",      "columns": [        {          "name": "string",          "label": "string",          "type": "string",          "description": "string",          "required": true,          "enum_values": [            "string"          ],          "item_type": "string",          "supported_operations": [            "count"          ],          "filter_operators": [            "eq",            "eq"          ]        }      ]    }  ],  "agents": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "slug": "string",      "name": "string",      "has_data": true    }  ],  "constraints": {    "chart_types": [      "bar",      "bar",      "bar",      "bar",      "bar",      "bar",      "bar",      "bar",      "bar",      "bar",      "bar"    ],    "time_ranges": [      "24h",      "24h",      "24h",      "24h",      "24h",      "24h"    ],    "buckets": [      "hour",      "hour",      "hour",      "hour"    ],    "group_bys": [      "none",      "none",      "none",      "none"    ],    "secondary_group_bys": [      "time",      "time",      "time"    ],    "maximum_queries": 6,    "maximum_filters_per_query": 10,    "maximum_agent_ids_per_query": 20,    "maximum_result_rows": 500,    "maximum_result_series": 50,    "maximum_result_cells": 10000,    "value_formats": [      "number",      "number",      "number",      "number"    ],    "stack_modes": [      "none",      "none",      "none"    ],    "orientations": [      "vertical",      "vertical"    ],    "chart_rules": {      "property1": {        "queries": 0,        "minimum_series": 0,        "group_bys": [          "none"        ],        "requires_secondary_group_by": true,        "forbids_secondary_group_by": true,        "forbidden_time_ranges": [          "24h"        ]      },      "property2": {        "queries": 0,        "minimum_series": 0,        "group_bys": [          "none"        ],        "requires_secondary_group_by": true,        "forbids_secondary_group_by": true,        "forbidden_time_ranges": [          "24h"        ]      }    },    "grid_columns": 12,    "maximum_custom_range_days": 400  }}