POST · Explorer un rapport

Analyses : Explorer un rapport. Paramètres, accès et exemples de réponse.

Rédigé par Red Blue

Mis à jour le

Analyses

POST /api/v1/analytics/explore

operationId : analytics_explore

Accès

Permission

Consentements OAuth

OAuth : délégation d’un équipier pour l’API

analytics.inspect

api:connect, analytics:inspect

KHONY_ORIGIN est l’origine HTTPS de votre application Khony, sans chemin final. Remplacez les identifiants de l’exemple par ceux de vos ressources autorisées. Les données de réponse ci-dessous illustrent le format ; elles ne sont pas le résultat d’un appel à votre organisation.

Champs du corps JSON

Nom

Emplacement

Requis

Type et contraintes

productId

JSON

Oui

string

request

JSON

Oui

object

Exemple de requête

Shell
curl --request POST "$KHONY_ORIGIN/api/v1/analytics/explore" \
  --header "Authorization: Bearer $KHONY_ACCESS_TOKEN" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "productId": "product_01k3w8d7vhe008000000000001",
  "request": {
    "view": "feedback",
    "range": {
      "preset": "custom",
      "from": "2026-10-01T00:00:00.000Z",
      "to": "2026-10-24T00:00:00.000Z"
    },
    "comparison": {
      "mode": "none"
    },
    "timezone": "Africa/Casablanca",
    "currency": "MAD"
  }
}'
Shell

Réponse de succès · HTTP 200

JSON
{
  "view": "feedback",
  "period": {
    "from": "2026-10-01T00:00:00.000Z",
    "to": "2026-10-24T00:00:00.000Z",
    "previousFrom": "2026-10-01T00:00:00.000Z",
    "previousTo": "2026-10-24T00:00:00.000Z",
    "timezone": "Africa/Casablanca",
    "currency": "MAD",
    "comparison": {
      "mode": "none"
    },
    "filters": {}
  },
  "metrics": {},
  "breakdowns": {},
  "series": [],
  "freshness": {}
}
JSON
Schéma complet du corps JSON
JSON
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "productId": {
      "type": "string",
      "pattern": "^product_[0-7][0123456789abcdefghjkmnpqrstvwxyz]{25}$"
    },
    "request": {
      "type": "object",
      "properties": {
        "view": {
          "type": "string",
          "enum": [
            "overview",
            "feedback",
            "support",
            "audience",
            "business",
            "delivery",
            "ai_automations",
            "changelog",
            "reliability"
          ]
        },
        "range": {
          "anyOf": [
            {
              "$ref": "#/$defs/__schema0"
            },
            {
              "$ref": "#/$defs/__schema1"
            }
          ]
        },
        "comparison": {
          "anyOf": [
            {
              "$ref": "#/$defs/__schema2"
            },
            {
              "$ref": "#/$defs/__schema3"
            }
          ]
        },
        "timezone": {
          "type": "string",
          "minLength": 1,
          "maxLength": 100
        },
        "currency": {
          "type": "string",
          "pattern": "^[A-Z]{3}$"
        },
        "filters": {
          "type": "object",
          "properties": {
            "source": {
              "type": "string",
              "minLength": 1,
              "maxLength": 80
            },
            "surface": {
              "type": "string",
              "minLength": 1,
              "maxLength": 80
            }
          },
          "additionalProperties": false
        }
      },
      "required": [
        "view",
        "range"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "productId",
    "request"
  ],
  "additionalProperties": false,
  "$defs": {
    "__schema0": {
      "type": "object",
      "properties": {
        "preset": {
          "type": "string",
          "enum": [
            "7d",
            "30d",
            "90d",
            "12m"
          ]
        }
      },
      "required": [
        "preset"
      ],
      "additionalProperties": false
    },
    "__schema1": {
      "type": "object",
      "properties": {
        "preset": {
          "type": "string",
          "const": "custom"
        },
        "from": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
        },
        "to": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
        }
      },
      "required": [
        "preset",
        "from",
        "to"
      ],
      "additionalProperties": false
    },
    "__schema2": {
      "type": "object",
      "properties": {
        "mode": {
          "type": "string",
          "enum": [
            "previous_period",
            "previous_year",
            "none"
          ]
        }
      },
      "required": [
        "mode"
      ],
      "additionalProperties": false
    },
    "__schema3": {
      "type": "object",
      "properties": {
        "mode": {
          "type": "string",
          "const": "custom"
        },
        "from": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
        },
        "to": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
        }
      },
      "required": [
        "mode",
        "from",
        "to"
      ],
      "additionalProperties": false
    }
  }
}
JSON
Schéma complet de la réponse
JSON
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "view": {
      "$ref": "#/$defs/__schema0"
    },
    "period": {
      "$ref": "#/$defs/__schema1"
    },
    "metrics": {
      "$ref": "#/$defs/__schema9"
    },
    "breakdowns": {
      "$ref": "#/$defs/__schema26"
    },
    "series": {
      "$ref": "#/$defs/__schema43"
    },
    "freshness": {
      "$ref": "#/$defs/AnalyticsFreshness"
    }
  },
  "required": [
    "view",
    "period",
    "metrics",
    "breakdowns",
    "series",
    "freshness"
  ],
  "additionalProperties": false,
  "$defs": {
    "__schema0": {
      "type": "string",
      "enum": [
        "overview",
        "feedback",
        "support",
        "audience",
        "business",
        "delivery",
        "ai_automations",
        "changelog",
        "reliability"
      ]
    },
    "__schema1": {
      "type": "object",
      "properties": {
        "from": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
        },
        "to": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
        },
        "previousFrom": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
        },
        "previousTo": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
        },
        "timezone": {
          "$ref": "#/$defs/__schema2"
        },
        "currency": {
          "$ref": "#/$defs/__schema3"
        },
        "comparison": {
          "$ref": "#/$defs/__schema4"
        },
        "filters": {
          "$ref": "#/$defs/AnalyticsFilters"
        }
      },
      "required": [
        "from",
        "to",
        "previousFrom",
        "previousTo",
        "timezone",
        "currency",
        "comparison",
        "filters"
      ],
      "additionalProperties": false
    },
    "__schema2": {
      "type": "string",
      "minLength": 1,
      "maxLength": 100
    },
    "__schema3": {
      "type": "string",
      "pattern": "^[A-Z]{3}$"
    },
    "__schema4": {
      "anyOf": [
        {
          "$ref": "#/$defs/__schema5"
        },
        {
          "$ref": "#/$defs/__schema6"
        }
      ]
    },
    "__schema5": {
      "type": "object",
      "properties": {
        "mode": {
          "type": "string",
          "enum": [
            "previous_period",
            "previous_year",
            "none"
          ]
        }
      },
      "required": [
        "mode"
      ],
      "additionalProperties": false
    },
    "__schema6": {
      "type": "object",
      "properties": {
        "mode": {
          "type": "string",
          "const": "custom"
        },
        "from": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
        },
        "to": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
        }
      },
      "required": [
        "mode",
        "from",
        "to"
      ],
      "additionalProperties": false
    },
    "AnalyticsFilters": {
      "type": "object",
      "properties": {
        "source": {
          "$ref": "#/$defs/__schema7"
        },
        "surface": {
          "$ref": "#/$defs/__schema8"
        }
      },
      "additionalProperties": false
    },
    "__schema7": {
      "type": "string",
      "minLength": 1,
      "maxLength": 80
    },
    "__schema8": {
      "type": "string",
      "minLength": 1,
      "maxLength": 80
    },
    "__schema9": {
      "type": "object",
      "properties": {
        "new_feedback": {
          "$ref": "#/$defs/__schema10"
        },
        "contributors": {
          "$ref": "#/$defs/__schema10"
        },
        "contributing_companies": {
          "$ref": "#/$defs/__schema10"
        },
        "first_response_median_minutes": {
          "$ref": "#/$defs/__schema10"
        },
        "decision_sla_rate": {
          "$ref": "#/$defs/__schema10"
        },
        "decision_sla_numerator": {
          "$ref": "#/$defs/__schema10"
        },
        "decision_sla_denominator": {
          "$ref": "#/$defs/__schema10"
        },
        "close_loop_rate": {
          "$ref": "#/$defs/__schema10"
        },
        "close_loop_numerator": {
          "$ref": "#/$defs/__schema10"
        },
        "close_loop_denominator": {
          "$ref": "#/$defs/__schema10"
        },
        "open_request_arr": {
          "$ref": "#/$defs/__schema10"
        },
        "open_pipeline": {
          "$ref": "#/$defs/__schema10"
        },
        "renewal_exposure_90d": {
          "$ref": "#/$defs/__schema10"
        },
        "attention_count": {
          "$ref": "#/$defs/__schema10"
        },
        "feedback_count": {
          "$ref": "#/$defs/__schema10"
        },
        "signal_count": {
          "$ref": "#/$defs/__schema10"
        },
        "open_feedback": {
          "$ref": "#/$defs/__schema10"
        },
        "companies": {
          "$ref": "#/$defs/__schema10"
        },
        "request_breadth": {
          "$ref": "#/$defs/__schema10"
        },
        "request_intensity": {
          "$ref": "#/$defs/__schema10"
        },
        "recurring_company_rate": {
          "$ref": "#/$defs/__schema10"
        },
        "current_velocity": {
          "$ref": "#/$defs/__schema10"
        },
        "previous_velocity": {
          "$ref": "#/$defs/__schema10"
        },
        "momentum": {
          "$ref": "#/$defs/__schema10"
        },
        "relative_momentum": {
          "$ref": "#/$defs/__schema10"
        },
        "company_concentration": {
          "$ref": "#/$defs/__schema10"
        },
        "theme_coverage": {
          "$ref": "#/$defs/__schema10"
        },
        "theme_coverage_numerator": {
          "$ref": "#/$defs/__schema10"
        },
        "theme_coverage_denominator": {
          "$ref": "#/$defs/__schema10"
        },
        "sentiment_balance": {
          "$ref": "#/$defs/__schema10"
        },
        "sentiment_shift": {
          "$ref": "#/$defs/__schema10"
        },
        "backlog_age_median_days": {
          "$ref": "#/$defs/__schema10"
        },
        "first_decision_minutes": {
          "$ref": "#/$defs/__schema10"
        },
        "no_decision_rate": {
          "$ref": "#/$defs/__schema10"
        },
        "no_decision_numerator": {
          "$ref": "#/$defs/__schema10"
        },
        "no_decision_denominator": {
          "$ref": "#/$defs/__schema10"
        },
        "conversations_created": {
          "$ref": "#/$defs/__schema10"
        },
        "conversations_started": {
          "$ref": "#/$defs/__schema10"
        },
        "open": {
          "$ref": "#/$defs/__schema10"
        },
        "pending": {
          "$ref": "#/$defs/__schema10"
        },
        "resolved": {
          "$ref": "#/$defs/__schema10"
        },
        "first_response_time_any_minutes": {
          "$ref": "#/$defs/__schema10"
        },
        "first_response_time_human_minutes": {
          "$ref": "#/$defs/__schema10"
        },
        "resolution_time_minutes": {
          "$ref": "#/$defs/__schema10"
        },
        "response_interval_minutes": {
          "$ref": "#/$defs/__schema10"
        },
        "first_assignment_time_minutes": {
          "$ref": "#/$defs/__schema10"
        },
        "first_close_time_minutes": {
          "$ref": "#/$defs/__schema10"
        },
        "final_close_time_minutes": {
          "$ref": "#/$defs/__schema10"
        },
        "first_contact_resolution_rate": {
          "$ref": "#/$defs/__schema10"
        },
        "reopen_rate": {
          "$ref": "#/$defs/__schema10"
        },
        "no_reply_rate": {
          "$ref": "#/$defs/__schema10"
        },
        "reassignment_mean": {
          "$ref": "#/$defs/__schema10"
        },
        "ai_involvement_rate": {
          "$ref": "#/$defs/__schema10"
        },
        "ai_escalation_rate": {
          "$ref": "#/$defs/__schema10"
        },
        "ai_deflection_rate": {
          "$ref": "#/$defs/__schema10"
        },
        "csat_score": {
          "$ref": "#/$defs/__schema10"
        },
        "csat_ratings": {
          "$ref": "#/$defs/__schema10"
        },
        "csat_requests": {
          "$ref": "#/$defs/__schema10"
        },
        "csat_request_rate": {
          "$ref": "#/$defs/__schema10"
        },
        "csat_response_rate": {
          "$ref": "#/$defs/__schema10"
        },
        "sla_hit_rate": {
          "$ref": "#/$defs/__schema10"
        },
        "entity_sla_miss_rate": {
          "$ref": "#/$defs/__schema10"
        },
        "post_breach_response_time_minutes": {
          "$ref": "#/$defs/__schema10"
        },
        "handling_time_minutes": {
          "$ref": "#/$defs/__schema10"
        },
        "sla_met": {
          "$ref": "#/$defs/__schema10"
        },
        "sla_breached": {
          "$ref": "#/$defs/__schema10"
        },
        "unique_visitors": {
          "$ref": "#/$defs/__schema10"
        },
        "events": {
          "$ref": "#/$defs/__schema10"
        },
        "sessions": {
          "$ref": "#/$defs/__schema10"
        },
        "pageviews": {
          "$ref": "#/$defs/__schema10"
        },
        "widget_opens": {
          "$ref": "#/$defs/__schema10"
        },
        "widget_open_rate": {
          "$ref": "#/$defs/__schema10"
        },
        "feedback_view_to_vote": {
          "$ref": "#/$defs/__schema10"
        },
        "portal_to_submission": {
          "$ref": "#/$defs/__schema10"
        },
        "widget_to_conversation": {
          "$ref": "#/$defs/__schema10"
        },
        "returning_rate": {
          "$ref": "#/$defs/__schema10"
        },
        "identification_rate": {
          "$ref": "#/$defs/__schema10"
        },
        "zero_result_search_rate": {
          "$ref": "#/$defs/__schema10"
        },
        "content_reach": {
          "$ref": "#/$defs/__schema10"
        },
        "associated_arr": {
          "$ref": "#/$defs/__schema10"
        },
        "associated_mrr": {
          "$ref": "#/$defs/__schema10"
        },
        "arr_coverage": {
          "$ref": "#/$defs/__schema10"
        },
        "won_pipeline": {
          "$ref": "#/$defs/__schema10"
        },
        "lost_pipeline": {
          "$ref": "#/$defs/__schema10"
        },
        "renewal_accounts_90d": {
          "$ref": "#/$defs/__schema10"
        },
        "at_risk_accounts": {
          "$ref": "#/$defs/__schema10"
        },
        "blocker_arr": {
          "$ref": "#/$defs/__schema10"
        },
        "must_have_pipeline": {
          "$ref": "#/$defs/__schema10"
        },
        "revenue_concentration": {
          "$ref": "#/$defs/__schema10"
        },
        "companies_missing_arr": {
          "$ref": "#/$defs/__schema10"
        },
        "time_to_decision_minutes": {
          "$ref": "#/$defs/__schema10"
        },
        "time_to_plan_minutes": {
          "$ref": "#/$defs/__schema10"
        },
        "cycle_time_minutes": {
          "$ref": "#/$defs/__schema10"
        },
        "lead_time_minutes": {
          "$ref": "#/$defs/__schema10"
        },
        "throughput": {
          "$ref": "#/$defs/__schema10"
        },
        "wip": {
          "$ref": "#/$defs/__schema10"
        },
        "flow_efficiency": {
          "$ref": "#/$defs/__schema10"
        },
        "commitment_accuracy": {
          "$ref": "#/$defs/__schema10"
        },
        "commitment_accuracy_numerator": {
          "$ref": "#/$defs/__schema10"
        },
        "commitment_accuracy_denominator": {
          "$ref": "#/$defs/__schema10"
        },
        "postponement_rate": {
          "$ref": "#/$defs/__schema10"
        },
        "post_release_demand_change": {
          "$ref": "#/$defs/__schema10"
        },
        "post_release_support_change": {
          "$ref": "#/$defs/__schema10"
        },
        "completed_unannounced": {
          "$ref": "#/$defs/__schema10"
        },
        "ai_interactions": {
          "$ref": "#/$defs/__schema10"
        },
        "tokens": {
          "$ref": "#/$defs/__schema10"
        },
        "answers_sent": {
          "$ref": "#/$defs/__schema10"
        },
        "escalations": {
          "$ref": "#/$defs/__schema10"
        },
        "latency_median_ms": {
          "$ref": "#/$defs/__schema10"
        },
        "answer_rate": {
          "$ref": "#/$defs/__schema10"
        },
        "adoption_rate": {
          "$ref": "#/$defs/__schema10"
        },
        "unedited_use_rate": {
          "$ref": "#/$defs/__schema10"
        },
        "edit_rate": {
          "$ref": "#/$defs/__schema10"
        },
        "rejection_rate": {
          "$ref": "#/$defs/__schema10"
        },
        "confirmed_resolution_rate": {
          "$ref": "#/$defs/__schema10"
        },
        "escalation_rate": {
          "$ref": "#/$defs/__schema10"
        },
        "correction_rate": {
          "$ref": "#/$defs/__schema10"
        },
        "grounded_answer_rate": {
          "$ref": "#/$defs/__schema10"
        },
        "cost_microusd": {
          "$ref": "#/$defs/__schema10"
        },
        "cost_per_confirmed_resolution_microusd": {
          "$ref": "#/$defs/__schema10"
        },
        "workflow_success_rate": {
          "$ref": "#/$defs/__schema10"
        },
        "workflow_runs": {
          "$ref": "#/$defs/__schema10"
        },
        "workflow_failures": {
          "$ref": "#/$defs/__schema10"
        },
        "workflow_step_failure_rate": {
          "$ref": "#/$defs/__schema10"
        },
        "workflow_retry_rate": {
          "$ref": "#/$defs/__schema10"
        },
        "workflow_useful_action_rate": {
          "$ref": "#/$defs/__schema10"
        },
        "published": {
          "$ref": "#/$defs/__schema10"
        },
        "publish_rate": {
          "$ref": "#/$defs/__schema10"
        },
        "drafts": {
          "$ref": "#/$defs/__schema10"
        },
        "scheduled": {
          "$ref": "#/$defs/__schema10"
        },
        "views": {
          "$ref": "#/$defs/__schema10"
        },
        "unique_readers": {
          "$ref": "#/$defs/__schema10"
        },
        "feedback_coverage": {
          "$ref": "#/$defs/__schema10"
        },
        "notification_delivery_rate": {
          "$ref": "#/$defs/__schema10"
        },
        "notification_open_rate": {
          "$ref": "#/$defs/__schema10"
        },
        "notification_click_rate": {
          "$ref": "#/$defs/__schema10"
        },
        "interested_contact_reach": {
          "$ref": "#/$defs/__schema10"
        },
        "read_after_delivery_rate": {
          "$ref": "#/$defs/__schema10"
        },
        "delivery_to_publish_time_minutes": {
          "$ref": "#/$defs/__schema10"
        },
        "publish_to_read_time_minutes": {
          "$ref": "#/$defs/__schema10"
        },
        "notification_failures": {
          "$ref": "#/$defs/__schema10"
        },
        "incident_count": {
          "$ref": "#/$defs/__schema10"
        },
        "open_incidents": {
          "$ref": "#/$defs/__schema10"
        },
        "mttr_minutes": {
          "$ref": "#/$defs/__schema10"
        },
        "uptime": {
          "$ref": "#/$defs/__schema10"
        },
        "degraded_time_minutes": {
          "$ref": "#/$defs/__schema10"
        },
        "sync_success_rate": {
          "$ref": "#/$defs/__schema10"
        },
        "sync_lag_seconds": {
          "$ref": "#/$defs/__schema10"
        },
        "webhook_success_rate": {
          "$ref": "#/$defs/__schema10"
        },
        "permanent_failure_rate": {
          "$ref": "#/$defs/__schema10"
        },
        "webhook_permanent_failures": {
          "$ref": "#/$defs/__schema10"
        },
        "degraded_integrations": {
          "$ref": "#/$defs/__schema10"
        }
      },
      "additionalProperties": false
    },
    "__schema10": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "maxLength": 120
        },
        "label": {
          "type": "string",
          "maxLength": 200
        },
        "value": {
          "type": [
            "number",
            "null"
          ]
        },
        "unit": {
          "type": "string",
          "enum": [
            "percent",
            "count_per_day",
            "currency_microusd",
            "duration_minutes",
            "duration_seconds",
            "duration_ms",
            "currency_minor",
            "count"
          ]
        },
        "definitionVersion": {
          "type": "integer",
          "minimum": 1,
          "maximum": 1
        },
        "scope": {
          "type": "string",
          "enum": [
            "snapshot",
            "period"
          ]
        },
        "numerator": {
          "type": "number"
        },
        "denominator": {
          "type": "number"
        },
        "freshness": {
          "$ref": "#/$defs/AnalyticsFreshness"
        },
        "coverage": {
          "anyOf": [
            {
              "type": "number",
              "minimum": 0,
              "maximum": 1
            },
            {
              "type": "null"
            }
          ]
        },
        "comparison": {
          "type": "object",
          "properties": {
            "value": {
              "type": [
                "number",
                "null"
              ]
            },
            "absoluteDelta": {
              "type": [
                "number",
                "null"
              ]
            },
            "relativeDelta": {
              "type": [
                "number",
                "null"
              ]
            }
          },
          "required": [
            "value",
            "absoluteDelta",
            "relativeDelta"
          ],
          "additionalProperties": false
        },
        "definition": {
          "type": "string",
          "maxLength": 2000
        },
        "drilldown": {
          "type": "object",
          "properties": {
            "view": {
              "$ref": "#/$defs/__schema0"
            },
            "metricId": {
              "type": "string",
              "maxLength": 120
            },
            "range": {
              "anyOf": [
                {
                  "$ref": "#/$defs/__schema24"
                },
                {
                  "$ref": "#/$defs/__schema25"
                }
              ]
            },
            "comparison": {
              "$ref": "#/$defs/__schema4"
            },
            "timezone": {
              "$ref": "#/$defs/__schema2"
            },
            "currency": {
              "$ref": "#/$defs/__schema3"
            },
            "filters": {
              "$ref": "#/$defs/AnalyticsFilters"
            }
          },
          "required": [
            "view",
            "metricId",
            "range",
            "comparison",
            "timezone",
            "currency",
            "filters"
          ],
          "additionalProperties": false
        }
      },
      "required": [
        "id",
        "label",
        "value",
        "unit",
        "definitionVersion",
        "scope",
        "freshness",
        "coverage",
        "definition",
        "drilldown"
      ],
      "additionalProperties": false
    },
    "AnalyticsFreshness": {
      "type": "object",
      "properties": {
        "feedback": {
          "$ref": "#/$defs/__schema11"
        },
        "support": {
          "$ref": "#/$defs/__schema15"
        },
        "audience": {
          "$ref": "#/$defs/__schema16"
        },
        "business": {
          "$ref": "#/$defs/__schema17"
        },
        "delivery": {
          "$ref": "#/$defs/__schema18"
        },
        "ai": {
          "$ref": "#/$defs/__schema19"
        },
        "notifications": {
          "$ref": "#/$defs/__schema20"
        },
        "reliability": {
          "$ref": "#/$defs/__schema21"
        },
        "feedback_sentiment": {
          "$ref": "#/$defs/__schema22"
        },
        "delivery_active_time": {
          "$ref": "#/$defs/__schema23"
        }
      },
      "additionalProperties": false
    },
    "__schema11": {
      "$ref": "#/$defs/AnalyticsWatermark"
    },
    "AnalyticsWatermark": {
      "type": "object",
      "properties": {
        "status": {
          "$ref": "#/$defs/__schema12"
        },
        "lastSuccessfulAt": {
          "$ref": "#/$defs/__schema13"
        },
        "coverageBps": {
          "$ref": "#/$defs/__schema14"
        }
      },
      "required": [
        "status",
        "lastSuccessfulAt",
        "coverageBps"
      ],
      "additionalProperties": false
    },
    "__schema12": {
      "type": "string",
      "enum": [
        "not_instrumented",
        "active",
        "delayed",
        "partial",
        "failed"
      ]
    },
    "__schema13": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 64
        },
        {
          "type": "null"
        }
      ]
    },
    "__schema14": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 0,
          "maximum": 10000
        },
        {
          "type": "null"
        }
      ]
    },
    "__schema15": {
      "$ref": "#/$defs/AnalyticsWatermark"
    },
    "__schema16": {
      "$ref": "#/$defs/AnalyticsWatermark"
    },
    "__schema17": {
      "$ref": "#/$defs/AnalyticsWatermark"
    },
    "__schema18": {
      "$ref": "#/$defs/AnalyticsWatermark"
    },
    "__schema19": {
      "$ref": "#/$defs/AnalyticsWatermark"
    },
    "__schema20": {
      "$ref": "#/$defs/AnalyticsWatermark"
    },
    "__schema21": {
      "$ref": "#/$defs/AnalyticsWatermark"
    },
    "__schema22": {
      "$ref": "#/$defs/AnalyticsWatermark"
    },
    "__schema23": {
      "$ref": "#/$defs/AnalyticsWatermark"
    },
    "__schema24": {
      "type": "object",
      "properties": {
        "preset": {
          "type": "string",
          "enum": [
            "7d",
            "30d",
            "90d",
            "12m"
          ]
        }
      },
      "required": [
        "preset"
      ],
      "additionalProperties": false
    },
    "__schema25": {
      "type": "object",
      "properties": {
        "preset": {
          "type": "string",
          "const": "custom"
        },
        "from": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
        },
        "to": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
        }
      },
      "required": [
        "preset",
        "from",
        "to"
      ],
      "additionalProperties": false
    },
    "__schema26": {
      "type": "object",
      "properties": {
        "themes": {
          "maxItems": 100,
          "type": "array",
          "items": {
            "$ref": "#/$defs/__schema27"
          }
        },
        "statuses": {
          "maxItems": 100,
          "type": "array",
          "items": {
            "$ref": "#/$defs/AnalyticsKeyCountRow"
          }
        },
        "momentum": {
          "maxItems": 100,
          "type": "array",
          "items": {
            "$ref": "#/$defs/__schema31"
          }
        },
        "channels": {
          "maxItems": 100,
          "type": "array",
          "items": {
            "$ref": "#/$defs/AnalyticsKeyCountRow"
          }
        },
        "events": {
          "maxItems": 100,
          "type": "array",
          "items": {
            "$ref": "#/$defs/AnalyticsKeyCountRow"
          }
        },
        "sources": {
          "maxItems": 100,
          "type": "array",
          "items": {
            "$ref": "#/$defs/AnalyticsKeyCountRow"
          }
        },
        "content": {
          "maxItems": 100,
          "type": "array",
          "items": {
            "$ref": "#/$defs/__schema32"
          }
        },
        "top_pages": {
          "maxItems": 100,
          "type": "array",
          "items": {
            "$ref": "#/$defs/__schema33"
          }
        },
        "referrers": {
          "maxItems": 100,
          "type": "array",
          "items": {
            "$ref": "#/$defs/AnalyticsKeyCountRow"
          }
        },
        "campaigns": {
          "maxItems": 100,
          "type": "array",
          "items": {
            "$ref": "#/$defs/AnalyticsKeyCountRow"
          }
        },
        "devices": {
          "maxItems": 100,
          "type": "array",
          "items": {
            "$ref": "#/$defs/AnalyticsKeyCountRow"
          }
        },
        "countries": {
          "maxItems": 100,
          "type": "array",
          "items": {
            "$ref": "#/$defs/AnalyticsKeyCountRow"
          }
        },
        "browsers": {
          "maxItems": 100,
          "type": "array",
          "items": {
            "$ref": "#/$defs/AnalyticsKeyCountRow"
          }
        },
        "operating_systems": {
          "maxItems": 100,
          "type": "array",
          "items": {
            "$ref": "#/$defs/AnalyticsKeyCountRow"
          }
        },
        "languages": {
          "maxItems": 100,
          "type": "array",
          "items": {
            "$ref": "#/$defs/AnalyticsKeyCountRow"
          }
        },
        "journeys": {
          "maxItems": 100,
          "type": "array",
          "items": {
            "$ref": "#/$defs/__schema34"
          }
        },
        "funnels": {
          "maxItems": 100,
          "type": "array",
          "items": {
            "$ref": "#/$defs/__schema35"
          }
        },
        "identified_visitors": {
          "maxItems": 100,
          "type": "array",
          "items": {
            "$ref": "#/$defs/__schema36"
          }
        },
        "lifecycle": {
          "maxItems": 100,
          "type": "array",
          "items": {
            "$ref": "#/$defs/AnalyticsKeyCountRow"
          }
        },
        "segment_demand": {
          "maxItems": 100,
          "type": "array",
          "items": {
            "$ref": "#/$defs/__schema37"
          }
        },
        "pipeline": {
          "maxItems": 100,
          "type": "array",
          "items": {
            "$ref": "#/$defs/__schema38"
          }
        },
        "companies": {
          "maxItems": 100,
          "type": "array",
          "items": {
            "$ref": "#/$defs/__schema39"
          }
        },
        "outcomes": {
          "maxItems": 100,
          "type": "array",
          "items": {
            "$ref": "#/$defs/__schema40"
          }
        },
        "features": {
          "maxItems": 100,
          "type": "array",
          "items": {
            "$ref": "#/$defs/__schema41"
          }
        },
        "entries": {
          "maxItems": 100,
          "type": "array",
          "items": {
            "$ref": "#/$defs/__schema42"
          }
        },
        "impacts": {
          "maxItems": 100,
          "type": "array",
          "items": {
            "$ref": "#/$defs/AnalyticsKeyCountRow"
          }
        },
        "connections": {
          "maxItems": 100,
          "type": "array",
          "items": {
            "$ref": "#/$defs/AnalyticsKeyCountRow"
          }
        }
      },
      "additionalProperties": false
    },
    "__schema27": {
      "type": "object",
      "properties": {
        "key": {
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
        },
        "label": {
          "$ref": "#/$defs/__schema28"
        },
        "count": {
          "$ref": "#/$defs/__schema29"
        },
        "confidence": {
          "type": [
            "number",
            "null"
          ]
        }
      },
      "required": [
        "key",
        "label",
        "count",
        "confidence"
      ],
      "additionalProperties": false
    },
    "__schema28": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 500
        },
        {
          "type": "null"
        }
      ]
    },
    "__schema29": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "AnalyticsKeyCountRow": {
      "type": "object",
      "properties": {
        "key": {
          "$ref": "#/$defs/__schema30"
        },
        "count": {
          "$ref": "#/$defs/__schema29"
        }
      },
      "required": [
        "key",
        "count"
      ],
      "additionalProperties": false
    },
    "__schema30": {
      "type": "string",
      "maxLength": 2048
    },
    "__schema31": {
      "type": "object",
      "properties": {
        "key": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            {
              "type": "string",
              "pattern": "^post_[0-7][0123456789abcdefghjkmnpqrstvwxyz]{25}$"
            }
          ]
        },
        "label": {
          "$ref": "#/$defs/__schema28"
        },
        "current": {
          "$ref": "#/$defs/__schema29"
        },
        "previous": {
          "$ref": "#/$defs/__schema29"
        }
      },
      "required": [
        "key",
        "label",
        "current",
        "previous"
      ],
      "additionalProperties": false
    },
    "__schema32": {
      "type": "object",
      "properties": {
        "label": {
          "$ref": "#/$defs/__schema28"
        },
        "visitors": {
          "$ref": "#/$defs/__schema29"
        }
      },
      "required": [
        "label",
        "visitors"
      ],
      "additionalProperties": false
    },
    "__schema33": {
      "type": "object",
      "properties": {
        "key": {
          "$ref": "#/$defs/__schema30"
        },
        "label": {
          "$ref": "#/$defs/__schema28"
        },
        "pageviews": {
          "$ref": "#/$defs/__schema29"
        },
        "visitors": {
          "$ref": "#/$defs/__schema29"
        }
      },
      "required": [
        "key",
        "label",
        "pageviews",
        "visitors"
      ],
      "additionalProperties": false
    },
    "__schema34": {
      "type": "object",
      "properties": {
        "key": {
          "$ref": "#/$defs/__schema30"
        },
        "label": {
          "$ref": "#/$defs/__schema28"
        },
        "sessions": {
          "$ref": "#/$defs/__schema29"
        },
        "visitors": {
          "$ref": "#/$defs/__schema29"
        }
      },
      "required": [
        "key",
        "label",
        "sessions",
        "visitors"
      ],
      "additionalProperties": false
    },
    "__schema35": {
      "type": "object",
      "properties": {
        "key": {
          "$ref": "#/$defs/__schema30"
        },
        "label": {
          "$ref": "#/$defs/__schema28"
        },
        "entered": {
          "$ref": "#/$defs/__schema29"
        },
        "completed": {
          "$ref": "#/$defs/__schema29"
        },
        "conversion_rate": {
          "type": [
            "number",
            "null"
          ]
        }
      },
      "required": [
        "key",
        "label",
        "entered",
        "completed",
        "conversion_rate"
      ],
      "additionalProperties": false
    },
    "__schema36": {
      "type": "object",
      "properties": {
        "label": {
          "$ref": "#/$defs/__schema28"
        },
        "events": {
          "$ref": "#/$defs/__schema29"
        },
        "sessions": {
          "$ref": "#/$defs/__schema29"
        },
        "last_seen": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 64
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "label",
        "events",
        "sessions",
        "last_seen"
      ],
      "additionalProperties": false
    },
    "__schema37": {
      "type": "object",
      "properties": {
        "key": {
          "anyOf": [
            {
              "$ref": "#/$defs/__schema30"
            },
            {
              "type": "null"
            }
          ]
        },
        "concerned": {
          "$ref": "#/$defs/__schema29"
        },
        "total": {
          "$ref": "#/$defs/__schema29"
        },
        "demand_index": {
          "type": [
            "number",
            "null"
          ]
        }
      },
      "required": [
        "key",
        "concerned",
        "total",
        "demand_index"
      ],
      "additionalProperties": false
    },
    "__schema38": {
      "type": "object",
      "properties": {
        "status": {
          "$ref": "#/$defs/__schema30"
        },
        "opportunities": {
          "$ref": "#/$defs/__schema29"
        },
        "amount": {
          "type": [
            "number",
            "null"
          ]
        }
      },
      "required": [
        "status",
        "opportunities",
        "amount"
      ],
      "additionalProperties": false
    },
    "__schema39": {
      "type": "object",
      "properties": {
        "key": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            {
              "type": "string",
              "pattern": "^company_[0-7][0123456789abcdefghjkmnpqrstvwxyz]{25}$"
            }
          ]
        },
        "label": {
          "$ref": "#/$defs/__schema28"
        },
        "arr_cents": {
          "type": [
            "number",
            "null"
          ]
        },
        "importance": {
          "$ref": "#/$defs/__schema30"
        },
        "lifecycle": {
          "anyOf": [
            {
              "$ref": "#/$defs/__schema30"
            },
            {
              "type": "null"
            }
          ]
        },
        "captured_at": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 64
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "key",
        "label",
        "arr_cents",
        "importance",
        "lifecycle",
        "captured_at"
      ],
      "additionalProperties": false
    },
    "__schema40": {
      "type": "object",
      "properties": {
        "key": {
          "$ref": "#/$defs/__schema30"
        },
        "status": {
          "$ref": "#/$defs/__schema30"
        },
        "count": {
          "$ref": "#/$defs/__schema29"
        }
      },
      "required": [
        "key",
        "status",
        "count"
      ],
      "additionalProperties": false
    },
    "__schema41": {
      "type": "object",
      "properties": {
        "key": {
          "$ref": "#/$defs/__schema30"
        },
        "count": {
          "$ref": "#/$defs/__schema29"
        },
        "tokens": {
          "$ref": "#/$defs/__schema29"
        }
      },
      "required": [
        "key",
        "count",
        "tokens"
      ],
      "additionalProperties": false
    },
    "__schema42": {
      "type": "object",
      "properties": {
        "key": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            {
              "type": "string",
              "pattern": "^changelog_[0-7][0123456789abcdefghjkmnpqrstvwxyz]{25}$"
            }
          ]
        },
        "label": {
          "$ref": "#/$defs/__schema28"
        },
        "views": {
          "$ref": "#/$defs/__schema29"
        },
        "readers": {
          "$ref": "#/$defs/__schema29"
        }
      },
      "required": [
        "key",
        "label",
        "views",
        "readers"
      ],
      "additionalProperties": false
    },
    "__schema43": {
      "maxItems": 367,
      "type": "array",
      "items": {
        "$ref": "#/$defs/__schema44"
      }
    },
    "__schema44": {
      "type": "object",
      "properties": {
        "day": {
          "type": "string",
          "format": "date",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
        },
        "feedback": {
          "$ref": "#/$defs/__schema29"
        },
        "support": {
          "$ref": "#/$defs/__schema29"
        },
        "delivered": {
          "$ref": "#/$defs/__schema29"
        },
        "votes": {
          "$ref": "#/$defs/__schema29"
        },
        "comments": {
          "$ref": "#/$defs/__schema29"
        },
        "conversations": {
          "$ref": "#/$defs/__schema29"
        },
        "resolved": {
          "$ref": "#/$defs/__schema29"
        },
        "events": {
          "$ref": "#/$defs/__schema29"
        },
        "visitors": {
          "$ref": "#/$defs/__schema29"
        },
        "sessions": {
          "$ref": "#/$defs/__schema29"
        },
        "pageviews": {
          "$ref": "#/$defs/__schema29"
        },
        "planned": {
          "$ref": "#/$defs/__schema29"
        },
        "ai_interactions": {
          "$ref": "#/$defs/__schema29"
        },
        "tokens": {
          "$ref": "#/$defs/__schema29"
        },
        "workflow_runs": {
          "$ref": "#/$defs/__schema29"
        },
        "published": {
          "$ref": "#/$defs/__schema29"
        },
        "views": {
          "$ref": "#/$defs/__schema29"
        },
        "incidents": {
          "$ref": "#/$defs/__schema29"
        }
      },
      "required": [
        "day"
      ],
      "additionalProperties": false
    }
  }
}
JSON

Refus et reprise

Les statuts documentés pour cette opération sont 400, 401, 402, 403, 404, 409, 428, 429, 500, 503. Identifiez la cause avec error.code et, lorsqu’il est présent, error.reason. Une réponse 409 peut demander une relecture de révision ou signaler une commande incompatible ; une réponse 428 demande une confirmation humaine. Ne rejouez une écriture que selon son contrat.

Notes du contrat
JSON
{
  "description": "Current product member; same nine canonical reports and entitlements as the native UI. Accepts preset or custom range and comparison bounded to 366 days, timezone, currency and source/surface filters. Unsupported filters are rejected. Identified visitor internal keys are excluded. analytics:read and GET analytics remain unchanged."
}
JSON