{"openapi":"3.0.3","info":{"title":"Hardal Reports API","description":"Read-only, tenant-limited reporting API. Every request carries a Bearer token: an OAuth access token obtained through token exchange (MCP) or an organization API key.","version":"1.0.0"},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"OAuth access token (token exchange) or organization API key."}},"schemas":{"AcquisitionBreakdownMode":{"type":"string","enum":["channels","campaigns"]},"AcquisitionCampaignsBreakdownMode":{"type":"string","enum":["all","source","medium"]},"AcquisitionColumn":{"type":"string","enum":["source","medium","campaign","channel","sessions","conversions","conversion_rate","bounce_rate","revenue","revenue_per_conversion"]},"AcquisitionCurrencyMetadata":{"type":"object","properties":{"reportingCurrency":{"type":"string"},"excludedCount":{"type":"number"}},"required":["reportingCurrency","excludedCount"],"additionalProperties":false},"AcquisitionDistributionFilter":{"type":"object","properties":{"field":{"$ref":"#/components/schemas/AcquisitionDistributionFilterField"},"value":{"type":"string"}},"required":["field","value"],"additionalProperties":false},"AcquisitionDistributionFilterField":{"type":"string","enum":["source","medium","campaign","channel"]},"AcquisitionEventMetric":{"type":"object","properties":{"eventName":{"type":"string"},"eventLabel":{"type":"string"}},"required":["eventName","eventLabel"],"additionalProperties":false},"AcquisitionEventOptionsResponse":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/AcquisitionEventMetric"}}},"required":["items"],"additionalProperties":false},"AcquisitionGroupBy":{"type":"string","enum":["none","source","medium","campaign","channel"]},"AcquisitionReportResponse":{"type":"object","properties":{"range":{"type":"object","properties":{"startDate":{"type":"string"},"endDate":{"type":"string"},"timezone":{"type":"string"}},"required":["startDate","endDate"],"additionalProperties":false},"previousRange":{"type":"object","properties":{"startDate":{"type":"string"},"endDate":{"type":"string"},"timezone":{"type":"string"}},"required":["startDate","endDate"],"additionalProperties":false},"currency":{"$ref":"#/components/schemas/AcquisitionCurrencyMetadata"},"controls":{"type":"object","properties":{"attributionModel":{"$ref":"#/components/schemas/AttributionModel"},"attributionWindowDays":{"$ref":"#/components/schemas/AttributionWindowDays"},"conversionEventNames":{"type":"array","items":{"type":"string"}},"eventMetricNames":{"type":"array","items":{"type":"string"}},"trafficScope":{"$ref":"#/components/schemas/TrafficScope"},"breakdownMode":{"$ref":"#/components/schemas/AcquisitionBreakdownMode"},"campaignsBreakdownMode":{"$ref":"#/components/schemas/AcquisitionCampaignsBreakdownMode"},"filter":{"anyOf":[{"$ref":"#/components/schemas/AcquisitionDistributionFilter"},{"type":"string","nullable":true,"enum":[null]}]},"groupBy":{"$ref":"#/components/schemas/AcquisitionGroupBy"},"columns":{"type":"array","items":{"$ref":"#/components/schemas/AcquisitionColumn"}},"aiFocus":{"type":"boolean"},"sortBy":{"$ref":"#/components/schemas/AcquisitionSortBy"},"sortEventMetricName":{"type":"string"},"sortDirection":{"$ref":"#/components/schemas/SortDirection"}},"required":["attributionModel","attributionWindowDays","conversionEventNames","eventMetricNames","trafficScope","breakdownMode","campaignsBreakdownMode","filter","groupBy","columns","aiFocus","sortBy","sortDirection"],"additionalProperties":false},"scoreCards":{"type":"object","properties":{"consentedVisitors":{"$ref":"#/components/schemas/AcquisitionScoreMetric"},"sessions":{"$ref":"#/components/schemas/AcquisitionScoreMetric"},"conversions":{"$ref":"#/components/schemas/AcquisitionScoreMetric"},"sessionDuration":{"$ref":"#/components/schemas/AcquisitionScoreMetric"},"revenue":{"$ref":"#/components/schemas/AcquisitionRevenueMetric"}},"required":["consentedVisitors","sessions","conversions","sessionDuration"],"additionalProperties":false},"trafficBreakdown":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string"},"sessions":{"type":"number"},"conversions":{"type":"number"},"breakdownKey":{"type":"string"},"breakdownKey1":{"type":"string"},"breakdownKey2":{"type":"string"}},"required":["date","sessions","conversions"],"additionalProperties":false}},"trafficDistribution":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"eventCounts":{"type":"object","additionalProperties":{"type":"number"}},"source":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"string","nullable":true,"enum":[null]}]},"medium":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"string","nullable":true,"enum":[null]}]},"campaign":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"string","nullable":true,"enum":[null]}]},"channel":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"string","nullable":true,"enum":[null]}]},"sessions":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"string","nullable":true,"enum":[null]}]},"conversions":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"string","nullable":true,"enum":[null]}]},"conversion_rate":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"string","nullable":true,"enum":[null]}]},"bounce_rate":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"string","nullable":true,"enum":[null]}]},"revenue":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"string","nullable":true,"enum":[null]}]},"revenue_per_conversion":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"string","nullable":true,"enum":[null]}]}},"required":["eventCounts"]}},"pagination":{"type":"object","properties":{"limit":{"type":"number"},"offset":{"type":"number"},"total":{"type":"number"}},"required":["limit","offset","total"],"additionalProperties":false},"columns":{"type":"array","items":{"$ref":"#/components/schemas/AcquisitionColumn"}},"eventMetrics":{"type":"array","items":{"$ref":"#/components/schemas/AcquisitionEventMetric"}},"groupBy":{"$ref":"#/components/schemas/AcquisitionGroupBy"},"sort":{"type":"object","properties":{"sortBy":{"$ref":"#/components/schemas/AcquisitionSortBy"},"sortEventMetricName":{"type":"string"},"sortDirection":{"$ref":"#/components/schemas/SortDirection"}},"required":["sortBy","sortDirection"],"additionalProperties":false}},"required":["rows","pagination","columns","eventMetrics","groupBy","sort"],"additionalProperties":false}},"required":["range","previousRange","controls","scoreCards","trafficBreakdown","trafficDistribution"],"additionalProperties":false},"AcquisitionRevenueMetric":{"type":"object","properties":{"value":{"type":"number","nullable":true},"previousValue":{"type":"number","nullable":true},"change":{"type":"number","nullable":true},"changeRate":{"type":"number","nullable":true}},"required":["value","previousValue","change","changeRate"],"additionalProperties":false},"AcquisitionScoreMetric":{"type":"object","properties":{"value":{"type":"number"},"previousValue":{"type":"number"},"change":{"type":"number"},"changeRate":{"type":"number","nullable":true},"formattedValue":{"type":"string"},"previousFormattedValue":{"type":"string"}},"required":["value","previousValue","change","changeRate"],"additionalProperties":false},"AcquisitionSortBy":{"anyOf":[{"$ref":"#/components/schemas/AcquisitionColumn"},{"type":"string","enum":["event_metric"]}]},"AiVisibilityFilterOption":{"type":"object","properties":{"value":{"type":"string"},"label":{"type":"string"},"count":{"type":"number"}},"required":["value","label","count"],"additionalProperties":false},"AiVisibilityFilterOptionsResponse":{"type":"object","properties":{"options":{"type":"array","items":{"$ref":"#/components/schemas/AiVisibilityFilterOption"}}},"required":["options"],"additionalProperties":false},"AiVisibilityGraphPoint":{"type":"object","properties":{"date":{"type":"string"},"visits":{"type":"number"},"categoryValue":{"type":"string"},"secondaryCategoryValue":{"type":"string"},"tertiaryCategoryValue":{"type":"string"}},"required":["date","visits"],"additionalProperties":false},"AiVisibilityGraphsResponse":{"type":"object","properties":{"range":{"type":"object","properties":{"startDate":{"type":"string"},"endDate":{"type":"string"},"timezone":{"type":"string"}},"required":["startDate","endDate"],"additionalProperties":false},"points":{"type":"array","items":{"$ref":"#/components/schemas/AiVisibilityGraphPoint"}}},"required":["range","points"],"additionalProperties":false},"AiVisibilityPageReportResponse":{"type":"object","properties":{"range":{"type":"object","properties":{"startDate":{"type":"string"},"endDate":{"type":"string"},"timezone":{"type":"string"}},"required":["startDate","endDate"],"additionalProperties":false},"rows":{"type":"array","items":{"$ref":"#/components/schemas/AiVisibilityPageReportRow"}}},"required":["range","rows"],"additionalProperties":false},"AiVisibilityPageReportRow":{"type":"object","properties":{"pagePath":{"type":"string"},"agentPlatform":{"type":"string"},"agentName":{"type":"string"},"agentCategory":{"type":"string"},"isAi":{"type":"boolean"},"visits":{"type":"number"}},"required":["pagePath","agentPlatform","agentName","agentCategory","isAi","visits"],"additionalProperties":false},"AiVisibilityReportResponse":{"type":"object","properties":{"range":{"type":"object","properties":{"startDate":{"type":"string"},"endDate":{"type":"string"},"timezone":{"type":"string"}},"required":["startDate","endDate"],"additionalProperties":false},"previousRange":{"type":"object","properties":{"startDate":{"type":"string"},"endDate":{"type":"string"},"timezone":{"type":"string"}},"required":["startDate","endDate"],"additionalProperties":false},"scoreCards":{"$ref":"#/components/schemas/AiVisibilityScoreCards"},"previousScoreCards":{"$ref":"#/components/schemas/AiVisibilityScoreCards"}},"required":["range","previousRange","scoreCards","previousScoreCards"],"additionalProperties":false},"AiVisibilityScoreCards":{"type":"object","properties":{"aiAgentVisits":{"type":"number"},"agents":{"type":"number"},"agentVisits":{"type":"number"},"agentPlatforms":{"type":"number"},"agentCategories":{"type":"number"},"pagesCovered":{"type":"number"}},"required":["aiAgentVisits","agents","agentVisits","agentPlatforms","agentCategories","pagesCovered"],"additionalProperties":false},"ApiError":{"type":"object","required":["success","error","timestamp","path","requestId"],"properties":{"success":{"type":"boolean","enum":[false]},"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","additionalProperties":true,"nullable":true}}},"timestamp":{"type":"string","format":"date-time"},"path":{"type":"string"},"requestId":{"type":"string"}}},"AttributionModel":{"type":"string","enum":["first_touch","last_touch","last_non_direct_touch"]},"AttributionWindowDays":{"type":"number","enum":[7,14,30]},"CommerceCountMetric":{"type":"object","properties":{"value":{"type":"number"},"previousValue":{"type":"number"},"change":{"type":"number"},"changeRate":{"type":"number","nullable":true}},"required":["value","previousValue","change","changeRate"],"additionalProperties":false},"CommerceCurrencyMetadata":{"type":"object","properties":{"reportingCurrency":{"type":"string","nullable":true},"status":{"$ref":"#/components/schemas/CommerceCurrencyStatus"},"excludedCount":{"type":"number"}},"required":["reportingCurrency","status"],"additionalProperties":false},"CommerceCurrencyStatus":{"type":"string","enum":["available","unavailable"]},"CommerceDateRange":{"type":"object","properties":{"startDate":{"type":"string"},"endDate":{"type":"string"},"timezone":{"type":"string"}},"required":["startDate","endDate","timezone"],"additionalProperties":false},"CommerceEventOption":{"type":"object","properties":{"eventName":{"type":"string"}},"required":["eventName"],"additionalProperties":false},"CommerceEventOptionsResponse":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/CommerceEventOption"}}},"required":["items"],"additionalProperties":false},"CommerceItemAttributionRow":{"type":"object","properties":{"source":{"type":"string","nullable":true},"medium":{"type":"string","nullable":true},"campaign":{"type":"string","nullable":true},"platform":{"type":"string"},"view_item_count":{"type":"number"},"add_to_cart_count":{"type":"number"},"orders":{"type":"number"},"items":{"type":"number"},"revenue":{"type":"number","nullable":true}},"required":["source","medium","campaign","view_item_count","add_to_cart_count","orders","items","revenue"],"additionalProperties":false},"CommerceItemColumn":{"type":"string","enum":["item_name","item_id","brand","category","price","quantity","coupon","discount","view_item_count","add_to_cart_count","orders","items","revenue"]},"CommerceItemDetailsResponse":{"anyOf":[{"type":"object","additionalProperties":false,"properties":{"range":{"$ref":"#/components/schemas/CommerceDateRange"},"items":{"type":"array","items":{"type":"object","properties":{"itemKey":{"type":"string"},"currency":{"$ref":"#/components/schemas/CommerceCurrencyMetadata"},"rows":{"type":"array","items":{"$ref":"#/components/schemas/CommerceItemAttributionRow"}},"pagination":{"type":"object","properties":{"limit":{"type":"number"},"offset":{"type":"number"},"total":{"type":"number"}},"required":["limit","offset","total"],"additionalProperties":false}},"required":["itemKey","currency","rows","pagination"],"additionalProperties":false}},"kind":{"type":"string","enum":["attribution"]}},"required":["items","kind","range"]},{"type":"object","additionalProperties":false,"properties":{"range":{"$ref":"#/components/schemas/CommerceDateRange"},"currency":{"$ref":"#/components/schemas/CommerceCurrencyMetadata"},"rows":{"type":"array","items":{"$ref":"#/components/schemas/CommerceItemTableRow"}},"pagination":{"type":"object","properties":{"limit":{"type":"number"},"offset":{"type":"number"},"total":{"type":"number"}},"required":["limit","offset","total"],"additionalProperties":false},"columns":{"type":"array","items":{"$ref":"#/components/schemas/CommerceItemColumn"}},"groupBy":{"$ref":"#/components/schemas/CommerceItemGroupBy"},"sort":{"type":"object","properties":{"sortBy":{"$ref":"#/components/schemas/CommerceItemColumn"},"sortDirection":{"$ref":"#/components/schemas/CommerceSortDirection"}},"required":["sortBy","sortDirection"],"additionalProperties":false},"kind":{"type":"string","enum":["group-items"]}},"required":["columns","currency","groupBy","kind","pagination","range","rows","sort"]}]},"CommerceItemGroupBy":{"type":"string","enum":["item_name","item_id","brand","category","price","quantity","coupon","discount"]},"CommerceItemTableRow":{"type":"object","properties":{"itemKey":{"type":"string"},"itemCount":{"type":"number"},"item_name":{"type":"string","nullable":true},"sku":{"type":"string","nullable":true},"item_id":{"type":"string","nullable":true},"brand":{"type":"string","nullable":true},"category":{"type":"string","nullable":true},"price":{"type":"number","nullable":true},"quantity":{"type":"number"},"coupon":{"type":"string","nullable":true},"discount":{"type":"number","nullable":true},"orders":{"type":"number"},"items":{"type":"number"},"revenue":{"type":"number","nullable":true},"view_item_count":{"type":"number"},"add_to_cart_count":{"type":"number"}},"required":["itemKey"],"additionalProperties":false},"CommerceItemsResponse":{"type":"object","properties":{"range":{"$ref":"#/components/schemas/CommerceDateRange"},"previousRange":{"$ref":"#/components/schemas/CommerceDateRange"},"currency":{"$ref":"#/components/schemas/CommerceCurrencyMetadata"},"rows":{"type":"array","items":{"$ref":"#/components/schemas/CommerceItemTableRow"}},"pagination":{"type":"object","properties":{"limit":{"type":"number"},"offset":{"type":"number"},"total":{"type":"number"}},"required":["limit","offset","total"],"additionalProperties":false},"columns":{"type":"array","items":{"$ref":"#/components/schemas/CommerceItemColumn"}},"groupBy":{"anyOf":[{"$ref":"#/components/schemas/CommerceItemGroupBy"},{"type":"string","nullable":true,"enum":[null]}]},"sort":{"type":"object","properties":{"sortBy":{"$ref":"#/components/schemas/CommerceItemColumn"},"sortDirection":{"$ref":"#/components/schemas/CommerceSortDirection"}},"required":["sortBy","sortDirection"],"additionalProperties":false}},"required":["range","previousRange","currency","rows","pagination","columns","groupBy","sort"],"additionalProperties":false},"CommerceMoneyMetric":{"type":"object","properties":{"value":{"type":"number","nullable":true},"previousValue":{"type":"number","nullable":true},"change":{"type":"number","nullable":true},"changeRate":{"type":"number","nullable":true}},"required":["value","previousValue","change","changeRate"],"additionalProperties":false},"CommerceRateMetric":{"type":"object","properties":{"value":{"type":"number","nullable":true},"previousValue":{"type":"number","nullable":true},"change":{"type":"number","nullable":true},"changeRate":{"type":"number","nullable":true},"changeKind":{"type":"string","enum":["percentage_points"]}},"required":["value","previousValue","change","changeRate","changeKind"],"additionalProperties":false},"CommerceReportMeta":{"type":"object","properties":{"reportSettingsVersion":{"type":"string","pattern":"^[a-f0-9]{64}$","example":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}},"required":["reportSettingsVersion"],"additionalProperties":false},"CommerceReportResponse":{"type":"object","properties":{"range":{"$ref":"#/components/schemas/CommerceDateRange"},"previousRange":{"$ref":"#/components/schemas/CommerceDateRange"},"interval":{"$ref":"#/components/schemas/ReportInterval"},"currency":{"$ref":"#/components/schemas/CommerceCurrencyMetadata"},"consentBreakdown":{"type":"object","additionalProperties":false,"properties":{"daily":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"date":{"type":"string"},"consented":{"type":"object","properties":{"orders":{"type":"number"},"revenue":{"type":"number","nullable":true}},"required":["orders","revenue"],"additionalProperties":false},"deniedOrUnknown":{"type":"object","properties":{"orders":{"type":"number"},"revenue":{"type":"number","nullable":true}},"required":["orders","revenue"],"additionalProperties":false}},"required":["consented","date","deniedOrUnknown"]}},"consented":{"type":"object","properties":{"orders":{"type":"number"},"revenue":{"type":"number","nullable":true}},"required":["orders","revenue"],"additionalProperties":false},"deniedOrUnknown":{"type":"object","properties":{"orders":{"type":"number"},"revenue":{"type":"number","nullable":true}},"required":["orders","revenue"],"additionalProperties":false}},"required":["consented","daily","deniedOrUnknown"]},"scoreCards":{"type":"object","properties":{"revenue":{"$ref":"#/components/schemas/CommerceMoneyMetric"},"orders":{"$ref":"#/components/schemas/CommerceCountMetric"},"aov":{"$ref":"#/components/schemas/CommerceMoneyMetric"},"items":{"$ref":"#/components/schemas/CommerceCountMetric"},"item_cvr":{"$ref":"#/components/schemas/CommerceRateMetric"}},"required":["revenue","orders","aov","items","item_cvr"],"additionalProperties":false},"trend":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string"},"revenue":{"type":"number","nullable":true},"orders":{"type":"number"}},"required":["date","revenue","orders"],"additionalProperties":false}},"topChannels":{"type":"array","items":{"type":"object","properties":{"channel":{"type":"string","nullable":true},"sessions":{"type":"number"},"orders":{"type":"number"},"revenue":{"type":"number","nullable":true}},"required":["channel","sessions","orders","revenue"],"additionalProperties":false}},"topSources":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string","nullable":true},"medium":{"type":"string","nullable":true},"sessions":{"type":"number"},"orders":{"type":"number"},"revenue":{"type":"number","nullable":true}},"required":["source","medium","sessions","orders","revenue"],"additionalProperties":false}}},"required":["range","previousRange","interval","currency","scoreCards","trend","topChannels","topSources"],"additionalProperties":false},"CommerceSortDirection":{"type":"string","enum":["asc","desc"]},"EventContext":{"anyOf":[{"type":"object","properties":{"hostname":{"type":"string","nullable":true},"browser":{"type":"string","nullable":true},"operatingSystem":{"type":"string","nullable":true},"device":{"type":"string","nullable":true},"countryCode":{"type":"string","nullable":true},"city":{"type":"string","nullable":true}},"required":["hostname","browser","operatingSystem","device","countryCode","city"],"additionalProperties":false},{"type":"string","nullable":true,"enum":[null]}]},"EventData":{"description":"Any JSON value: a string, number, boolean, null, array or object, nested to any depth."},"EventDetailResponse":{"type":"object","properties":{"eventId":{"type":"string"},"sourceId":{"type":"string"},"eventName":{"type":"string"},"occurredAt":{"type":"string"},"source":{"type":"string","nullable":true},"medium":{"type":"string","nullable":true},"campaign":{"type":"string","nullable":true},"session":{"type":"string","nullable":true},"visitorId":{"type":"string","nullable":true},"userId":{"type":"string","nullable":true},"url":{"type":"string","nullable":true},"pagePath":{"type":"string","nullable":true},"referrer":{"type":"string","nullable":true},"context":{"$ref":"#/components/schemas/EventContext"},"eventData":{"$ref":"#/components/schemas/EventData"}},"required":["eventId","eventName","occurredAt","source","medium","campaign","session","visitorId","url","pagePath","referrer","context","eventData"],"additionalProperties":false},"EventsOverviewMetricComparison":{"type":"object","properties":{"current":{"type":"number"},"previous":{"type":"number"}},"required":["current","previous"],"additionalProperties":false},"EventsOverviewMetrics":{"type":"object","properties":{"totalEvents":{"$ref":"#/components/schemas/EventsOverviewMetricComparison"},"keyEvents":{"$ref":"#/components/schemas/EventsOverviewMetricComparison"},"pageViews":{"$ref":"#/components/schemas/EventsOverviewMetricComparison"},"eventsPerVisitor":{"$ref":"#/components/schemas/EventsOverviewMetricComparison"},"eventsPerSession":{"$ref":"#/components/schemas/EventsOverviewMetricComparison"}},"required":["totalEvents","keyEvents","pageViews","eventsPerVisitor","eventsPerSession"],"additionalProperties":false},"EventsOverviewResponse":{"type":"object","properties":{"range":{"type":"object","properties":{"startDate":{"type":"string"},"endDate":{"type":"string"},"timezone":{"type":"string"}},"required":["startDate","endDate","timezone"],"additionalProperties":false},"previousRange":{"type":"object","properties":{"startDate":{"type":"string"},"endDate":{"type":"string"},"timezone":{"type":"string"}},"required":["startDate","endDate","timezone"],"additionalProperties":false},"interval":{"$ref":"#/components/schemas/ReportInterval"},"metrics":{"$ref":"#/components/schemas/EventsOverviewMetrics"},"timeline":{"type":"array","items":{"$ref":"#/components/schemas/EventsTimelinePoint"}},"timelineEventOptions":{"type":"array","items":{"$ref":"#/components/schemas/EventsTimelineEventOption"}}},"required":["range","previousRange","interval","metrics","timeline","timelineEventOptions"],"additionalProperties":false},"EventsTimelineEventOption":{"type":"object","properties":{"eventName":{"type":"string"},"eventLabel":{"type":"string"},"eventCount":{"type":"number"}},"required":["eventName","eventLabel","eventCount"],"additionalProperties":false},"EventsTimelinePoint":{"type":"object","properties":{"timestamp":{"type":"string"},"eventName":{"type":"string","nullable":true},"eventCount":{"type":"number"}},"required":["timestamp","eventName","eventCount"],"additionalProperties":false},"Funnel":{"type":"object","additionalProperties":false,"properties":{"funnelId":{"type":"string"},"funnelName":{"type":"string"},"tenantId":{"type":"string"},"sourceId":{"type":"string","nullable":true},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"steps":{"type":"array","items":{"$ref":"#/components/schemas/FunnelStep"}},"breakdowns":{"type":"array","items":{"$ref":"#/components/schemas/FunnelBreakdown"}}},"required":["breakdowns","createdAt","funnelId","funnelName","sourceId","steps","tenantId","updatedAt"]},"FunnelBreakdown":{"type":"object","properties":{"breakdownKey":{"$ref":"#/components/schemas/FunnelBreakdownKey"},"breakdownLabel":{"type":"string"}},"required":["breakdownKey","breakdownLabel"],"additionalProperties":false},"FunnelBreakdownKey":{"type":"string","enum":["source","medium","channel","country","city","device","browser","os"]},"FunnelBreakdownNestedRow":{"type":"object","properties":{"breakdownValues":{"type":"object","properties":{"source":{"type":"string"},"medium":{"type":"string"},"channel":{"type":"string"},"country":{"type":"string"},"city":{"type":"string"},"device":{"type":"string"},"browser":{"type":"string"},"os":{"type":"string"}},"additionalProperties":false},"share":{"type":"number","nullable":true},"stepCounts":{"type":"array","items":{"type":"number"}},"stepRates":{"type":"array","items":{"type":"number","nullable":true}}},"required":["breakdownValues","share","stepCounts","stepRates"],"additionalProperties":false},"FunnelBreakdownOptionsResponse":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/FunnelBreakdown"}}},"required":["items"],"additionalProperties":false},"FunnelBreakdownResponse":{"type":"object","properties":{"range":{"type":"object","properties":{"startDate":{"type":"string"},"endDate":{"type":"string"},"timezone":{"type":"string"}},"required":["startDate","endDate","timezone"],"additionalProperties":false},"breakdownTable":{"type":"object","properties":{"columns":{"type":"object","properties":{"breakdowns":{"type":"array","items":{"$ref":"#/components/schemas/FunnelBreakdown"}},"steps":{"type":"array","items":{"type":"object","properties":{"stepOrder":{"type":"number"},"stepName":{"type":"string"}},"required":["stepOrder","stepName"],"additionalProperties":false}}},"required":["breakdowns","steps"],"additionalProperties":false},"totalRow":{"$ref":"#/components/schemas/FunnelBreakdownRow"},"rows":{"type":"array","items":{"$ref":"#/components/schemas/FunnelBreakdownRow"}},"pagination":{"type":"object","properties":{"limit":{"type":"number"},"offset":{"type":"number"},"total":{"type":"number"}},"required":["limit","offset","total"],"additionalProperties":false},"sort":{"type":"object","properties":{"sortBy":{"type":"string","enum":["share","breakdown","stepCount"]},"sortStep":{"type":"number","nullable":true},"sortDirection":{"$ref":"#/components/schemas/SortDirection"}},"required":["sortBy","sortStep","sortDirection"],"additionalProperties":false},"search":{"type":"string"}},"required":["columns","totalRow","rows","pagination","sort","search"],"additionalProperties":false}},"required":["range","breakdownTable"],"additionalProperties":false},"FunnelBreakdownRow":{"type":"object","additionalProperties":false,"properties":{"children":{"type":"array","items":{"$ref":"#/components/schemas/FunnelBreakdownNestedRow"}},"childrenTotal":{"type":"number"},"breakdownValues":{"type":"object","properties":{"source":{"type":"string"},"medium":{"type":"string"},"channel":{"type":"string"},"country":{"type":"string"},"city":{"type":"string"},"device":{"type":"string"},"browser":{"type":"string"},"os":{"type":"string"}},"additionalProperties":false},"share":{"type":"number","nullable":true},"stepCounts":{"type":"array","items":{"type":"number"}},"stepRates":{"type":"array","items":{"type":"number","nullable":true}}},"required":["breakdownValues","share","stepCounts","stepRates"]},"FunnelEventOptionsResponse":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"eventName":{"type":"string"},"eventLabel":{"type":"string"}},"required":["eventName","eventLabel"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false},"FunnelListResponse":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Funnel"}},"total":{"type":"number"}},"required":["items","total"],"additionalProperties":false},"FunnelPageOptionsResponse":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"pagePath":{"type":"string"}},"required":["pagePath"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false},"FunnelPreviewResponse":{"type":"object","properties":{"range":{"type":"object","properties":{"startDate":{"type":"string"},"endDate":{"type":"string"},"timezone":{"type":"string"}},"required":["startDate","endDate","timezone"],"additionalProperties":false},"steps":{"type":"array","items":{"type":"object","properties":{"stepOrder":{"type":"number"},"stepLabel":{"type":"string"},"value":{"type":"number"}},"required":["stepOrder","stepLabel","value"],"additionalProperties":false}}},"required":["range","steps"],"additionalProperties":false},"FunnelStep":{"type":"object","properties":{"stepOrder":{"type":"number"},"stepType":{"$ref":"#/components/schemas/FunnelStepType"},"stepValue":{"type":"string"}},"required":["stepOrder","stepType","stepValue"],"additionalProperties":false},"FunnelStepMetric":{"type":"object","additionalProperties":false,"properties":{"stepName":{"type":"string"},"count":{"type":"number"},"share":{"type":"number","nullable":true},"stepOrder":{"type":"number"},"stepType":{"$ref":"#/components/schemas/FunnelStepType"},"stepValue":{"type":"string"}},"required":["count","share","stepName","stepOrder","stepType","stepValue"]},"FunnelStepPerformance":{"type":"object","additionalProperties":false,"properties":{"stepName":{"type":"string"},"count":{"type":"number"},"percentage":{"type":"number","nullable":true},"stepOrder":{"type":"number"},"stepType":{"$ref":"#/components/schemas/FunnelStepType"},"stepValue":{"type":"string"}},"required":["count","percentage","stepName","stepOrder","stepType","stepValue"]},"FunnelStepType":{"type":"string","enum":["event","page"]},"FunnelSummaryResponse":{"type":"object","properties":{"range":{"type":"object","properties":{"startDate":{"type":"string"},"endDate":{"type":"string"},"timezone":{"type":"string"}},"required":["startDate","endDate","timezone"],"additionalProperties":false},"funnelSummary":{"type":"object","properties":{"entryCount":{"type":"number"},"completedCount":{"type":"number"},"conversionRate":{"type":"number","nullable":true},"steps":{"type":"array","items":{"$ref":"#/components/schemas/FunnelStepMetric"}}},"required":["entryCount","completedCount","conversionRate","steps"],"additionalProperties":false},"stepPerformance":{"type":"array","items":{"$ref":"#/components/schemas/FunnelStepPerformance"}},"dropOffs":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["entry"]},"fromStep":{"type":"string","nullable":true,"enum":[null]},"toStep":{"type":"number","enum":[1]},"entryCount":{"type":"number"},"dropOffCount":{"type":"number","enum":[0]},"dropOffRate":{"type":"string","nullable":true,"enum":[null]}},"required":["type","fromStep","toStep","entryCount","dropOffCount","dropOffRate"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["dropOff"]},"fromStep":{"type":"number"},"toStep":{"type":"number"},"dropOffCount":{"type":"number"},"dropOffRate":{"type":"number","nullable":true}},"required":["type","fromStep","toStep","dropOffCount","dropOffRate"],"additionalProperties":false}]}}},"required":["range","funnelSummary","stepPerformance","dropOffs"],"additionalProperties":false},"OverviewReportResponse":{"type":"object","properties":{"range":{"type":"object","properties":{"startDate":{"type":"string"},"endDate":{"type":"string"},"timezone":{"type":"string"}},"required":["startDate","endDate"],"additionalProperties":false},"previousRange":{"type":"object","properties":{"startDate":{"type":"string"},"endDate":{"type":"string"},"timezone":{"type":"string"}},"required":["startDate","endDate"],"additionalProperties":false},"scoreCards":{"$ref":"#/components/schemas/OverviewScoreCards"},"previousScoreCards":{"$ref":"#/components/schemas/OverviewScoreCards"},"timeSeries":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string"},"pageViews":{"type":"number"},"consentedVisitors":{"type":"number"},"sessions":{"type":"number"},"consentedSessions":{"type":"number"},"unconsentedSessions":{"type":"number"}},"required":["date","pageViews","consentedVisitors","sessions","consentedSessions","unconsentedSessions"],"additionalProperties":false}},"sessionBreakdowns":{"type":"object","properties":{"browsers":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"sessions":{"type":"number"}},"required":["value","sessions"],"additionalProperties":false}},"operatingSystems":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"sessions":{"type":"number"}},"required":["value","sessions"],"additionalProperties":false}},"devices":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"sessions":{"type":"number"}},"required":["value","sessions"],"additionalProperties":false}}},"required":["browsers","operatingSystems","devices"],"additionalProperties":false},"acquisitionBreakdowns":{"type":"object","properties":{"channels":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"sessions":{"type":"number"}},"required":["value","sessions"],"additionalProperties":false}},"sources":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"sessions":{"type":"number"}},"required":["value","sessions"],"additionalProperties":false}}},"required":["channels","sources"],"additionalProperties":false},"pages":{"type":"array","items":{"type":"object","properties":{"pageTitle":{"type":"string"},"pagePath":{"type":"string"},"consentedVisitors":{"type":"number"},"sessions":{"type":"number"}},"required":["pageTitle","pagePath","consentedVisitors","sessions"],"additionalProperties":false}},"locations":{"type":"object","properties":{"countries":{"type":"array","items":{"type":"object","properties":{"countryCode":{"type":"string"},"consentedVisitors":{"type":"number"},"sessions":{"type":"number"}},"required":["countryCode","consentedVisitors","sessions"],"additionalProperties":false}},"cities":{"type":"array","items":{"type":"object","properties":{"countryCode":{"type":"string"},"city":{"type":"string"},"consentedVisitors":{"type":"number"},"sessions":{"type":"number"}},"required":["countryCode","city","consentedVisitors","sessions"],"additionalProperties":false}}},"required":["countries","cities"],"additionalProperties":false}},"required":["range","previousRange","scoreCards","previousScoreCards","timeSeries","sessionBreakdowns","acquisitionBreakdowns","pages","locations"],"additionalProperties":false},"OverviewScoreCards":{"type":"object","properties":{"consentedVisitors":{"type":"number"},"sessions":{"type":"number"},"pageViews":{"type":"number"},"bounceRate":{"type":"number"},"sessionDuration":{"type":"number"},"totalEvents":{"type":"number"},"consentRate":{"type":"number"}},"required":["consentedVisitors","sessions","pageViews","bounceRate","sessionDuration","totalEvents","consentRate"],"additionalProperties":false},"PagesEntryExitPage":{"type":"object","properties":{"pagePath":{"type":"string"},"sessions":{"type":"number"},"share":{"type":"number"}},"required":["pagePath","sessions","share"],"additionalProperties":false},"PagesEntryExitResponse":{"type":"object","properties":{"range":{"type":"object","properties":{"startDate":{"type":"string"},"endDate":{"type":"string"},"timezone":{"type":"string"}},"required":["startDate","endDate","timezone"],"additionalProperties":false},"entryPages":{"type":"array","items":{"$ref":"#/components/schemas/PagesEntryExitPage"}},"exitPages":{"type":"array","items":{"$ref":"#/components/schemas/PagesEntryExitPage"}}},"required":["range","entryPages","exitPages"],"additionalProperties":false},"PagesFlowEdge":{"type":"object","properties":{"step":{"type":"number"},"from":{"type":"string"},"to":{"type":"string"},"sessions":{"type":"number"}},"required":["step","from","to","sessions"],"additionalProperties":false},"PagesFlowResponse":{"type":"object","properties":{"range":{"type":"object","properties":{"startDate":{"type":"string"},"endDate":{"type":"string"},"timezone":{"type":"string"}},"required":["startDate","endDate","timezone"],"additionalProperties":false},"destinationPath":{"type":"string","nullable":true},"steps":{"type":"number"},"totalSessions":{"type":"number"},"edges":{"type":"array","items":{"$ref":"#/components/schemas/PagesFlowEdge"}},"destinationPaths":{"type":"array","items":{"type":"string"}}},"required":["range","destinationPath","steps","totalSessions","edges","destinationPaths"],"additionalProperties":false},"PagesMetricComparison":{"type":"object","properties":{"current":{"type":"number"},"previous":{"type":"number"},"changePct":{"type":"number"}},"required":["current","previous","changePct"],"additionalProperties":false},"PagesMetricComparison__number_null__":{"type":"object","properties":{"current":{"type":"number","nullable":true},"previous":{"type":"number","nullable":true},"changePct":{"type":"number","nullable":true}},"required":["current","previous","changePct"],"additionalProperties":false},"PagesMetricsResponse":{"type":"object","properties":{"range":{"type":"object","properties":{"startDate":{"type":"string"},"endDate":{"type":"string"},"timezone":{"type":"string"}},"required":["startDate","endDate","timezone"],"additionalProperties":false},"previousRange":{"type":"object","properties":{"startDate":{"type":"string"},"endDate":{"type":"string"},"timezone":{"type":"string"}},"required":["startDate","endDate","timezone"],"additionalProperties":false},"metrics":{"type":"object","properties":{"consentedVisitors":{"$ref":"#/components/schemas/PagesMetricComparison"},"sessions":{"$ref":"#/components/schemas/PagesMetricComparison"},"pageViews":{"$ref":"#/components/schemas/PagesMetricComparison"},"pagesPerSession":{"$ref":"#/components/schemas/PagesMetricComparison"},"bounceRate":{"$ref":"#/components/schemas/PagesMetricComparison"},"scrollDepth":{"$ref":"#/components/schemas/PagesMetricComparison__number_null__"}},"required":["consentedVisitors","sessions","pageViews","pagesPerSession","bounceRate","scrollDepth"],"additionalProperties":false}},"required":["range","previousRange","metrics"],"additionalProperties":false},"PagesTimeSeriesPoint":{"type":"object","properties":{"date":{"type":"string"},"pagePath":{"type":"string"},"pageViews":{"type":"number"}},"required":["date","pagePath","pageViews"],"additionalProperties":false},"PagesTimeSeriesResponse":{"type":"object","properties":{"range":{"type":"object","properties":{"startDate":{"type":"string"},"endDate":{"type":"string"},"timezone":{"type":"string"}},"required":["startDate","endDate","timezone"],"additionalProperties":false},"interval":{"$ref":"#/components/schemas/ReportInterval"},"pagePaths":{"type":"array","items":{"type":"string"}},"maxSelectablePaths":{"type":"number"},"pagePathPagination":{"type":"object","properties":{"limit":{"type":"number"},"offset":{"type":"number"},"hasMore":{"type":"boolean"}},"required":["limit","offset","hasMore"],"additionalProperties":false},"series":{"type":"array","items":{"$ref":"#/components/schemas/PagesTimeSeriesPoint"}}},"required":["range","interval","pagePaths","maxSelectablePaths","pagePathPagination","series"],"additionalProperties":false},"PagesTopAttributionPage":{"type":"object","additionalProperties":false,"properties":{"source":{"type":"string"},"medium":{"type":"string"},"campaign":{"type":"string"},"isOther":{"type":"boolean"},"pagePath":{"type":"string"},"consentedVisitors":{"type":"number"},"sessions":{"type":"number"},"pagesPerSession":{"type":"number"},"bounceRate":{"type":"number"},"scrollDepth":{"type":"number","nullable":true}},"required":["bounceRate","campaign","consentedVisitors","medium","pagePath","pagesPerSession","scrollDepth","sessions","source"]},"PagesTopPage":{"type":"object","properties":{"pagePath":{"type":"string"},"consentedVisitors":{"type":"number"},"sessions":{"type":"number"},"pagesPerSession":{"type":"number"},"bounceRate":{"type":"number"},"scrollDepth":{"type":"number","nullable":true}},"required":["pagePath","consentedVisitors","sessions","pagesPerSession","bounceRate","scrollDepth"],"additionalProperties":false},"PagesTopResponse":{"type":"object","properties":{"range":{"type":"object","properties":{"startDate":{"type":"string"},"endDate":{"type":"string"},"timezone":{"type":"string"}},"required":["startDate","endDate","timezone"],"additionalProperties":false},"rows":{"type":"array","items":{"$ref":"#/components/schemas/PagesTopPage"}},"attributionRows":{"type":"array","items":{"$ref":"#/components/schemas/PagesTopAttributionPage"}},"pagination":{"type":"object","properties":{"limit":{"type":"number"},"offset":{"type":"number"},"total":{"type":"number"}},"required":["limit","offset","total"],"additionalProperties":false}},"required":["range","rows","attributionRows","pagination"],"additionalProperties":false},"RealtimeReportResponse":{"type":"object","properties":{"windowMinutes":{"type":"number"},"consentedVisitors":{"type":"number"},"sessions":{"type":"number"},"events":{"type":"number"}},"required":["windowMinutes","consentedVisitors","sessions","events"],"additionalProperties":false},"ReportInterval":{"type":"string","enum":["minute","hour","day","week","month"]},"SessionDurationComparison":{"type":"object","additionalProperties":false,"properties":{"currentFormatted":{"type":"string"},"previousFormatted":{"type":"string"},"current":{"type":"number"},"previous":{"type":"number"},"changePct":{"type":"number"}},"required":["changePct","current","currentFormatted","previous","previousFormatted"]},"SessionMetricComparison":{"type":"object","properties":{"current":{"type":"number"},"previous":{"type":"number"},"changePct":{"type":"number"}},"required":["current","previous","changePct"],"additionalProperties":false},"SessionMetricsResponse":{"type":"object","properties":{"range":{"type":"object","properties":{"startDate":{"type":"string"},"endDate":{"type":"string"},"timezone":{"type":"string"}},"required":["startDate","endDate","timezone"],"additionalProperties":false},"metrics":{"type":"object","properties":{"sessions":{"$ref":"#/components/schemas/SessionMetricComparison"},"engagedSessions":{"$ref":"#/components/schemas/SessionMetricComparison"},"engagedSessionRate":{"$ref":"#/components/schemas/SessionRateComparison"},"sessionDuration":{"$ref":"#/components/schemas/SessionDurationComparison"},"eventsPerSession":{"$ref":"#/components/schemas/SessionMetricComparison"}},"required":["sessions","engagedSessions","engagedSessionRate","sessionDuration","eventsPerSession"],"additionalProperties":false}},"required":["range","metrics"],"additionalProperties":false},"SessionRateComparison":{"type":"object","properties":{"current":{"type":"number","nullable":true},"previous":{"type":"number","nullable":true},"changePct":{"type":"number","nullable":true}},"required":["current","previous","changePct"],"additionalProperties":false},"SessionTrendPoint":{"type":"object","properties":{"date":{"type":"string"},"sessions":{"type":"number"},"engagedSessions":{"type":"number"}},"required":["date","sessions","engagedSessions"],"additionalProperties":false},"SessionTrendsResponse":{"type":"object","properties":{"range":{"type":"object","properties":{"startDate":{"type":"string"},"endDate":{"type":"string"},"timezone":{"type":"string"}},"required":["startDate","endDate","timezone"],"additionalProperties":false},"series":{"type":"array","items":{"$ref":"#/components/schemas/SessionTrendPoint"}}},"required":["range","series"],"additionalProperties":false},"SortDirection":{"type":"string","enum":["asc","desc"]},"TrafficScope":{"type":"string","enum":["consented_traffic","unconsented_traffic","all_traffic"]},"WorkspaceAccessMeta":{"type":"object","properties":{"total":{"type":"number"},"limit":{"type":"number"},"offset":{"type":"number"},"hasNext":{"type":"boolean"}},"required":["total","limit","offset","hasNext"],"additionalProperties":false},"WorkspaceAccessPage":{"type":"object","properties":{"tenants":{"type":"array","items":{"$ref":"#/components/schemas/WorkspaceAccessTenant"}}},"required":["tenants"],"additionalProperties":false},"WorkspaceAccessSource":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"domain":{"type":"string","nullable":true}},"required":["id","name","domain"],"additionalProperties":false},"WorkspaceAccessTenant":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"reportType":{"type":"string"},"reportingCurrency":{"type":"string","nullable":true},"organization":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"sources":{"type":"array","items":{"$ref":"#/components/schemas/WorkspaceAccessSource"}}},"required":["id","name","reportType","reportingCurrency","organization","sources"],"additionalProperties":false}}},"security":[{"bearerAuth":[]}],"paths":{"/v1/reports/overview":{"get":{"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"query","name":"tenantId","required":true,"description":"UUID of the tenant to report on. Send it exactly once. `GET /v1/workspace/access` lists the tenants this credential can read."},{"schema":{"type":"string","format":"uuid"},"in":"query","name":"sourceId","required":false,"description":"UUID of one source of the tenant. Omit it to include every source of the tenant."},{"schema":{"anyOf":[{"enum":["today"],"type":"string"},{"enum":["yesterday"],"type":"string"},{"enum":["last7days"],"type":"string"},{"enum":["last30days"],"type":"string"},{"enum":["custom"],"type":"string"}]},"in":"query","name":"timeframe","required":false,"description":"Reporting period. The presets `today`, `yesterday`, `last7days` and `last30days` cover whole calendar days ending today in the request `timezone`; `last7days` is today and the six days before it. Use `custom` together with `startDate` and `endDate`. Defaults to `today`."},{"schema":{"type":"string"},"in":"query","name":"startDate","required":false,"description":"First day of a custom period, `YYYY-MM-DD`, inclusive. Send it only with `timeframe=custom`, together with `endDate`."},{"schema":{"type":"string"},"in":"query","name":"endDate","required":false,"description":"Last day of a custom period, `YYYY-MM-DD`, inclusive. Send it only with `timeframe=custom`; it must not be before `startDate`."},{"schema":{"type":"string","minLength":1,"maxLength":100},"in":"query","name":"timezone","required":false,"description":"IANA time zone name such as `Europe/Istanbul` or `America/New_York`. It sets the calendar-day boundaries of the period and of the time buckets. Defaults to `Europe/Istanbul`."},{"schema":{"anyOf":[{"enum":["minute"],"type":"string"},{"enum":["hour"],"type":"string"},{"enum":["day"],"type":"string"},{"enum":["week"],"type":"string"},{"enum":["month"],"type":"string"}]},"in":"query","name":"interval","required":false,"description":"Bucket size of `timeSeries`: `minute`, `hour`, `day`, `week` or `month`. Defaults to `hour`; send `day` for periods longer than a day."},{"schema":{"type":"string"},"in":"query","name":"path","required":false,"description":"Only count traffic on these page paths, for example `/pricing`. Exact match. Separate several values with commas."},{"schema":{"type":"string"},"in":"query","name":"channel","required":false,"description":"Only count sessions and their events from these session-attribution channels, for example `OrganicSearch`. Use `(unknown)` for sessions without channel attribution. Applies to every Overview section. Exact match. Separate several values with commas."},{"schema":{"type":"string"},"in":"query","name":"source","required":false,"description":"Only count sessions and their events from these session-attribution traffic sources, for example `google`. Use `(unknown)` for sessions without source attribution. This is not `sourceId`. Applies to every Overview section. Exact match. Separate several values with commas."},{"schema":{"type":"string"},"in":"query","name":"device","required":false,"description":"Only count traffic from these device types, for example `desktop` or `mobile`. Exact match. Separate several values with commas."},{"schema":{"type":"string"},"in":"query","name":"os","required":false,"description":"Only count traffic from these operating systems, for example `iOS`. Exact match. Separate several values with commas."},{"schema":{"type":"string"},"in":"query","name":"country","required":false,"description":"Only count traffic from these countries, as two-letter codes such as `TR`. Exact match. Separate several values with commas."},{"schema":{"type":"string"},"in":"query","name":"city","required":false,"description":"Only count traffic from these cities. Exact match. Separate several values with commas."},{"schema":{"type":"string"},"in":"query","name":"eventName","required":false,"description":"Only count events with these names. Exact match. Separate several values with commas."}],"operationId":"getReportsOverview","responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","required":["success","data","timestamp","path","requestId"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/OverviewReportResponse"},"timestamp":{"type":"string","format":"date-time"},"path":{"type":"string"},"requestId":{"type":"string"}}},"example":{"success":true,"data":{"range":{"startDate":"2026-10-01","endDate":"2026-10-07","timezone":"Europe/Istanbul"},"previousRange":{"startDate":"2026-09-24","endDate":"2026-09-30","timezone":"Europe/Istanbul"},"scoreCards":{"consentedVisitors":1840,"sessions":4200,"pageViews":9660,"bounceRate":0.42,"sessionDuration":96,"totalEvents":25200,"consentRate":0.55},"previousScoreCards":{"consentedVisitors":1600,"sessions":3750,"pageViews":8250,"bounceRate":0.45,"sessionDuration":88,"totalEvents":21750,"consentRate":0.52},"timeSeries":[{"date":"2026-10-01","pageViews":1196,"consentedVisitors":228,"sessions":520,"consentedSessions":286,"unconsentedSessions":234},{"date":"2026-10-02","pageViews":1380,"consentedVisitors":263,"sessions":600,"consentedSessions":330,"unconsentedSessions":270},{"date":"2026-10-03","pageViews":1472,"consentedVisitors":280,"sessions":640,"consentedSessions":352,"unconsentedSessions":288},{"date":"2026-10-04","pageViews":1380,"consentedVisitors":263,"sessions":600,"consentedSessions":330,"unconsentedSessions":270},{"date":"2026-10-05","pageViews":1518,"consentedVisitors":289,"sessions":660,"consentedSessions":363,"unconsentedSessions":297},{"date":"2026-10-06","pageViews":1518,"consentedVisitors":289,"sessions":660,"consentedSessions":363,"unconsentedSessions":297},{"date":"2026-10-07","pageViews":1196,"consentedVisitors":228,"sessions":520,"consentedSessions":286,"unconsentedSessions":234}],"sessionBreakdowns":{"browsers":[{"value":"Chrome","sessions":2520},{"value":"Safari","sessions":1050},{"value":"Edge","sessions":336},{"value":"Firefox","sessions":294}],"operatingSystems":[{"value":"Windows","sessions":1596},{"value":"macOS","sessions":1134},{"value":"iOS","sessions":924},{"value":"Android","sessions":546}],"devices":[{"value":"desktop","sessions":2730},{"value":"mobile","sessions":1386},{"value":"tablet","sessions":84}]},"acquisitionBreakdowns":{"channels":[{"value":"Direct","sessions":1680},{"value":"OrganicSearch","sessions":1260},{"value":"PaidSearch","sessions":630},{"value":"Referral","sessions":420},{"value":"OrganicSocial","sessions":210}],"sources":[{"value":"google","sessions":1890},{"value":"direct","sessions":1680},{"value":"partner.example","sessions":420},{"value":"linkedin","sessions":210}]},"pages":[{"pageTitle":"Home","pagePath":"/","consentedVisitors":820,"sessions":1890},{"pageTitle":"Pricing","pagePath":"/pricing","consentedVisitors":410,"sessions":940},{"pageTitle":"Product tour","pagePath":"/product","consentedVisitors":330,"sessions":760},{"pageTitle":"Blog","pagePath":"/blog","consentedVisitors":280,"sessions":610}],"locations":{"countries":[{"countryCode":"TR","consentedVisitors":1010,"sessions":2310},{"countryCode":"US","consentedVisitors":460,"sessions":1050},{"countryCode":"DE","consentedVisitors":220,"sessions":504},{"countryCode":"GB","consentedVisitors":150,"sessions":336}],"cities":[{"countryCode":"TR","city":"Istanbul","consentedVisitors":610,"sessions":1390},{"countryCode":"TR","city":"Ankara","consentedVisitors":240,"sessions":550},{"countryCode":"US","city":"New York","consentedVisitors":190,"sessions":430},{"countryCode":"DE","city":"Berlin","consentedVisitors":120,"sessions":270}]}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/overview","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}},"400":{"description":"Invalid query, body or path parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"tenant-required":{"summary":"The tenantId query parameter is missing","value":{"success":false,"error":{"code":"tenant-required","message":"tenant-required"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/overview","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"validation-error":{"summary":"A parameter has an unsupported value","value":{"success":false,"error":{"code":"validation-error","message":"Validation failed for 'timeframe': timeframe must be one of: today, yesterday, last7days, last30days, custom","details":{"field":"timeframe","message":"timeframe must be one of: today, yesterday, last7days, last30days, custom"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/overview","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"401":{"description":"Missing, unknown, expired or revoked bearer credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"bearer-required":{"summary":"The Authorization header carries no Bearer credential","value":{"success":false,"error":{"code":"bearer-required","message":"bearer-required"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/overview","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"invalid-credential":{"summary":"The API key or access token is not recognized","value":{"success":false,"error":{"code":"invalid-credential","message":"invalid-credential"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/overview","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"credential-revoked":{"summary":"The API key was revoked or the connected app was disconnected","value":{"success":false,"error":{"code":"credential-revoked","message":"credential-revoked"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/overview","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"credential-expired":{"summary":"The API key or access token has expired","value":{"success":false,"error":{"code":"credential-expired","message":"credential-expired"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/overview","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"403":{"description":"The credential may not read the requested tenant or source","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"tenant-not-granted":{"summary":"The credential has no access to the requested tenant","value":{"success":false,"error":{"code":"tenant-not-granted","message":"tenant-not-granted","details":{"tenantId":"2f1c7c3e-6c1a-4f1e-9b7a-2d8e4c1a9f10"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/overview","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"source-does-not-belong-to-tenant":{"summary":"The requested source belongs to a different tenant","value":{"success":false,"error":{"code":"source-does-not-belong-to-tenant","message":"source-does-not-belong-to-tenant"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/overview","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"insufficient-scope":{"summary":"The credential lacks the scope that report access requires","value":{"success":false,"error":{"code":"insufficient-scope","message":"insufficient-scope","details":{"required":"reports:read"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/overview","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"404":{"description":"The tenant, source, funnel or event was not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"tenant-not-found":{"summary":"The granted tenant no longer exists","value":{"success":false,"error":{"code":"tenant-not-found","message":"tenant-not-found","details":{"tenantId":"2f1c7c3e-6c1a-4f1e-9b7a-2d8e4c1a9f10"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/overview","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"source-not-found":{"summary":"The source does not exist","value":{"success":false,"error":{"code":"source-not-found","message":"source-not-found","details":{"sourceId":"7b0e5a54-1d43-4c8e-8d2f-5a9c3e6b1f27"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/overview","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"429":{"description":"Rate limit exceeded; retry after the Retry-After header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"rate-limited":{"summary":"The credential exceeded its request rate","value":{"success":false,"error":{"code":"rate-limited","message":"rate-limited","details":{"retryAfterSeconds":30}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/overview","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}}},"summary":"Overview","description":"Return visitor, session and page-view totals, bounce and consent rates, top pages, referrers, locations, and a time series.","tags":["Overview"]}},"/v1/reports/realtime":{"get":{"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"query","name":"tenantId","required":true,"description":"UUID of the tenant to report on. Send it exactly once. `GET /v1/workspace/access` lists the tenants this credential can read."},{"schema":{"type":"string","format":"uuid"},"in":"query","name":"sourceId","required":false,"description":"UUID of one source of the tenant. Omit it to include every source of the tenant."},{"schema":{"minimum":1,"maximum":60,"anyOf":[{"format":"numeric","type":"string"},{"minimum":1,"maximum":60,"type":"number"}]},"in":"query","name":"windowMinutes","required":false,"description":"Length of the trailing window that ends now, in minutes, 1 to 60. Defaults to 30."}],"operationId":"getReportsRealtime","responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","required":["success","data","timestamp","path","requestId"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/RealtimeReportResponse"},"timestamp":{"type":"string","format":"date-time"},"path":{"type":"string"},"requestId":{"type":"string"}}},"example":{"success":true,"data":{"windowMinutes":5,"consentedVisitors":18,"sessions":42,"events":236},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/realtime","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}},"400":{"description":"Invalid query, body or path parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"tenant-required":{"summary":"The tenantId query parameter is missing","value":{"success":false,"error":{"code":"tenant-required","message":"tenant-required"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/realtime","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"validation-error":{"summary":"A parameter is outside its allowed range","value":{"success":false,"error":{"code":"validation-error","message":"Validation failed: Expected number to be greater or equal to 1","details":{"field":"","message":"Expected number to be greater or equal to 1"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/realtime","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"401":{"description":"Missing, unknown, expired or revoked bearer credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"bearer-required":{"summary":"The Authorization header carries no Bearer credential","value":{"success":false,"error":{"code":"bearer-required","message":"bearer-required"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/realtime","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"invalid-credential":{"summary":"The API key or access token is not recognized","value":{"success":false,"error":{"code":"invalid-credential","message":"invalid-credential"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/realtime","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"credential-revoked":{"summary":"The API key was revoked or the connected app was disconnected","value":{"success":false,"error":{"code":"credential-revoked","message":"credential-revoked"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/realtime","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"credential-expired":{"summary":"The API key or access token has expired","value":{"success":false,"error":{"code":"credential-expired","message":"credential-expired"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/realtime","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"403":{"description":"The credential may not read the requested tenant or source","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"tenant-not-granted":{"summary":"The credential has no access to the requested tenant","value":{"success":false,"error":{"code":"tenant-not-granted","message":"tenant-not-granted","details":{"tenantId":"2f1c7c3e-6c1a-4f1e-9b7a-2d8e4c1a9f10"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/realtime","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"source-does-not-belong-to-tenant":{"summary":"The requested source belongs to a different tenant","value":{"success":false,"error":{"code":"source-does-not-belong-to-tenant","message":"source-does-not-belong-to-tenant"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/realtime","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"insufficient-scope":{"summary":"The credential lacks the scope that report access requires","value":{"success":false,"error":{"code":"insufficient-scope","message":"insufficient-scope","details":{"required":"reports:read"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/realtime","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"404":{"description":"The tenant, source, funnel or event was not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"tenant-not-found":{"summary":"The granted tenant no longer exists","value":{"success":false,"error":{"code":"tenant-not-found","message":"tenant-not-found","details":{"tenantId":"2f1c7c3e-6c1a-4f1e-9b7a-2d8e4c1a9f10"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/realtime","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"source-not-found":{"summary":"The source does not exist","value":{"success":false,"error":{"code":"source-not-found","message":"source-not-found","details":{"sourceId":"7b0e5a54-1d43-4c8e-8d2f-5a9c3e6b1f27"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/realtime","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"429":{"description":"Rate limit exceeded; retry after the Retry-After header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"rate-limited":{"summary":"The credential exceeded its request rate","value":{"success":false,"error":{"code":"rate-limited","message":"rate-limited","details":{"retryAfterSeconds":30}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/realtime","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}}},"summary":"Realtime","description":"Return visitors active in the last few minutes.","tags":["Overview"]}},"/v1/reports/pages/metrics":{"get":{"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"query","name":"tenantId","required":true,"description":"UUID of the tenant to report on. Send it exactly once. `GET /v1/workspace/access` lists the tenants this credential can read."},{"schema":{"type":"string","format":"uuid"},"in":"query","name":"sourceId","required":false,"description":"UUID of one source of the tenant. Omit it to include every source of the tenant."},{"schema":{"anyOf":[{"enum":["today"],"type":"string"},{"enum":["yesterday"],"type":"string"},{"enum":["last7days"],"type":"string"},{"enum":["last30days"],"type":"string"},{"enum":["custom"],"type":"string"}]},"in":"query","name":"timeframe","required":false,"description":"Reporting period. The presets `today`, `yesterday`, `last7days` and `last30days` cover whole calendar days ending today in the request `timezone`; `last7days` is today and the six days before it. Use `custom` together with `startDate` and `endDate`. Defaults to `today`."},{"schema":{"type":"string","minLength":10,"maxLength":10,"pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"in":"query","name":"startDate","required":false,"description":"First day of a custom period, `YYYY-MM-DD`, inclusive. Send it only with `timeframe=custom`, together with `endDate`."},{"schema":{"type":"string","minLength":10,"maxLength":10,"pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"in":"query","name":"endDate","required":false,"description":"Last day of a custom period, `YYYY-MM-DD`, inclusive. Send it only with `timeframe=custom`; it must not be before `startDate`."},{"schema":{"type":"string","minLength":1,"maxLength":100},"in":"query","name":"timezone","required":false,"description":"IANA time zone name such as `Europe/Istanbul` or `America/New_York`. It sets the calendar-day boundaries of the period and of the time buckets. Defaults to `Europe/Istanbul`."}],"operationId":"getReportsPagesMetrics","responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","required":["success","data","timestamp","path","requestId"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/PagesMetricsResponse"},"timestamp":{"type":"string","format":"date-time"},"path":{"type":"string"},"requestId":{"type":"string"}}},"example":{"success":true,"data":{"range":{"startDate":"2026-10-01","endDate":"2026-10-07","timezone":"Europe/Istanbul"},"previousRange":{"startDate":"2026-09-24","endDate":"2026-09-30","timezone":"Europe/Istanbul"},"metrics":{"consentedVisitors":{"current":1840,"previous":1600,"changePct":15},"sessions":{"current":4200,"previous":3750,"changePct":12},"pageViews":{"current":9660,"previous":8250,"changePct":17.09},"pagesPerSession":{"current":2.3,"previous":2.2,"changePct":4.55},"bounceRate":{"current":0.42,"previous":0.45,"changePct":-6.67},"scrollDepth":{"current":0.58,"previous":0.55,"changePct":5.45}}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/pages/metrics","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}},"400":{"description":"Invalid query, body or path parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"tenant-required":{"summary":"The tenantId query parameter is missing","value":{"success":false,"error":{"code":"tenant-required","message":"tenant-required"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/pages/metrics","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"validation-error":{"summary":"A parameter has an unsupported value","value":{"success":false,"error":{"code":"validation-error","message":"Validation failed for 'timeframe': timeframe must be one of: today, yesterday, last7days, last30days, custom","details":{"field":"timeframe","message":"timeframe must be one of: today, yesterday, last7days, last30days, custom"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/pages/metrics","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"401":{"description":"Missing, unknown, expired or revoked bearer credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"bearer-required":{"summary":"The Authorization header carries no Bearer credential","value":{"success":false,"error":{"code":"bearer-required","message":"bearer-required"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/pages/metrics","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"invalid-credential":{"summary":"The API key or access token is not recognized","value":{"success":false,"error":{"code":"invalid-credential","message":"invalid-credential"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/pages/metrics","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"credential-revoked":{"summary":"The API key was revoked or the connected app was disconnected","value":{"success":false,"error":{"code":"credential-revoked","message":"credential-revoked"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/pages/metrics","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"credential-expired":{"summary":"The API key or access token has expired","value":{"success":false,"error":{"code":"credential-expired","message":"credential-expired"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/pages/metrics","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"403":{"description":"The credential may not read the requested tenant or source","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"tenant-not-granted":{"summary":"The credential has no access to the requested tenant","value":{"success":false,"error":{"code":"tenant-not-granted","message":"tenant-not-granted","details":{"tenantId":"2f1c7c3e-6c1a-4f1e-9b7a-2d8e4c1a9f10"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/pages/metrics","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"source-does-not-belong-to-tenant":{"summary":"The requested source belongs to a different tenant","value":{"success":false,"error":{"code":"source-does-not-belong-to-tenant","message":"source-does-not-belong-to-tenant"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/pages/metrics","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"insufficient-scope":{"summary":"The credential lacks the scope that report access requires","value":{"success":false,"error":{"code":"insufficient-scope","message":"insufficient-scope","details":{"required":"reports:read"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/pages/metrics","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"404":{"description":"The tenant, source, funnel or event was not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"tenant-not-found":{"summary":"The granted tenant no longer exists","value":{"success":false,"error":{"code":"tenant-not-found","message":"tenant-not-found","details":{"tenantId":"2f1c7c3e-6c1a-4f1e-9b7a-2d8e4c1a9f10"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/pages/metrics","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"source-not-found":{"summary":"The source does not exist","value":{"success":false,"error":{"code":"source-not-found","message":"source-not-found","details":{"sourceId":"7b0e5a54-1d43-4c8e-8d2f-5a9c3e6b1f27"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/pages/metrics","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"429":{"description":"Rate limit exceeded; retry after the Retry-After header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"rate-limited":{"summary":"The credential exceeded its request rate","value":{"success":false,"error":{"code":"rate-limited","message":"rate-limited","details":{"retryAfterSeconds":30}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/pages/metrics","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}}},"summary":"Page Metrics","description":"Return page metrics with a comparison against the previous period.","tags":["Pages"]}},"/v1/reports/pages/entry-exit":{"get":{"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"query","name":"tenantId","required":true,"description":"UUID of the tenant to report on. Send it exactly once. `GET /v1/workspace/access` lists the tenants this credential can read."},{"schema":{"type":"string","format":"uuid"},"in":"query","name":"sourceId","required":false,"description":"UUID of one source of the tenant. Omit it to include every source of the tenant."},{"schema":{"anyOf":[{"enum":["today"],"type":"string"},{"enum":["yesterday"],"type":"string"},{"enum":["last7days"],"type":"string"},{"enum":["last30days"],"type":"string"},{"enum":["custom"],"type":"string"}]},"in":"query","name":"timeframe","required":false,"description":"Reporting period. The presets `today`, `yesterday`, `last7days` and `last30days` cover whole calendar days ending today in the request `timezone`; `last7days` is today and the six days before it. Use `custom` together with `startDate` and `endDate`. Defaults to `today`."},{"schema":{"type":"string","minLength":10,"maxLength":10,"pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"in":"query","name":"startDate","required":false,"description":"First day of a custom period, `YYYY-MM-DD`, inclusive. Send it only with `timeframe=custom`, together with `endDate`."},{"schema":{"type":"string","minLength":10,"maxLength":10,"pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"in":"query","name":"endDate","required":false,"description":"Last day of a custom period, `YYYY-MM-DD`, inclusive. Send it only with `timeframe=custom`; it must not be before `startDate`."},{"schema":{"type":"string","minLength":1,"maxLength":100},"in":"query","name":"timezone","required":false,"description":"IANA time zone name such as `Europe/Istanbul` or `America/New_York`. It sets the calendar-day boundaries of the period and of the time buckets. Defaults to `Europe/Istanbul`."},{"schema":{"minimum":1,"maximum":50,"multipleOf":1,"default":5,"anyOf":[{"format":"numeric","type":"string"},{"minimum":1,"maximum":50,"multipleOf":1,"default":5,"type":"number"}]},"in":"query","name":"limit","required":false,"description":"Number of entry pages and of exit pages to return, 1 to 50. Defaults to 5."}],"operationId":"getReportsPagesEntryExit","responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","required":["success","data","timestamp","path","requestId"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/PagesEntryExitResponse"},"timestamp":{"type":"string","format":"date-time"},"path":{"type":"string"},"requestId":{"type":"string"}}},"example":{"success":true,"data":{"range":{"startDate":"2026-10-01","endDate":"2026-10-07","timezone":"Europe/Istanbul"},"entryPages":[{"pagePath":"/","sessions":1890,"share":0.45},{"pagePath":"/pricing","sessions":630,"share":0.15},{"pagePath":"/blog","sessions":546,"share":0.13},{"pagePath":"/product","sessions":420,"share":0.1}],"exitPages":[{"pagePath":"/pricing","sessions":1050,"share":0.25},{"pagePath":"/","sessions":924,"share":0.22},{"pagePath":"/blog","sessions":630,"share":0.15},{"pagePath":"/product","sessions":504,"share":0.12}]},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/pages/entry-exit","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}},"400":{"description":"Invalid query, body or path parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"tenant-required":{"summary":"The tenantId query parameter is missing","value":{"success":false,"error":{"code":"tenant-required","message":"tenant-required"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/pages/entry-exit","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"validation-error":{"summary":"A parameter has an unsupported value","value":{"success":false,"error":{"code":"validation-error","message":"Validation failed for 'timeframe': timeframe must be one of: today, yesterday, last7days, last30days, custom","details":{"field":"timeframe","message":"timeframe must be one of: today, yesterday, last7days, last30days, custom"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/pages/entry-exit","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"401":{"description":"Missing, unknown, expired or revoked bearer credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"bearer-required":{"summary":"The Authorization header carries no Bearer credential","value":{"success":false,"error":{"code":"bearer-required","message":"bearer-required"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/pages/entry-exit","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"invalid-credential":{"summary":"The API key or access token is not recognized","value":{"success":false,"error":{"code":"invalid-credential","message":"invalid-credential"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/pages/entry-exit","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"credential-revoked":{"summary":"The API key was revoked or the connected app was disconnected","value":{"success":false,"error":{"code":"credential-revoked","message":"credential-revoked"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/pages/entry-exit","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"credential-expired":{"summary":"The API key or access token has expired","value":{"success":false,"error":{"code":"credential-expired","message":"credential-expired"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/pages/entry-exit","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"403":{"description":"The credential may not read the requested tenant or source","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"tenant-not-granted":{"summary":"The credential has no access to the requested tenant","value":{"success":false,"error":{"code":"tenant-not-granted","message":"tenant-not-granted","details":{"tenantId":"2f1c7c3e-6c1a-4f1e-9b7a-2d8e4c1a9f10"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/pages/entry-exit","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"source-does-not-belong-to-tenant":{"summary":"The requested source belongs to a different tenant","value":{"success":false,"error":{"code":"source-does-not-belong-to-tenant","message":"source-does-not-belong-to-tenant"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/pages/entry-exit","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"insufficient-scope":{"summary":"The credential lacks the scope that report access requires","value":{"success":false,"error":{"code":"insufficient-scope","message":"insufficient-scope","details":{"required":"reports:read"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/pages/entry-exit","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"404":{"description":"The tenant, source, funnel or event was not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"tenant-not-found":{"summary":"The granted tenant no longer exists","value":{"success":false,"error":{"code":"tenant-not-found","message":"tenant-not-found","details":{"tenantId":"2f1c7c3e-6c1a-4f1e-9b7a-2d8e4c1a9f10"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/pages/entry-exit","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"source-not-found":{"summary":"The source does not exist","value":{"success":false,"error":{"code":"source-not-found","message":"source-not-found","details":{"sourceId":"7b0e5a54-1d43-4c8e-8d2f-5a9c3e6b1f27"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/pages/entry-exit","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"429":{"description":"Rate limit exceeded; retry after the Retry-After header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"rate-limited":{"summary":"The credential exceeded its request rate","value":{"success":false,"error":{"code":"rate-limited","message":"rate-limited","details":{"retryAfterSeconds":30}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/pages/entry-exit","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}}},"summary":"Entry & Exit Pages","description":"Return the top pages where visits start and end.","tags":["Pages"]}},"/v1/reports/pages/top":{"get":{"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"query","name":"tenantId","required":true,"description":"UUID of the tenant to report on. Send it exactly once. `GET /v1/workspace/access` lists the tenants this credential can read."},{"schema":{"type":"string","format":"uuid"},"in":"query","name":"sourceId","required":false,"description":"UUID of one source of the tenant. Omit it to include every source of the tenant."},{"schema":{"anyOf":[{"enum":["today"],"type":"string"},{"enum":["yesterday"],"type":"string"},{"enum":["last7days"],"type":"string"},{"enum":["last30days"],"type":"string"},{"enum":["custom"],"type":"string"}]},"in":"query","name":"timeframe","required":false,"description":"Reporting period. The presets `today`, `yesterday`, `last7days` and `last30days` cover whole calendar days ending today in the request `timezone`; `last7days` is today and the six days before it. Use `custom` together with `startDate` and `endDate`. Defaults to `today`."},{"schema":{"type":"string","minLength":10,"maxLength":10,"pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"in":"query","name":"startDate","required":false,"description":"First day of a custom period, `YYYY-MM-DD`, inclusive. Send it only with `timeframe=custom`, together with `endDate`."},{"schema":{"type":"string","minLength":10,"maxLength":10,"pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"in":"query","name":"endDate","required":false,"description":"Last day of a custom period, `YYYY-MM-DD`, inclusive. Send it only with `timeframe=custom`; it must not be before `startDate`."},{"schema":{"type":"string","minLength":1,"maxLength":100},"in":"query","name":"timezone","required":false,"description":"IANA time zone name such as `Europe/Istanbul` or `America/New_York`. It sets the calendar-day boundaries of the period and of the time buckets. Defaults to `Europe/Istanbul`."},{"schema":{"minimum":1,"maximum":100,"multipleOf":1,"default":30,"anyOf":[{"format":"numeric","type":"string"},{"minimum":1,"maximum":100,"multipleOf":1,"default":30,"type":"number"}]},"in":"query","name":"limit","required":false,"description":"Maximum number of pages to return, 1 to 100. Defaults to 30."},{"schema":{"minimum":0,"maximum":10000,"multipleOf":1,"default":0,"anyOf":[{"format":"numeric","type":"string"},{"minimum":0,"maximum":10000,"multipleOf":1,"default":0,"type":"number"}]},"in":"query","name":"offset","required":false,"description":"Number of pages to skip, 0 to 10000. Defaults to 0."}],"operationId":"getReportsPagesTop","responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","required":["success","data","timestamp","path","requestId"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/PagesTopResponse"},"timestamp":{"type":"string","format":"date-time"},"path":{"type":"string"},"requestId":{"type":"string"}}},"example":{"success":true,"data":{"range":{"startDate":"2026-10-01","endDate":"2026-10-07","timezone":"Europe/Istanbul"},"rows":[{"pagePath":"/","consentedVisitors":820,"sessions":1890,"pagesPerSession":2.6,"bounceRate":0.38,"scrollDepth":0.61},{"pagePath":"/pricing","consentedVisitors":410,"sessions":940,"pagesPerSession":3.1,"bounceRate":0.29,"scrollDepth":0.72},{"pagePath":"/product","consentedVisitors":330,"sessions":760,"pagesPerSession":2.8,"bounceRate":0.35,"scrollDepth":0.66},{"pagePath":"/blog","consentedVisitors":280,"sessions":610,"pagesPerSession":1.7,"bounceRate":0.58,"scrollDepth":0.49}],"attributionRows":[{"pagePath":"/","consentedVisitors":370,"sessions":850,"pagesPerSession":2.6,"bounceRate":0.38,"scrollDepth":0.61,"source":"google","medium":"organic","campaign":""},{"pagePath":"/","consentedVisitors":330,"sessions":760,"pagesPerSession":2.6,"bounceRate":0.38,"scrollDepth":0.61,"source":"direct","medium":"","campaign":""},{"pagePath":"/","consentedVisitors":120,"sessions":280,"pagesPerSession":2.6,"bounceRate":0.38,"scrollDepth":0.61,"source":"google","medium":"cpc","campaign":"brand_search"},{"pagePath":"/pricing","consentedVisitors":166,"sessions":380,"pagesPerSession":3.1,"bounceRate":0.29,"scrollDepth":0.72,"source":"direct","medium":"","campaign":""},{"pagePath":"/pricing","consentedVisitors":122,"sessions":280,"pagesPerSession":3.1,"bounceRate":0.29,"scrollDepth":0.72,"source":"google","medium":"organic","campaign":""},{"pagePath":"/pricing","consentedVisitors":122,"sessions":280,"pagesPerSession":3.1,"bounceRate":0.29,"scrollDepth":0.72,"source":"google","medium":"cpc","campaign":"brand_search"}],"pagination":{"limit":30,"offset":0,"total":4}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/pages/top","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}},"400":{"description":"Invalid query, body or path parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"tenant-required":{"summary":"The tenantId query parameter is missing","value":{"success":false,"error":{"code":"tenant-required","message":"tenant-required"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/pages/top","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"validation-error":{"summary":"A parameter has an unsupported value","value":{"success":false,"error":{"code":"validation-error","message":"Validation failed for 'timeframe': timeframe must be one of: today, yesterday, last7days, last30days, custom","details":{"field":"timeframe","message":"timeframe must be one of: today, yesterday, last7days, last30days, custom"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/pages/top","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"401":{"description":"Missing, unknown, expired or revoked bearer credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"bearer-required":{"summary":"The Authorization header carries no Bearer credential","value":{"success":false,"error":{"code":"bearer-required","message":"bearer-required"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/pages/top","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"invalid-credential":{"summary":"The API key or access token is not recognized","value":{"success":false,"error":{"code":"invalid-credential","message":"invalid-credential"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/pages/top","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"credential-revoked":{"summary":"The API key was revoked or the connected app was disconnected","value":{"success":false,"error":{"code":"credential-revoked","message":"credential-revoked"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/pages/top","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"credential-expired":{"summary":"The API key or access token has expired","value":{"success":false,"error":{"code":"credential-expired","message":"credential-expired"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/pages/top","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"403":{"description":"The credential may not read the requested tenant or source","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"tenant-not-granted":{"summary":"The credential has no access to the requested tenant","value":{"success":false,"error":{"code":"tenant-not-granted","message":"tenant-not-granted","details":{"tenantId":"2f1c7c3e-6c1a-4f1e-9b7a-2d8e4c1a9f10"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/pages/top","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"source-does-not-belong-to-tenant":{"summary":"The requested source belongs to a different tenant","value":{"success":false,"error":{"code":"source-does-not-belong-to-tenant","message":"source-does-not-belong-to-tenant"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/pages/top","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"insufficient-scope":{"summary":"The credential lacks the scope that report access requires","value":{"success":false,"error":{"code":"insufficient-scope","message":"insufficient-scope","details":{"required":"reports:read"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/pages/top","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"404":{"description":"The tenant, source, funnel or event was not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"tenant-not-found":{"summary":"The granted tenant no longer exists","value":{"success":false,"error":{"code":"tenant-not-found","message":"tenant-not-found","details":{"tenantId":"2f1c7c3e-6c1a-4f1e-9b7a-2d8e4c1a9f10"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/pages/top","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"source-not-found":{"summary":"The source does not exist","value":{"success":false,"error":{"code":"source-not-found","message":"source-not-found","details":{"sourceId":"7b0e5a54-1d43-4c8e-8d2f-5a9c3e6b1f27"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/pages/top","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"429":{"description":"Rate limit exceeded; retry after the Retry-After header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"rate-limited":{"summary":"The credential exceeded its request rate","value":{"success":false,"error":{"code":"rate-limited","message":"rate-limited","details":{"retryAfterSeconds":30}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/pages/top","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}}},"summary":"Top Pages","description":"Return the top pages for the selected reporting period.","tags":["Pages"]}},"/v1/reports/pages/flow":{"get":{"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"query","name":"tenantId","required":true,"description":"UUID of the tenant to report on. Send it exactly once. `GET /v1/workspace/access` lists the tenants this credential can read."},{"schema":{"type":"string","format":"uuid"},"in":"query","name":"sourceId","required":false,"description":"UUID of one source of the tenant. Omit it to include every source of the tenant."},{"schema":{"anyOf":[{"enum":["today"],"type":"string"},{"enum":["yesterday"],"type":"string"},{"enum":["last7days"],"type":"string"},{"enum":["last30days"],"type":"string"},{"enum":["custom"],"type":"string"}]},"in":"query","name":"timeframe","required":false,"description":"Reporting period. The presets `today`, `yesterday`, `last7days` and `last30days` cover whole calendar days ending today in the request `timezone`; `last7days` is today and the six days before it. Use `custom` together with `startDate` and `endDate`. Defaults to `today`."},{"schema":{"type":"string","minLength":10,"maxLength":10,"pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"in":"query","name":"startDate","required":false,"description":"First day of a custom period, `YYYY-MM-DD`, inclusive. Send it only with `timeframe=custom`, together with `endDate`."},{"schema":{"type":"string","minLength":10,"maxLength":10,"pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"in":"query","name":"endDate","required":false,"description":"Last day of a custom period, `YYYY-MM-DD`, inclusive. Send it only with `timeframe=custom`; it must not be before `startDate`."},{"schema":{"type":"string","minLength":1,"maxLength":100},"in":"query","name":"timezone","required":false,"description":"IANA time zone name such as `Europe/Istanbul` or `America/New_York`. It sets the calendar-day boundaries of the period and of the time buckets. Defaults to `Europe/Istanbul`."},{"schema":{"minimum":1,"maximum":500,"multipleOf":1,"default":200,"anyOf":[{"format":"numeric","type":"string"},{"minimum":1,"maximum":500,"multipleOf":1,"default":200,"type":"number"}]},"in":"query","name":"limit","required":false,"description":"Maximum number of edges kept per step, 1 to 500. Defaults to 200. Used only with `destinationPath`."},{"schema":{"type":"string","minLength":1,"maxLength":2048},"in":"query","name":"destinationPath","required":false,"description":"Page path whose incoming navigation is traced, for example `/pricing`. Omit it to receive only `destinationPaths`, the pages you can choose from."},{"schema":{"minimum":2,"maximum":5,"multipleOf":1,"anyOf":[{"format":"numeric","type":"string"},{"minimum":2,"maximum":5,"multipleOf":1,"type":"number"}]},"in":"query","name":"steps","required":false,"description":"Number of pages to trace back, counting the destination, 2 to 5. Defaults to 2. Used only with `destinationPath`."},{"schema":{"type":"string","minLength":1,"maxLength":255},"in":"query","name":"filterSource","required":false,"description":"Keeps only sessions whose source contains this text, case-insensitively. Limits the edges, `totalSessions` and `destinationPaths`. The `filterSource`, `filterMedium`, `filterCampaign` and `filterChannel` filters combine with AND."},{"schema":{"type":"string","minLength":1,"maxLength":255},"in":"query","name":"filterMedium","required":false,"description":"Keeps only sessions whose medium contains this text, case-insensitively. Limits the edges, `totalSessions` and `destinationPaths`. The `filterSource`, `filterMedium`, `filterCampaign` and `filterChannel` filters combine with AND."},{"schema":{"type":"string","minLength":1,"maxLength":255},"in":"query","name":"filterCampaign","required":false,"description":"Keeps only sessions whose campaign contains this text, case-insensitively. Limits the edges, `totalSessions` and `destinationPaths`. The `filterSource`, `filterMedium`, `filterCampaign` and `filterChannel` filters combine with AND."},{"schema":{"type":"string","minLength":1,"maxLength":255},"in":"query","name":"filterChannel","required":false,"description":"Keeps only sessions whose channel contains this text, case-insensitively. Limits the edges, `totalSessions` and `destinationPaths`. The `filterSource`, `filterMedium`, `filterCampaign` and `filterChannel` filters combine with AND."}],"operationId":"getReportsPagesFlow","responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","required":["success","data","timestamp","path","requestId"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/PagesFlowResponse"},"timestamp":{"type":"string","format":"date-time"},"path":{"type":"string"},"requestId":{"type":"string"}}},"example":{"success":true,"data":{"range":{"startDate":"2026-10-01","endDate":"2026-10-07","timezone":"Europe/Istanbul"},"destinationPath":"/pricing","steps":2,"totalSessions":940,"edges":[{"step":1,"from":"/","to":"/product","sessions":310},{"step":1,"from":"/blog","to":"/product","sessions":120},{"step":2,"from":"/","to":"/pricing","sessions":510},{"step":2,"from":"/product","to":"/pricing","sessions":430}],"destinationPaths":["/","/pricing","/product","/blog"]},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/pages/flow","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}},"400":{"description":"Invalid query, body or path parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"tenant-required":{"summary":"The tenantId query parameter is missing","value":{"success":false,"error":{"code":"tenant-required","message":"tenant-required"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/pages/flow","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"validation-error":{"summary":"A parameter has an unsupported value","value":{"success":false,"error":{"code":"validation-error","message":"Validation failed for 'timeframe': timeframe must be one of: today, yesterday, last7days, last30days, custom","details":{"field":"timeframe","message":"timeframe must be one of: today, yesterday, last7days, last30days, custom"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/pages/flow","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"401":{"description":"Missing, unknown, expired or revoked bearer credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"bearer-required":{"summary":"The Authorization header carries no Bearer credential","value":{"success":false,"error":{"code":"bearer-required","message":"bearer-required"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/pages/flow","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"invalid-credential":{"summary":"The API key or access token is not recognized","value":{"success":false,"error":{"code":"invalid-credential","message":"invalid-credential"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/pages/flow","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"credential-revoked":{"summary":"The API key was revoked or the connected app was disconnected","value":{"success":false,"error":{"code":"credential-revoked","message":"credential-revoked"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/pages/flow","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"credential-expired":{"summary":"The API key or access token has expired","value":{"success":false,"error":{"code":"credential-expired","message":"credential-expired"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/pages/flow","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"403":{"description":"The credential may not read the requested tenant or source","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"tenant-not-granted":{"summary":"The credential has no access to the requested tenant","value":{"success":false,"error":{"code":"tenant-not-granted","message":"tenant-not-granted","details":{"tenantId":"2f1c7c3e-6c1a-4f1e-9b7a-2d8e4c1a9f10"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/pages/flow","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"source-does-not-belong-to-tenant":{"summary":"The requested source belongs to a different tenant","value":{"success":false,"error":{"code":"source-does-not-belong-to-tenant","message":"source-does-not-belong-to-tenant"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/pages/flow","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"insufficient-scope":{"summary":"The credential lacks the scope that report access requires","value":{"success":false,"error":{"code":"insufficient-scope","message":"insufficient-scope","details":{"required":"reports:read"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/pages/flow","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"404":{"description":"The tenant, source, funnel or event was not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"tenant-not-found":{"summary":"The granted tenant no longer exists","value":{"success":false,"error":{"code":"tenant-not-found","message":"tenant-not-found","details":{"tenantId":"2f1c7c3e-6c1a-4f1e-9b7a-2d8e4c1a9f10"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/pages/flow","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"source-not-found":{"summary":"The source does not exist","value":{"success":false,"error":{"code":"source-not-found","message":"source-not-found","details":{"sourceId":"7b0e5a54-1d43-4c8e-8d2f-5a9c3e6b1f27"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/pages/flow","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"429":{"description":"Rate limit exceeded; retry after the Retry-After header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"rate-limited":{"summary":"The credential exceeded its request rate","value":{"success":false,"error":{"code":"rate-limited","message":"rate-limited","details":{"retryAfterSeconds":30}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/pages/flow","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}}},"summary":"Page Flow","description":"Return page-to-page navigation flows.","tags":["Pages"]}},"/v1/reports/pages/time-series":{"post":{"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"query","name":"tenantId","required":true,"description":"UUID of the tenant to report on. Send it exactly once. `GET /v1/workspace/access` lists the tenants this credential can read."},{"schema":{"type":"string","format":"uuid"},"in":"query","name":"sourceId","required":false,"description":"UUID of one source of the tenant. Omit it to include every source of the tenant."},{"schema":{"anyOf":[{"enum":["today"],"type":"string"},{"enum":["yesterday"],"type":"string"},{"enum":["last7days"],"type":"string"},{"enum":["last30days"],"type":"string"},{"enum":["custom"],"type":"string"}]},"in":"query","name":"timeframe","required":false,"description":"Reporting period. The presets `today`, `yesterday`, `last7days` and `last30days` cover whole calendar days ending today in the request `timezone`; `last7days` is today and the six days before it. Use `custom` together with `startDate` and `endDate`. Defaults to `today`."},{"schema":{"type":"string","minLength":10,"maxLength":10,"pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"in":"query","name":"startDate","required":false,"description":"First day of a custom period, `YYYY-MM-DD`, inclusive. Send it only with `timeframe=custom`, together with `endDate`."},{"schema":{"type":"string","minLength":10,"maxLength":10,"pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"in":"query","name":"endDate","required":false,"description":"Last day of a custom period, `YYYY-MM-DD`, inclusive. Send it only with `timeframe=custom`; it must not be before `startDate`."},{"schema":{"type":"string","minLength":1,"maxLength":100},"in":"query","name":"timezone","required":false,"description":"IANA time zone name such as `Europe/Istanbul` or `America/New_York`. It sets the calendar-day boundaries of the period and of the time buckets. Defaults to `Europe/Istanbul`."},{"schema":{"anyOf":[{"enum":["minute"],"type":"string"},{"enum":["hour"],"type":"string"},{"enum":["day"],"type":"string"},{"enum":["week"],"type":"string"},{"enum":["month"],"type":"string"}]},"in":"query","name":"interval","required":false,"description":"Bucket size of `series`. Defaults to a size that fits the period: `hour` up to one day, `day` up to 14 days, `week` up to 90 days, otherwise `month`."},{"schema":{"minimum":1,"maximum":500,"anyOf":[{"format":"integer","type":"string"},{"minimum":1,"maximum":500,"type":"integer"}]},"in":"query","name":"pagePathLimit","required":false,"description":"Number of page paths to list in `pagePaths`, 1 to 500, ordered by page views. Defaults to 500. Ignored when the body sends `pagePaths`."},{"schema":{"minimum":0,"maximum":10000,"anyOf":[{"format":"integer","type":"string"},{"minimum":0,"maximum":10000,"type":"integer"}]},"in":"query","name":"pagePathOffset","required":false,"description":"Number of page paths to skip, 0 to 10000. Defaults to 0. Above 0 only the path list is returned and `series` is empty. Ignored when the body sends `pagePaths`."}],"operationId":"postReportsPagesTimeSeries","requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","properties":{"pagePaths":{"maxItems":500,"type":"array","items":{"minLength":1,"maxLength":2048,"type":"string"}}}},"example":{"pagePaths":["/pricing"]}}},"description":"`pagePaths` lists up to 500 page paths to chart. Send an empty object to receive the list of page paths and a series for the five most viewed pages."},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","required":["success","data","timestamp","path","requestId"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/PagesTimeSeriesResponse"},"timestamp":{"type":"string","format":"date-time"},"path":{"type":"string"},"requestId":{"type":"string"}}},"example":{"success":true,"data":{"range":{"startDate":"2026-10-01","endDate":"2026-10-07","timezone":"Europe/Istanbul"},"interval":"day","pagePaths":["/pricing"],"maxSelectablePaths":500,"pagePathPagination":{"limit":1,"offset":0,"hasMore":false},"series":[{"date":"2026-10-01","pagePath":"/pricing","pageViews":130},{"date":"2026-10-02","pagePath":"/pricing","pageViews":150},{"date":"2026-10-03","pagePath":"/pricing","pageViews":160},{"date":"2026-10-04","pagePath":"/pricing","pageViews":150},{"date":"2026-10-05","pagePath":"/pricing","pageViews":165},{"date":"2026-10-06","pagePath":"/pricing","pageViews":165},{"date":"2026-10-07","pagePath":"/pricing","pageViews":130}]},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/pages/time-series","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}},"400":{"description":"Invalid query, body or path parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"tenant-required":{"summary":"The tenantId query parameter is missing","value":{"success":false,"error":{"code":"tenant-required","message":"tenant-required"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/pages/time-series","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"validation-error":{"summary":"A parameter has an unsupported value","value":{"success":false,"error":{"code":"validation-error","message":"Validation failed for 'timeframe': timeframe must be one of: today, yesterday, last7days, last30days, custom","details":{"field":"timeframe","message":"timeframe must be one of: today, yesterday, last7days, last30days, custom"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/pages/time-series","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"401":{"description":"Missing, unknown, expired or revoked bearer credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"bearer-required":{"summary":"The Authorization header carries no Bearer credential","value":{"success":false,"error":{"code":"bearer-required","message":"bearer-required"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/pages/time-series","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"invalid-credential":{"summary":"The API key or access token is not recognized","value":{"success":false,"error":{"code":"invalid-credential","message":"invalid-credential"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/pages/time-series","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"credential-revoked":{"summary":"The API key was revoked or the connected app was disconnected","value":{"success":false,"error":{"code":"credential-revoked","message":"credential-revoked"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/pages/time-series","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"credential-expired":{"summary":"The API key or access token has expired","value":{"success":false,"error":{"code":"credential-expired","message":"credential-expired"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/pages/time-series","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"403":{"description":"The credential may not read the requested tenant or source","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"tenant-not-granted":{"summary":"The credential has no access to the requested tenant","value":{"success":false,"error":{"code":"tenant-not-granted","message":"tenant-not-granted","details":{"tenantId":"2f1c7c3e-6c1a-4f1e-9b7a-2d8e4c1a9f10"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/pages/time-series","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"source-does-not-belong-to-tenant":{"summary":"The requested source belongs to a different tenant","value":{"success":false,"error":{"code":"source-does-not-belong-to-tenant","message":"source-does-not-belong-to-tenant"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/pages/time-series","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"insufficient-scope":{"summary":"The credential lacks the scope that report access requires","value":{"success":false,"error":{"code":"insufficient-scope","message":"insufficient-scope","details":{"required":"reports:read"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/pages/time-series","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"404":{"description":"The tenant, source, funnel or event was not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"tenant-not-found":{"summary":"The granted tenant no longer exists","value":{"success":false,"error":{"code":"tenant-not-found","message":"tenant-not-found","details":{"tenantId":"2f1c7c3e-6c1a-4f1e-9b7a-2d8e4c1a9f10"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/pages/time-series","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"source-not-found":{"summary":"The source does not exist","value":{"success":false,"error":{"code":"source-not-found","message":"source-not-found","details":{"sourceId":"7b0e5a54-1d43-4c8e-8d2f-5a9c3e6b1f27"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/pages/time-series","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"429":{"description":"Rate limit exceeded; retry after the Retry-After header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"rate-limited":{"summary":"The credential exceeded its request rate","value":{"success":false,"error":{"code":"rate-limited","message":"rate-limited","details":{"retryAfterSeconds":30}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/pages/time-series","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}}},"summary":"Page Trends","description":"Return a page-view time series for selected page paths.","tags":["Pages"]}},"/v1/reports/commerce/items/details":{"post":{"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"query","name":"tenantId","required":true,"description":"UUID of the tenant to report on. Send it exactly once. `GET /v1/workspace/access` lists the tenants this credential can read."},{"schema":{"type":"string","format":"uuid"},"in":"query","name":"sourceId","required":false,"description":"UUID of one source of the tenant. Omit it to include every source of the tenant."},{"schema":{"anyOf":[{"enum":["today"],"type":"string"},{"enum":["yesterday"],"type":"string"},{"enum":["last7days"],"type":"string"},{"enum":["last30days"],"type":"string"},{"enum":["custom"],"type":"string"}]},"in":"query","name":"timeframe","required":false,"description":"Reporting period. The presets `today`, `yesterday`, `last7days` and `last30days` cover whole calendar days ending today in the request `timezone`; `last7days` is today and the six days before it. Use `custom` together with `startDate` and `endDate`. Defaults to `today`."},{"schema":{"type":"string"},"in":"query","name":"startDate","required":false,"description":"First day of a custom period, `YYYY-MM-DD`, inclusive. Send it only with `timeframe=custom`, together with `endDate`."},{"schema":{"type":"string"},"in":"query","name":"endDate","required":false,"description":"Last day of a custom period, `YYYY-MM-DD`, inclusive. Send it only with `timeframe=custom`; it must not be before `startDate`."},{"schema":{"type":"string","minLength":1,"maxLength":100},"in":"query","name":"timezone","required":false,"description":"IANA time zone name such as `Europe/Istanbul` or `America/New_York`. It sets the calendar-day boundaries of the period and of the time buckets. Defaults to `Europe/Istanbul`."},{"schema":{"anyOf":[{"enum":["minute"],"type":"string"},{"enum":["hour"],"type":"string"},{"enum":["day"],"type":"string"},{"enum":["week"],"type":"string"},{"enum":["month"],"type":"string"}]},"in":"query","name":"interval","required":false,"description":"Time bucket size: `minute`, `hour`, `day`, `week` or `month`."},{"schema":{"type":"string"},"in":"query","name":"reportingCurrency","required":false,"description":"ISO 4217 currency code, for example `USD`. Amounts are returned in the tenant's reporting currency."}],"operationId":"postReportsCommerceItemsDetails","requestBody":{"required":true,"content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["kind","itemKeys"],"properties":{"kind":{"enum":["attribution"],"type":"string"},"groupBy":{"anyOf":[{"enum":["item_name"],"type":"string"},{"enum":["item_id"],"type":"string"},{"enum":["brand"],"type":"string"},{"enum":["category"],"type":"string"},{"enum":["price"],"type":"string"},{"enum":["quantity"],"type":"string"},{"enum":["coupon"],"type":"string"},{"enum":["discount"],"type":"string"}]},"filterField":{"anyOf":[{"enum":["item_name"],"type":"string"},{"enum":["item_id"],"type":"string"},{"enum":["brand"],"type":"string"},{"enum":["category"],"type":"string"},{"enum":["coupon"],"type":"string"}]},"filterValue":{"minLength":1,"maxLength":255,"type":"string"},"itemKeys":{"minItems":1,"maxItems":50,"uniqueItems":true,"type":"array","items":{"minLength":1,"maxLength":8192,"type":"string"}},"limit":{"minimum":1,"maximum":100,"anyOf":[{"format":"numeric","type":"string"},{"minimum":1,"maximum":100,"type":"number"}]},"offset":{"minimum":0,"maximum":10000,"anyOf":[{"format":"numeric","type":"string"},{"minimum":0,"maximum":10000,"type":"number"}]},"aiFocus":{"type":"boolean"}}},{"additionalProperties":false,"type":"object","required":["kind","groupBy","groupKey"],"properties":{"kind":{"enum":["group-items"],"type":"string"},"groupBy":{"anyOf":[{"enum":["item_name"],"type":"string"},{"enum":["item_id"],"type":"string"},{"enum":["brand"],"type":"string"},{"enum":["category"],"type":"string"},{"enum":["price"],"type":"string"},{"enum":["quantity"],"type":"string"},{"enum":["coupon"],"type":"string"},{"enum":["discount"],"type":"string"}]},"groupKey":{"minLength":1,"maxLength":8192,"type":"string"},"columns":{"minItems":1,"maxItems":13,"uniqueItems":true,"type":"array","items":{"anyOf":[{"enum":["item_name"],"type":"string"},{"enum":["item_id"],"type":"string"},{"enum":["brand"],"type":"string"},{"enum":["category"],"type":"string"},{"enum":["price"],"type":"string"},{"enum":["quantity"],"type":"string"},{"enum":["coupon"],"type":"string"},{"enum":["discount"],"type":"string"},{"enum":["view_item_count"],"type":"string"},{"enum":["add_to_cart_count"],"type":"string"},{"enum":["orders"],"type":"string"},{"enum":["items"],"type":"string"},{"enum":["revenue"],"type":"string"}]}},"filterField":{"anyOf":[{"enum":["item_name"],"type":"string"},{"enum":["item_id"],"type":"string"},{"enum":["brand"],"type":"string"},{"enum":["category"],"type":"string"},{"enum":["coupon"],"type":"string"}]},"filterValue":{"minLength":1,"maxLength":255,"type":"string"},"limit":{"minimum":1,"maximum":500,"anyOf":[{"format":"numeric","type":"string"},{"minimum":1,"maximum":500,"type":"number"}]},"offset":{"minimum":0,"maximum":10000,"anyOf":[{"format":"numeric","type":"string"},{"minimum":0,"maximum":10000,"type":"number"}]},"sortBy":{"anyOf":[{"enum":["item_name"],"type":"string"},{"enum":["item_id"],"type":"string"},{"enum":["brand"],"type":"string"},{"enum":["category"],"type":"string"},{"enum":["price"],"type":"string"},{"enum":["quantity"],"type":"string"},{"enum":["coupon"],"type":"string"},{"enum":["discount"],"type":"string"},{"enum":["view_item_count"],"type":"string"},{"enum":["add_to_cart_count"],"type":"string"},{"enum":["orders"],"type":"string"},{"enum":["items"],"type":"string"},{"enum":["revenue"],"type":"string"}]},"sortDirection":{"anyOf":[{"enum":["asc"],"type":"string"},{"enum":["desc"],"type":"string"}]}}}]},"example":{"kind":"attribution","itemKeys":["[\"SKU-1001\",\"\",\"\",\"\",\"Trail Running Shoes\",\"Northwind\",\"Shoes\",37.5]"],"limit":10,"offset":0}}},"description":"`kind: \"attribution\"` returns the sources, mediums and campaigns behind up to 50 items: send their `itemKey` values from `GET /v1/reports/commerce/items` in `itemKeys`, with the same `groupBy` when that list was grouped. Add `aiFocus: true` to keep only rows from AI assistant sessions; each row then has a `platform`: `ChatGPT`, `Perplexity`, `Gemini`, `Claude`, `Copilot` or `Other AI`. `kind: \"group-items\"` returns the items inside one grouped row: send that row's `itemKey` as `groupKey` with the same `groupBy`. `limit` defaults to 10."},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","required":["success","data","timestamp","path","requestId"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/CommerceItemDetailsResponse"},"meta":{"$ref":"#/components/schemas/CommerceReportMeta"},"timestamp":{"type":"string","format":"date-time"},"path":{"type":"string"},"requestId":{"type":"string"}}},"example":{"success":true,"data":{"kind":"attribution","range":{"startDate":"2026-10-01","endDate":"2026-10-07","timezone":"Europe/Istanbul"},"items":[{"itemKey":"[\"SKU-1001\",\"\",\"\",\"\",\"Trail Running Shoes\",\"Northwind\",\"Shoes\",37.5]","currency":{"reportingCurrency":"USD","status":"available","excludedCount":0},"rows":[{"source":"direct","medium":null,"campaign":null,"view_item_count":960,"add_to_cart_count":120,"orders":24,"items":48,"revenue":1800},{"source":"google","medium":"organic","campaign":null,"view_item_count":840,"add_to_cart_count":105,"orders":21,"items":42,"revenue":1575},{"source":"google","medium":"cpc","campaign":"brand_search","view_item_count":600,"add_to_cart_count":75,"orders":15,"items":30,"revenue":1125}],"pagination":{"limit":10,"offset":0,"total":3}}]},"meta":{"reportSettingsVersion":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/commerce/items/details","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}},"400":{"description":"Invalid query, body or path parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"tenant-required":{"summary":"The tenantId query parameter is missing","value":{"success":false,"error":{"code":"tenant-required","message":"tenant-required"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/commerce/items/details","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"validation-error":{"summary":"A parameter has an unsupported value","value":{"success":false,"error":{"code":"validation-error","message":"Validation failed for 'timeframe': timeframe must be one of: today, yesterday, last7days, last30days, custom","details":{"field":"timeframe","message":"timeframe must be one of: today, yesterday, last7days, last30days, custom"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/commerce/items/details","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"401":{"description":"Missing, unknown, expired or revoked bearer credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"bearer-required":{"summary":"The Authorization header carries no Bearer credential","value":{"success":false,"error":{"code":"bearer-required","message":"bearer-required"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/commerce/items/details","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"invalid-credential":{"summary":"The API key or access token is not recognized","value":{"success":false,"error":{"code":"invalid-credential","message":"invalid-credential"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/commerce/items/details","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"credential-revoked":{"summary":"The API key was revoked or the connected app was disconnected","value":{"success":false,"error":{"code":"credential-revoked","message":"credential-revoked"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/commerce/items/details","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"credential-expired":{"summary":"The API key or access token has expired","value":{"success":false,"error":{"code":"credential-expired","message":"credential-expired"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/commerce/items/details","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"403":{"description":"The credential may not read the requested tenant or source","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"tenant-not-granted":{"summary":"The credential has no access to the requested tenant","value":{"success":false,"error":{"code":"tenant-not-granted","message":"tenant-not-granted","details":{"tenantId":"2f1c7c3e-6c1a-4f1e-9b7a-2d8e4c1a9f10"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/commerce/items/details","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"source-does-not-belong-to-tenant":{"summary":"The requested source belongs to a different tenant","value":{"success":false,"error":{"code":"source-does-not-belong-to-tenant","message":"source-does-not-belong-to-tenant"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/commerce/items/details","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"insufficient-scope":{"summary":"The credential lacks the scope that report access requires","value":{"success":false,"error":{"code":"insufficient-scope","message":"insufficient-scope","details":{"required":"reports:read"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/commerce/items/details","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"404":{"description":"The tenant, source, funnel or event was not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"tenant-not-found":{"summary":"The granted tenant no longer exists","value":{"success":false,"error":{"code":"tenant-not-found","message":"tenant-not-found","details":{"tenantId":"2f1c7c3e-6c1a-4f1e-9b7a-2d8e4c1a9f10"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/commerce/items/details","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"source-not-found":{"summary":"The source does not exist","value":{"success":false,"error":{"code":"source-not-found","message":"source-not-found","details":{"sourceId":"7b0e5a54-1d43-4c8e-8d2f-5a9c3e6b1f27"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/commerce/items/details","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"429":{"description":"Rate limit exceeded; retry after the Retry-After header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"rate-limited":{"summary":"The credential exceeded its request rate","value":{"success":false,"error":{"code":"rate-limited","message":"rate-limited","details":{"retryAfterSeconds":30}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/commerce/items/details","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}}},"summary":"Item Details","description":"Return attribution or grouped details for selected commerce items.","tags":["Commerce"]}},"/v1/reports/events/overview":{"get":{"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"query","name":"tenantId","required":true,"description":"UUID of the tenant to report on. Send it exactly once. `GET /v1/workspace/access` lists the tenants this credential can read."},{"schema":{"type":"string","format":"uuid"},"in":"query","name":"sourceId","required":false,"description":"UUID of one source of the tenant. Omit it to include every source of the tenant."},{"schema":{"anyOf":[{"enum":["today"],"type":"string"},{"enum":["yesterday"],"type":"string"},{"enum":["last7days"],"type":"string"},{"enum":["last30days"],"type":"string"},{"enum":["custom"],"type":"string"}]},"in":"query","name":"timeframe","required":false,"description":"Reporting period. The presets `today`, `yesterday`, `last7days` and `last30days` cover whole calendar days ending today in the request `timezone`; `last7days` is today and the six days before it. Use `custom` together with `startDate` and `endDate`. Defaults to `today`."},{"schema":{"type":"string","minLength":10,"maxLength":10,"pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"in":"query","name":"startDate","required":false,"description":"First day of a custom period, `YYYY-MM-DD`, inclusive. Send it only with `timeframe=custom`, together with `endDate`."},{"schema":{"type":"string","minLength":10,"maxLength":10,"pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"in":"query","name":"endDate","required":false,"description":"Last day of a custom period, `YYYY-MM-DD`, inclusive. Send it only with `timeframe=custom`; it must not be before `startDate`."},{"schema":{"type":"string","minLength":1,"maxLength":100},"in":"query","name":"timezone","required":false,"description":"IANA time zone name such as `Europe/Istanbul` or `America/New_York`. It sets the calendar-day boundaries of the period and of the time buckets. Defaults to `Europe/Istanbul`."},{"schema":{"anyOf":[{"enum":["minute"],"type":"string"},{"enum":["hour"],"type":"string"},{"enum":["day"],"type":"string"},{"enum":["week"],"type":"string"},{"enum":["month"],"type":"string"}]},"in":"query","name":"interval","required":false,"description":"Bucket size of `timeline`. Defaults to a size that fits the period: `hour` up to one day, `day` up to 14 days, `week` up to 90 days, otherwise `month`."},{"schema":{"type":"array","minItems":1,"maxItems":50,"items":{"minLength":1,"maxLength":255,"type":"string"}},"in":"query","name":"metricEventNames","required":false,"description":"Limit the metric cards to these event names, up to 50. Repeat the parameter or separate names with commas. Defaults to all events. The timeline is not affected."},{"schema":{"type":"array","minItems":1,"maxItems":50,"items":{"minLength":1,"maxLength":255,"type":"string"}},"in":"query","name":"timelineEventNames","required":false,"description":"Event names to keep in or remove from `timeline`, up to 50. Requires `timelineOptionMode`."},{"schema":{"anyOf":[{"enum":["include"],"type":"string"},{"enum":["exclude"],"type":"string"}]},"in":"query","name":"timelineOptionMode","required":false,"description":"`include` keeps only `timelineEventNames` in the timeline; `exclude` removes them. Requires `timelineEventNames`."},{"schema":{"type":"array","minItems":1,"maxItems":103,"items":{"minLength":1,"maxLength":255,"type":"string"}},"in":"query","name":"conversionEventNames","required":false,"description":"Event names counted as `keyEvents`. Defaults to the tenant's conversion events."},{"schema":{"anyOf":[{"type":"boolean"},{"enum":["true"],"type":"string"},{"enum":["false"],"type":"string"},{"enum":["1"],"type":"string"},{"enum":["0"],"type":"string"}]},"in":"query","name":"metricsOnly","required":false,"description":"`true` returns only the metric cards and leaves `timeline` and `timelineEventOptions` empty. Defaults to `false`."}],"operationId":"getReportsEventsOverview","responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","required":["success","data","timestamp","path","requestId"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/EventsOverviewResponse"},"timestamp":{"type":"string","format":"date-time"},"path":{"type":"string"},"requestId":{"type":"string"}}},"example":{"success":true,"data":{"range":{"startDate":"2026-10-01","endDate":"2026-10-07","timezone":"Europe/Istanbul"},"previousRange":{"startDate":"2026-09-24","endDate":"2026-09-30","timezone":"Europe/Istanbul"},"interval":"day","metrics":{"totalEvents":{"current":25200,"previous":21750},"keyEvents":{"current":630,"previous":540},"pageViews":{"current":9660,"previous":8250},"eventsPerVisitor":{"current":13.6957,"previous":13.5938},"eventsPerSession":{"current":6,"previous":5.8}},"timeline":[{"timestamp":"2026-10-01 00:00:00","eventName":"page_view","eventCount":1196},{"timestamp":"2026-10-01 00:00:00","eventName":"form_submit","eventCount":26},{"timestamp":"2026-10-02 00:00:00","eventName":"page_view","eventCount":1380},{"timestamp":"2026-10-02 00:00:00","eventName":"form_submit","eventCount":30},{"timestamp":"2026-10-03 00:00:00","eventName":"page_view","eventCount":1472},{"timestamp":"2026-10-03 00:00:00","eventName":"form_submit","eventCount":32},{"timestamp":"2026-10-04 00:00:00","eventName":"page_view","eventCount":1380},{"timestamp":"2026-10-04 00:00:00","eventName":"form_submit","eventCount":30},{"timestamp":"2026-10-05 00:00:00","eventName":"page_view","eventCount":1518},{"timestamp":"2026-10-05 00:00:00","eventName":"form_submit","eventCount":33},{"timestamp":"2026-10-06 00:00:00","eventName":"page_view","eventCount":1518},{"timestamp":"2026-10-06 00:00:00","eventName":"form_submit","eventCount":33},{"timestamp":"2026-10-07 00:00:00","eventName":"page_view","eventCount":1196},{"timestamp":"2026-10-07 00:00:00","eventName":"form_submit","eventCount":26}],"timelineEventOptions":[{"eventName":"page_view","eventLabel":"page_view","eventCount":9660},{"eventName":"form_submit","eventLabel":"form_submit","eventCount":210}]},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/events/overview","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}},"400":{"description":"Invalid query, body or path parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"tenant-required":{"summary":"The tenantId query parameter is missing","value":{"success":false,"error":{"code":"tenant-required","message":"tenant-required"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/events/overview","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"validation-error":{"summary":"A parameter has an unsupported value","value":{"success":false,"error":{"code":"validation-error","message":"Validation failed for 'timeframe': timeframe must be one of: today, yesterday, last7days, last30days, custom","details":{"field":"timeframe","message":"timeframe must be one of: today, yesterday, last7days, last30days, custom"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/events/overview","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"401":{"description":"Missing, unknown, expired or revoked bearer credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"bearer-required":{"summary":"The Authorization header carries no Bearer credential","value":{"success":false,"error":{"code":"bearer-required","message":"bearer-required"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/events/overview","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"invalid-credential":{"summary":"The API key or access token is not recognized","value":{"success":false,"error":{"code":"invalid-credential","message":"invalid-credential"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/events/overview","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"credential-revoked":{"summary":"The API key was revoked or the connected app was disconnected","value":{"success":false,"error":{"code":"credential-revoked","message":"credential-revoked"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/events/overview","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"credential-expired":{"summary":"The API key or access token has expired","value":{"success":false,"error":{"code":"credential-expired","message":"credential-expired"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/events/overview","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"403":{"description":"The credential may not read the requested tenant or source","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"tenant-not-granted":{"summary":"The credential has no access to the requested tenant","value":{"success":false,"error":{"code":"tenant-not-granted","message":"tenant-not-granted","details":{"tenantId":"2f1c7c3e-6c1a-4f1e-9b7a-2d8e4c1a9f10"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/events/overview","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"source-does-not-belong-to-tenant":{"summary":"The requested source belongs to a different tenant","value":{"success":false,"error":{"code":"source-does-not-belong-to-tenant","message":"source-does-not-belong-to-tenant"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/events/overview","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"insufficient-scope":{"summary":"The credential lacks the scope that report access requires","value":{"success":false,"error":{"code":"insufficient-scope","message":"insufficient-scope","details":{"required":"reports:read"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/events/overview","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"404":{"description":"The tenant, source, funnel or event was not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"tenant-not-found":{"summary":"The granted tenant no longer exists","value":{"success":false,"error":{"code":"tenant-not-found","message":"tenant-not-found","details":{"tenantId":"2f1c7c3e-6c1a-4f1e-9b7a-2d8e4c1a9f10"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/events/overview","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"source-not-found":{"summary":"The source does not exist","value":{"success":false,"error":{"code":"source-not-found","message":"source-not-found","details":{"sourceId":"7b0e5a54-1d43-4c8e-8d2f-5a9c3e6b1f27"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/events/overview","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"429":{"description":"Rate limit exceeded; retry after the Retry-After header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"rate-limited":{"summary":"The credential exceeded its request rate","value":{"success":false,"error":{"code":"rate-limited","message":"rate-limited","details":{"retryAfterSeconds":30}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/events/overview","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}}},"summary":"Event Overview","description":"Return event totals, a comparison against the previous period, and a timeline.","tags":["Events"]}},"/v1/reports/events/{eventId}/detail":{"get":{"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"path","name":"eventId","required":true,"description":"UUID of the event, as returned in `eventId` when the event was collected."},{"schema":{"type":"string","format":"uuid"},"in":"query","name":"tenantId","required":true,"description":"UUID of the tenant to report on. Send it exactly once. `GET /v1/workspace/access` lists the tenants this credential can read."},{"schema":{"type":"string","format":"uuid"},"in":"query","name":"sourceId","required":true,"description":"UUID of the source the event was sent to. Required."},{"schema":{"type":"string","format":"date"},"in":"query","name":"date","required":false,"description":"Day the event occurred, `YYYY-MM-DD`. The lookup then covers only this day and the days before and after it, which makes it much faster. Omit it to search the whole retention period."}],"operationId":"getReportsEventsByEventIdDetail","responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","required":["success","data","timestamp","path","requestId"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/EventDetailResponse"},"timestamp":{"type":"string","format":"date-time"},"path":{"type":"string"},"requestId":{"type":"string"}}},"example":{"success":true,"data":{"eventId":"6f1d2c3b-8a4e-4f5d-9c7b-1e2a3b4c5d6e","sourceId":"7b0e5a54-1d43-4c8e-8d2f-5a9c3e6b1f27","eventName":"purchase","occurredAt":"2026-10-01 14:32:05.120","source":"google","medium":"cpc","campaign":"autumn-sale","session":"s_8f3a2b1c","visitorId":"v_4d5e6f7a","userId":"customer-1042","url":"https://shop.example.com/checkout/complete?order=A-9921","pagePath":"/checkout/complete","referrer":"https://shop.example.com/checkout","context":{"hostname":"shop.example.com","browser":"Chrome","operatingSystem":"macOS","device":"desktop","countryCode":"TR","city":"Istanbul"},"eventData":{"transaction_id":"A-9921","value":1249.9,"currency":"TRY","items":[{"item_id":"SKU-1001","item_name":"Running Shoes","price":999.9,"quantity":1},{"item_id":"SKU-2040","item_name":"Sport Socks","price":250,"quantity":1}]}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/events/{eventId}/detail","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}},"400":{"description":"Invalid query, body or path parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"tenant-required":{"summary":"The tenantId query parameter is missing","value":{"success":false,"error":{"code":"tenant-required","message":"tenant-required"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/events/{eventId}/detail","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"validation-error":{"summary":"A parameter is outside its allowed range","value":{"success":false,"error":{"code":"validation-error","message":"Validation failed: Expected number to be greater or equal to 1","details":{"field":"","message":"Expected number to be greater or equal to 1"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/events/{eventId}/detail","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"401":{"description":"Missing, unknown, expired or revoked bearer credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"bearer-required":{"summary":"The Authorization header carries no Bearer credential","value":{"success":false,"error":{"code":"bearer-required","message":"bearer-required"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/events/{eventId}/detail","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"invalid-credential":{"summary":"The API key or access token is not recognized","value":{"success":false,"error":{"code":"invalid-credential","message":"invalid-credential"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/events/{eventId}/detail","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"credential-revoked":{"summary":"The API key was revoked or the connected app was disconnected","value":{"success":false,"error":{"code":"credential-revoked","message":"credential-revoked"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/events/{eventId}/detail","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"credential-expired":{"summary":"The API key or access token has expired","value":{"success":false,"error":{"code":"credential-expired","message":"credential-expired"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/events/{eventId}/detail","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"403":{"description":"The credential may not read the requested tenant or source","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"tenant-not-granted":{"summary":"The credential has no access to the requested tenant","value":{"success":false,"error":{"code":"tenant-not-granted","message":"tenant-not-granted","details":{"tenantId":"2f1c7c3e-6c1a-4f1e-9b7a-2d8e4c1a9f10"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/events/{eventId}/detail","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"source-does-not-belong-to-tenant":{"summary":"The requested source belongs to a different tenant","value":{"success":false,"error":{"code":"source-does-not-belong-to-tenant","message":"source-does-not-belong-to-tenant"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/events/{eventId}/detail","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"insufficient-scope":{"summary":"The credential lacks the scope that report access requires","value":{"success":false,"error":{"code":"insufficient-scope","message":"insufficient-scope","details":{"required":"reports:read"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/events/{eventId}/detail","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"404":{"description":"The tenant, source, funnel or event was not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"tenant-not-found":{"summary":"The granted tenant no longer exists","value":{"success":false,"error":{"code":"tenant-not-found","message":"tenant-not-found","details":{"tenantId":"2f1c7c3e-6c1a-4f1e-9b7a-2d8e4c1a9f10"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/events/{eventId}/detail","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"source-not-found":{"summary":"The source does not exist","value":{"success":false,"error":{"code":"source-not-found","message":"source-not-found","details":{"sourceId":"7b0e5a54-1d43-4c8e-8d2f-5a9c3e6b1f27"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/events/{eventId}/detail","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"event-not-found":{"summary":"No event with this ID exists in the source, or on the days the date hint covers","value":{"success":false,"error":{"code":"event-not-found","message":"event-not-found"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/events/{eventId}/detail","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"429":{"description":"Rate limit exceeded; retry after the Retry-After header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"rate-limited":{"summary":"The credential exceeded its request rate","value":{"success":false,"error":{"code":"rate-limited","message":"rate-limited","details":{"retryAfterSeconds":30}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/events/{eventId}/detail","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}}},"summary":"Event Detail","description":"Return one event by its ID: when and where it happened, its session, visitor and user, and every property it was sent with, including items.","tags":["Events"]}},"/v1/reports/acquisition/event-options":{"get":{"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"query","name":"tenantId","required":true,"description":"UUID of the tenant to report on. Send it exactly once. `GET /v1/workspace/access` lists the tenants this credential can read."},{"schema":{"type":"string","format":"uuid"},"in":"query","name":"sourceId","required":false,"description":"UUID of one source of the tenant. Omit it to include every source of the tenant."},{"schema":{"anyOf":[{"enum":["today"],"type":"string"},{"enum":["yesterday"],"type":"string"},{"enum":["last7days"],"type":"string"},{"enum":["last30days"],"type":"string"},{"enum":["custom"],"type":"string"}]},"in":"query","name":"timeframe","required":false,"description":"Reporting period. The presets `today`, `yesterday`, `last7days` and `last30days` cover whole calendar days ending today in the request `timezone`; `last7days` is today and the six days before it. Use `custom` together with `startDate` and `endDate`. Defaults to `today`."},{"schema":{"type":"string"},"in":"query","name":"startDate","required":false,"description":"First day of a custom period, `YYYY-MM-DD`, inclusive. Send it only with `timeframe=custom`, together with `endDate`."},{"schema":{"type":"string"},"in":"query","name":"endDate","required":false,"description":"Last day of a custom period, `YYYY-MM-DD`, inclusive. Send it only with `timeframe=custom`; it must not be before `startDate`."},{"schema":{"type":"string","minLength":1,"maxLength":100},"in":"query","name":"timezone","required":false,"description":"IANA time zone name such as `Europe/Istanbul` or `America/New_York`. It sets the calendar-day boundaries of the period and of the time buckets. Defaults to `Europe/Istanbul`."},{"schema":{"type":"string"},"in":"query","name":"search","required":false,"description":"Text to look for in event names."},{"schema":{"minimum":1,"maximum":500,"anyOf":[{"format":"numeric","type":"string"},{"minimum":1,"maximum":500,"type":"number"}]},"in":"query","name":"limit","required":false,"description":"Maximum number of event names, 1 to 500."},{"schema":{"minimum":0,"maximum":10000,"anyOf":[{"format":"numeric","type":"string"},{"minimum":0,"maximum":10000,"type":"number"}]},"in":"query","name":"offset","required":false,"description":"Number of event names to skip, 0 to 10000."}],"operationId":"getReportsAcquisitionEventOptions","responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","required":["success","data","timestamp","path","requestId"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/AcquisitionEventOptionsResponse"},"timestamp":{"type":"string","format":"date-time"},"path":{"type":"string"},"requestId":{"type":"string"}}},"example":{"success":true,"data":{"items":[{"eventName":"purchase","eventLabel":"purchase"},{"eventName":"add_to_cart","eventLabel":"add_to_cart"},{"eventName":"form_submit","eventLabel":"form_submit"}]},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/acquisition/event-options","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}},"400":{"description":"Invalid query, body or path parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"tenant-required":{"summary":"The tenantId query parameter is missing","value":{"success":false,"error":{"code":"tenant-required","message":"tenant-required"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/acquisition/event-options","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"validation-error":{"summary":"A parameter has an unsupported value","value":{"success":false,"error":{"code":"validation-error","message":"Validation failed for 'timeframe': timeframe must be one of: today, yesterday, last7days, last30days, custom","details":{"field":"timeframe","message":"timeframe must be one of: today, yesterday, last7days, last30days, custom"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/acquisition/event-options","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"401":{"description":"Missing, unknown, expired or revoked bearer credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"bearer-required":{"summary":"The Authorization header carries no Bearer credential","value":{"success":false,"error":{"code":"bearer-required","message":"bearer-required"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/acquisition/event-options","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"invalid-credential":{"summary":"The API key or access token is not recognized","value":{"success":false,"error":{"code":"invalid-credential","message":"invalid-credential"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/acquisition/event-options","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"credential-revoked":{"summary":"The API key was revoked or the connected app was disconnected","value":{"success":false,"error":{"code":"credential-revoked","message":"credential-revoked"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/acquisition/event-options","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"credential-expired":{"summary":"The API key or access token has expired","value":{"success":false,"error":{"code":"credential-expired","message":"credential-expired"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/acquisition/event-options","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"403":{"description":"The credential may not read the requested tenant or source","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"tenant-not-granted":{"summary":"The credential has no access to the requested tenant","value":{"success":false,"error":{"code":"tenant-not-granted","message":"tenant-not-granted","details":{"tenantId":"2f1c7c3e-6c1a-4f1e-9b7a-2d8e4c1a9f10"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/acquisition/event-options","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"source-does-not-belong-to-tenant":{"summary":"The requested source belongs to a different tenant","value":{"success":false,"error":{"code":"source-does-not-belong-to-tenant","message":"source-does-not-belong-to-tenant"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/acquisition/event-options","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"insufficient-scope":{"summary":"The credential lacks the scope that report access requires","value":{"success":false,"error":{"code":"insufficient-scope","message":"insufficient-scope","details":{"required":"reports:read"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/acquisition/event-options","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"404":{"description":"The tenant, source, funnel or event was not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"tenant-not-found":{"summary":"The granted tenant no longer exists","value":{"success":false,"error":{"code":"tenant-not-found","message":"tenant-not-found","details":{"tenantId":"2f1c7c3e-6c1a-4f1e-9b7a-2d8e4c1a9f10"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/acquisition/event-options","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"source-not-found":{"summary":"The source does not exist","value":{"success":false,"error":{"code":"source-not-found","message":"source-not-found","details":{"sourceId":"7b0e5a54-1d43-4c8e-8d2f-5a9c3e6b1f27"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/acquisition/event-options","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"429":{"description":"Rate limit exceeded; retry after the Retry-After header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"rate-limited":{"summary":"The credential exceeded its request rate","value":{"success":false,"error":{"code":"rate-limited","message":"rate-limited","details":{"retryAfterSeconds":30}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/acquisition/event-options","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}}},"summary":"Metric Events","description":"List event names available as acquisition metrics.","tags":["Acquisition"]}},"/v1/reports/acquisition":{"get":{"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"query","name":"tenantId","required":true,"description":"UUID of the tenant to report on. Send it exactly once. `GET /v1/workspace/access` lists the tenants this credential can read."},{"schema":{"type":"string","format":"uuid"},"in":"query","name":"sourceId","required":false,"description":"UUID of one source of the tenant. Omit it to include every source of the tenant."},{"schema":{"anyOf":[{"enum":["today"],"type":"string"},{"enum":["yesterday"],"type":"string"},{"enum":["last7days"],"type":"string"},{"enum":["last30days"],"type":"string"},{"enum":["custom"],"type":"string"}]},"in":"query","name":"timeframe","required":false,"description":"Reporting period. The presets `today`, `yesterday`, `last7days` and `last30days` cover whole calendar days ending today in the request `timezone`; `last7days` is today and the six days before it. Use `custom` together with `startDate` and `endDate`. Defaults to `today`."},{"schema":{"type":"string"},"in":"query","name":"startDate","required":false,"description":"First day of a custom period, `YYYY-MM-DD`, inclusive. Send it only with `timeframe=custom`, together with `endDate`."},{"schema":{"type":"string"},"in":"query","name":"endDate","required":false,"description":"Last day of a custom period, `YYYY-MM-DD`, inclusive. Send it only with `timeframe=custom`; it must not be before `startDate`."},{"schema":{"type":"string","minLength":1,"maxLength":100},"in":"query","name":"timezone","required":false,"description":"IANA time zone name such as `Europe/Istanbul` or `America/New_York`. It sets the calendar-day boundaries of the period and of the time buckets. Defaults to `Europe/Istanbul`."},{"schema":{"anyOf":[{"enum":["minute"],"type":"string"},{"enum":["hour"],"type":"string"},{"enum":["day"],"type":"string"},{"enum":["week"],"type":"string"},{"enum":["month"],"type":"string"}]},"in":"query","name":"interval","required":false,"description":"Bucket size of `trafficBreakdown`. Defaults to `day`."},{"schema":{"type":"string"},"in":"query","name":"path","required":false,"description":"Page path, for example `/pricing`."},{"schema":{"type":"string"},"in":"query","name":"channel","required":false,"description":"Marketing channel, for example `OrganicSearch`."},{"schema":{"type":"string"},"in":"query","name":"source","required":false,"description":"Traffic source, for example `google`. This is not `sourceId`."},{"schema":{"type":"string"},"in":"query","name":"device","required":false,"description":"Device type, for example `desktop` or `mobile`."},{"schema":{"type":"string"},"in":"query","name":"os","required":false,"description":"Operating system, for example `iOS`."},{"schema":{"type":"string"},"in":"query","name":"country","required":false,"description":"Two-letter country code, for example `TR`."},{"schema":{"type":"string"},"in":"query","name":"city","required":false,"description":"City name, for example `Istanbul`."},{"schema":{"type":"string"},"in":"query","name":"eventName","required":false,"description":"Event name, for example `purchase`."},{"schema":{"type":"string"},"in":"query","name":"reportingCurrency","required":false,"description":"ISO 4217 currency code, for example `USD`. Amounts are returned in the tenant's reporting currency."},{"schema":{"anyOf":[{"enum":["first_touch"],"type":"string"},{"enum":["last_touch"],"type":"string"},{"enum":["last_non_direct_touch"],"type":"string"}]},"in":"query","name":"attributionModel","required":false,"description":"How a conversion is credited to a traffic source: `first_touch` credits the first visit, `last_touch` the last visit and `last_non_direct_touch` the last visit that was not direct. Defaults to the tenant's attribution setting."},{"schema":{"minimum":7,"maximum":30,"anyOf":[{"format":"numeric","type":"string"},{"minimum":7,"maximum":30,"type":"number"}]},"in":"query","name":"attributionWindowDays","required":false,"description":"How many days before a conversion a visit can receive credit: `7`, `14` or `30`. Defaults to the tenant's attribution setting."},{"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"string"}]},"in":"query","name":"conversionEventNames","required":false,"description":"Event names counted as conversions. Repeat the parameter or separate names with commas. Defaults to the tenant's conversion events; when none are configured, conversions and revenue are 0."},{"schema":{"type":"array","maxItems":100,"items":{"maxLength":255,"type":"string"}},"in":"query","name":"eventMetricNames","required":false,"description":"Up to 10 event names to count on each `trafficDistribution` row. The counts are returned in `eventCounts`."},{"schema":{"anyOf":[{"enum":["consented_traffic"],"type":"string"},{"enum":["unconsented_traffic"],"type":"string"},{"enum":["all_traffic"],"type":"string"}]},"in":"query","name":"trafficScope","required":false,"description":"Which sessions to include by consent: `consented_traffic`, `unconsented_traffic` or `all_traffic`. Defaults to the tenant's setting. It can only narrow the tenant's saved scope: when the tenant saves `consented_traffic` or `unconsented_traffic`, that scope is used whatever is requested, and `controls.trafficScope` in the response shows the scope applied."},{"schema":{"anyOf":[{"enum":["channels"],"type":"string"},{"enum":["campaigns"],"type":"string"},{"enum":["source"],"type":"string"},{"enum":["medium"],"type":"string"}]},"in":"query","name":"breakdownMode","required":false,"description":"Dimension of the `trafficBreakdown` series: `channels` or `campaigns`. `source` and `medium` are shorthand for `campaigns` broken down by that field. Defaults to `channels`."},{"schema":{"anyOf":[{"enum":["all"],"type":"string"},{"enum":["source"],"type":"string"},{"enum":["medium"],"type":"string"}]},"in":"query","name":"campaignsBreakdownMode","required":false,"description":"With `breakdownMode=campaigns`, break the series down by `source`, by `medium` or by both with `all`. Defaults to `all`."},{"schema":{"anyOf":[{"enum":["source"],"type":"string"},{"enum":["medium"],"type":"string"},{"enum":["campaign"],"type":"string"},{"enum":["channel"],"type":"string"}]},"in":"query","name":"filterField","required":false,"description":"Column to filter `trafficDistribution` by: `source`, `medium`, `campaign` or `channel`. Requires `filterValue`. Score cards and `trafficBreakdown` are not filtered."},{"schema":{"type":"string","minLength":1,"maxLength":255},"in":"query","name":"filterValue","required":false,"description":"Text to look for in `filterField`. Case-insensitive and matches part of the value. Requires `filterField`."},{"schema":{"anyOf":[{"enum":["none"],"type":"string"},{"enum":["source"],"type":"string"},{"enum":["medium"],"type":"string"},{"enum":["campaign"],"type":"string"},{"enum":["channel"],"type":"string"}]},"in":"query","name":"groupBy","required":false,"description":"Group `trafficDistribution` rows by one dimension. `none` returns one row per combination of source, medium, campaign and channel. Defaults to `none`."},{"schema":{"type":"string"},"in":"query","name":"columns","required":false,"description":"Comma-separated columns to return on each `trafficDistribution` row: `source`, `medium`, `campaign`, `channel`, `sessions`, `conversions`, `conversion_rate`, `bounce_rate`, `revenue`, `revenue_per_conversion`. Defaults to all."},{"schema":{"anyOf":[{"type":"boolean"},{"enum":["true"],"type":"string"},{"enum":["false"],"type":"string"},{"enum":["1"],"type":"string"},{"enum":["0"],"type":"string"}]},"in":"query","name":"aiFocus","required":false,"description":"`true` limits the report to traffic from AI assistants such as ChatGPT, Perplexity, Gemini, Claude and Copilot. Defaults to `false`."},{"schema":{"minimum":1,"maximum":500,"anyOf":[{"format":"numeric","type":"string"},{"minimum":1,"maximum":500,"type":"number"}]},"in":"query","name":"limit","required":false,"description":"Maximum number of `trafficDistribution` rows to return, 1 to 500. Defaults to 50."},{"schema":{"minimum":0,"maximum":10000,"anyOf":[{"format":"numeric","type":"string"},{"minimum":0,"maximum":10000,"type":"number"}]},"in":"query","name":"offset","required":false,"description":"Number of `trafficDistribution` rows to skip, 0 to 10000. Defaults to 0."},{"schema":{"anyOf":[{"enum":["source"],"type":"string"},{"enum":["medium"],"type":"string"},{"enum":["campaign"],"type":"string"},{"enum":["channel"],"type":"string"},{"enum":["sessions"],"type":"string"},{"enum":["conversions"],"type":"string"},{"enum":["conversion_rate"],"type":"string"},{"enum":["bounce_rate"],"type":"string"},{"enum":["revenue"],"type":"string"},{"enum":["revenue_per_conversion"],"type":"string"},{"enum":["event_metric"],"type":"string"}]},"in":"query","name":"sortBy","required":false,"description":"Column to sort `trafficDistribution` by. `event_metric` sorts by the event named in `sortEventMetricName`. Defaults to `sessions`."},{"schema":{"type":"string","minLength":1,"maxLength":255},"in":"query","name":"sortEventMetricName","required":false,"description":"Event to sort by when `sortBy=event_metric`. It must be one of `eventMetricNames`."},{"schema":{"anyOf":[{"enum":["asc"],"type":"string"},{"enum":["desc"],"type":"string"}]},"in":"query","name":"sortDirection","required":false,"description":"`asc` or `desc`. Defaults to `desc`."}],"operationId":"getReportsAcquisition","responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","required":["success","data","timestamp","path","requestId"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/AcquisitionReportResponse"},"timestamp":{"type":"string","format":"date-time"},"path":{"type":"string"},"requestId":{"type":"string"}}},"example":{"success":true,"data":{"range":{"startDate":"2026-10-01","endDate":"2026-10-07","timezone":"Europe/Istanbul"},"previousRange":{"startDate":"2026-09-24","endDate":"2026-09-30","timezone":"Europe/Istanbul"},"currency":{"reportingCurrency":"USD","excludedCount":0},"controls":{"attributionModel":"last_non_direct_touch","attributionWindowDays":30,"conversionEventNames":["purchase"],"eventMetricNames":[],"trafficScope":"all_traffic","breakdownMode":"channels","campaignsBreakdownMode":"all","filter":null,"groupBy":"none","columns":["source","medium","campaign","channel","sessions","conversions","conversion_rate","bounce_rate","revenue","revenue_per_conversion"],"aiFocus":false,"sortBy":"sessions","sortDirection":"desc"},"scoreCards":{"consentedVisitors":{"value":1840,"previousValue":1600,"change":240,"changeRate":0.15},"sessions":{"value":4200,"previousValue":3750,"change":450,"changeRate":0.12},"conversions":{"value":113,"previousValue":105,"change":8,"changeRate":0.0762},"sessionDuration":{"value":96,"previousValue":88,"change":8,"changeRate":0.0909,"formattedValue":"1m 36s","previousFormattedValue":"1m 28s"},"revenue":{"value":8475,"previousValue":7875,"change":600,"changeRate":0.0762}},"trafficBreakdown":[{"date":"2026-10-01","sessions":208,"conversions":5,"breakdownKey":"Direct"},{"date":"2026-10-01","sessions":156,"conversions":5,"breakdownKey":"OrganicSearch"},{"date":"2026-10-01","sessions":78,"conversions":3,"breakdownKey":"PaidSearch"},{"date":"2026-10-01","sessions":52,"conversions":1,"breakdownKey":"Referral"},{"date":"2026-10-01","sessions":26,"conversions":0,"breakdownKey":"OrganicSocial"},{"date":"2026-10-02","sessions":240,"conversions":6,"breakdownKey":"Direct"},{"date":"2026-10-02","sessions":180,"conversions":6,"breakdownKey":"OrganicSearch"},{"date":"2026-10-02","sessions":90,"conversions":4,"breakdownKey":"PaidSearch"},{"date":"2026-10-02","sessions":60,"conversions":1,"breakdownKey":"Referral"},{"date":"2026-10-02","sessions":30,"conversions":0,"breakdownKey":"OrganicSocial"},{"date":"2026-10-03","sessions":256,"conversions":6,"breakdownKey":"Direct"},{"date":"2026-10-03","sessions":192,"conversions":6,"breakdownKey":"OrganicSearch"},{"date":"2026-10-03","sessions":96,"conversions":4,"breakdownKey":"PaidSearch"},{"date":"2026-10-03","sessions":64,"conversions":1,"breakdownKey":"Referral"},{"date":"2026-10-03","sessions":32,"conversions":0,"breakdownKey":"OrganicSocial"},{"date":"2026-10-04","sessions":240,"conversions":6,"breakdownKey":"Direct"},{"date":"2026-10-04","sessions":180,"conversions":6,"breakdownKey":"OrganicSearch"},{"date":"2026-10-04","sessions":90,"conversions":4,"breakdownKey":"PaidSearch"},{"date":"2026-10-04","sessions":60,"conversions":1,"breakdownKey":"Referral"},{"date":"2026-10-04","sessions":30,"conversions":0,"breakdownKey":"OrganicSocial"},{"date":"2026-10-05","sessions":264,"conversions":6,"breakdownKey":"Direct"},{"date":"2026-10-05","sessions":198,"conversions":6,"breakdownKey":"OrganicSearch"},{"date":"2026-10-05","sessions":99,"conversions":4,"breakdownKey":"PaidSearch"},{"date":"2026-10-05","sessions":66,"conversions":1,"breakdownKey":"Referral"},{"date":"2026-10-05","sessions":33,"conversions":0,"breakdownKey":"OrganicSocial"},{"date":"2026-10-06","sessions":264,"conversions":6,"breakdownKey":"Direct"},{"date":"2026-10-06","sessions":198,"conversions":6,"breakdownKey":"OrganicSearch"},{"date":"2026-10-06","sessions":99,"conversions":4,"breakdownKey":"PaidSearch"},{"date":"2026-10-06","sessions":66,"conversions":1,"breakdownKey":"Referral"},{"date":"2026-10-06","sessions":33,"conversions":0,"breakdownKey":"OrganicSocial"},{"date":"2026-10-07","sessions":208,"conversions":5,"breakdownKey":"Direct"},{"date":"2026-10-07","sessions":156,"conversions":5,"breakdownKey":"OrganicSearch"},{"date":"2026-10-07","sessions":78,"conversions":3,"breakdownKey":"PaidSearch"},{"date":"2026-10-07","sessions":52,"conversions":1,"breakdownKey":"Referral"},{"date":"2026-10-07","sessions":26,"conversions":0,"breakdownKey":"OrganicSocial"}],"trafficDistribution":{"rows":[{"source":"direct","medium":"","campaign":"","channel":"Direct","sessions":1680,"conversions":40,"conversion_rate":0.0238,"bounce_rate":0.44,"revenue":3000,"revenue_per_conversion":75,"eventCounts":{}},{"source":"google","medium":"organic","campaign":"","channel":"OrganicSearch","sessions":1260,"conversions":40,"conversion_rate":0.0317,"bounce_rate":0.38,"revenue":3000,"revenue_per_conversion":75,"eventCounts":{}},{"source":"google","medium":"cpc","campaign":"brand_search","channel":"PaidSearch","sessions":630,"conversions":26,"conversion_rate":0.0413,"bounce_rate":0.41,"revenue":1950,"revenue_per_conversion":75,"eventCounts":{}},{"source":"partner.example","medium":"referral","campaign":"","channel":"Referral","sessions":420,"conversions":7,"conversion_rate":0.0167,"bounce_rate":0.47,"revenue":525,"revenue_per_conversion":75,"eventCounts":{}},{"source":"linkedin","medium":"social","campaign":"","channel":"OrganicSocial","sessions":210,"conversions":0,"conversion_rate":0,"bounce_rate":0.52,"revenue":0,"revenue_per_conversion":0,"eventCounts":{}}],"pagination":{"limit":50,"offset":0,"total":5},"columns":["source","medium","campaign","channel","sessions","conversions","conversion_rate","bounce_rate","revenue","revenue_per_conversion"],"eventMetrics":[],"groupBy":"none","sort":{"sortBy":"sessions","sortDirection":"desc"}}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/acquisition","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}},"400":{"description":"Invalid query, body or path parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"tenant-required":{"summary":"The tenantId query parameter is missing","value":{"success":false,"error":{"code":"tenant-required","message":"tenant-required"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/acquisition","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"validation-error":{"summary":"A parameter has an unsupported value","value":{"success":false,"error":{"code":"validation-error","message":"Validation failed for 'timeframe': timeframe must be one of: today, yesterday, last7days, last30days, custom","details":{"field":"timeframe","message":"timeframe must be one of: today, yesterday, last7days, last30days, custom"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/acquisition","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"401":{"description":"Missing, unknown, expired or revoked bearer credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"bearer-required":{"summary":"The Authorization header carries no Bearer credential","value":{"success":false,"error":{"code":"bearer-required","message":"bearer-required"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/acquisition","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"invalid-credential":{"summary":"The API key or access token is not recognized","value":{"success":false,"error":{"code":"invalid-credential","message":"invalid-credential"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/acquisition","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"credential-revoked":{"summary":"The API key was revoked or the connected app was disconnected","value":{"success":false,"error":{"code":"credential-revoked","message":"credential-revoked"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/acquisition","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"credential-expired":{"summary":"The API key or access token has expired","value":{"success":false,"error":{"code":"credential-expired","message":"credential-expired"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/acquisition","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"403":{"description":"The credential may not read the requested tenant or source","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"tenant-not-granted":{"summary":"The credential has no access to the requested tenant","value":{"success":false,"error":{"code":"tenant-not-granted","message":"tenant-not-granted","details":{"tenantId":"2f1c7c3e-6c1a-4f1e-9b7a-2d8e4c1a9f10"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/acquisition","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"source-does-not-belong-to-tenant":{"summary":"The requested source belongs to a different tenant","value":{"success":false,"error":{"code":"source-does-not-belong-to-tenant","message":"source-does-not-belong-to-tenant"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/acquisition","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"insufficient-scope":{"summary":"The credential lacks the scope that report access requires","value":{"success":false,"error":{"code":"insufficient-scope","message":"insufficient-scope","details":{"required":"reports:read"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/acquisition","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"404":{"description":"The tenant, source, funnel or event was not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"tenant-not-found":{"summary":"The granted tenant no longer exists","value":{"success":false,"error":{"code":"tenant-not-found","message":"tenant-not-found","details":{"tenantId":"2f1c7c3e-6c1a-4f1e-9b7a-2d8e4c1a9f10"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/acquisition","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"source-not-found":{"summary":"The source does not exist","value":{"success":false,"error":{"code":"source-not-found","message":"source-not-found","details":{"sourceId":"7b0e5a54-1d43-4c8e-8d2f-5a9c3e6b1f27"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/acquisition","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"429":{"description":"Rate limit exceeded; retry after the Retry-After header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"rate-limited":{"summary":"The credential exceeded its request rate","value":{"success":false,"error":{"code":"rate-limited","message":"rate-limited","details":{"retryAfterSeconds":30}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/acquisition","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}}},"summary":"Acquisition","description":"Return acquisition metrics grouped by channel, source, medium, or campaign.","tags":["Acquisition"]}},"/v1/reports/commerce/event-options":{"get":{"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"query","name":"tenantId","required":true,"description":"UUID of the tenant to report on. Send it exactly once. `GET /v1/workspace/access` lists the tenants this credential can read."},{"schema":{"type":"string","format":"uuid"},"in":"query","name":"sourceId","required":false,"description":"UUID of one source of the tenant. Omit it to include every source of the tenant."},{"schema":{"anyOf":[{"enum":["today"],"type":"string"},{"enum":["yesterday"],"type":"string"},{"enum":["last7days"],"type":"string"},{"enum":["last30days"],"type":"string"},{"enum":["custom"],"type":"string"}]},"in":"query","name":"timeframe","required":false,"description":"Reporting period. The presets `today`, `yesterday`, `last7days` and `last30days` cover whole calendar days ending today in the request `timezone`; `last7days` is today and the six days before it. Use `custom` together with `startDate` and `endDate`. Defaults to `today`."},{"schema":{"type":"string"},"in":"query","name":"startDate","required":false,"description":"First day of a custom period, `YYYY-MM-DD`, inclusive. Send it only with `timeframe=custom`, together with `endDate`."},{"schema":{"type":"string"},"in":"query","name":"endDate","required":false,"description":"Last day of a custom period, `YYYY-MM-DD`, inclusive. Send it only with `timeframe=custom`; it must not be before `startDate`."},{"schema":{"type":"string","minLength":1,"maxLength":100},"in":"query","name":"timezone","required":false,"description":"IANA time zone name such as `Europe/Istanbul` or `America/New_York`. It sets the calendar-day boundaries of the period and of the time buckets. Defaults to `Europe/Istanbul`."},{"schema":{"anyOf":[{"enum":["minute"],"type":"string"},{"enum":["hour"],"type":"string"},{"enum":["day"],"type":"string"},{"enum":["week"],"type":"string"},{"enum":["month"],"type":"string"}]},"in":"query","name":"interval","required":false,"description":"Time bucket size: `minute`, `hour`, `day`, `week` or `month`."},{"schema":{"type":"string"},"in":"query","name":"reportingCurrency","required":false,"description":"ISO 4217 currency code, for example `USD`. Amounts are returned in the tenant's reporting currency."},{"schema":{"minimum":1,"maximum":500,"anyOf":[{"format":"numeric","type":"string"},{"minimum":1,"maximum":500,"type":"number"}]},"in":"query","name":"limit","required":false,"description":"Maximum number of event names to return, 1 to 500. Defaults to 100."},{"schema":{"minimum":0,"maximum":10000,"anyOf":[{"format":"numeric","type":"string"},{"minimum":0,"maximum":10000,"type":"number"}]},"in":"query","name":"offset","required":false,"description":"Number of event names to skip, 0 to 10000. Defaults to 0."}],"operationId":"getReportsCommerceEventOptions","responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","required":["success","data","timestamp","path","requestId"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/CommerceEventOptionsResponse"},"timestamp":{"type":"string","format":"date-time"},"path":{"type":"string"},"requestId":{"type":"string"}}},"example":{"success":true,"data":{"items":[{"eventName":"purchase"},{"eventName":"add_to_cart"},{"eventName":"view_item"}]},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/commerce/event-options","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}},"400":{"description":"Invalid query, body or path parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"tenant-required":{"summary":"The tenantId query parameter is missing","value":{"success":false,"error":{"code":"tenant-required","message":"tenant-required"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/commerce/event-options","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"validation-error":{"summary":"A parameter has an unsupported value","value":{"success":false,"error":{"code":"validation-error","message":"Validation failed for 'timeframe': timeframe must be one of: today, yesterday, last7days, last30days, custom","details":{"field":"timeframe","message":"timeframe must be one of: today, yesterday, last7days, last30days, custom"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/commerce/event-options","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"401":{"description":"Missing, unknown, expired or revoked bearer credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"bearer-required":{"summary":"The Authorization header carries no Bearer credential","value":{"success":false,"error":{"code":"bearer-required","message":"bearer-required"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/commerce/event-options","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"invalid-credential":{"summary":"The API key or access token is not recognized","value":{"success":false,"error":{"code":"invalid-credential","message":"invalid-credential"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/commerce/event-options","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"credential-revoked":{"summary":"The API key was revoked or the connected app was disconnected","value":{"success":false,"error":{"code":"credential-revoked","message":"credential-revoked"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/commerce/event-options","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"credential-expired":{"summary":"The API key or access token has expired","value":{"success":false,"error":{"code":"credential-expired","message":"credential-expired"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/commerce/event-options","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"403":{"description":"The credential may not read the requested tenant or source","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"tenant-not-granted":{"summary":"The credential has no access to the requested tenant","value":{"success":false,"error":{"code":"tenant-not-granted","message":"tenant-not-granted","details":{"tenantId":"2f1c7c3e-6c1a-4f1e-9b7a-2d8e4c1a9f10"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/commerce/event-options","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"source-does-not-belong-to-tenant":{"summary":"The requested source belongs to a different tenant","value":{"success":false,"error":{"code":"source-does-not-belong-to-tenant","message":"source-does-not-belong-to-tenant"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/commerce/event-options","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"insufficient-scope":{"summary":"The credential lacks the scope that report access requires","value":{"success":false,"error":{"code":"insufficient-scope","message":"insufficient-scope","details":{"required":"reports:read"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/commerce/event-options","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"404":{"description":"The tenant, source, funnel or event was not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"tenant-not-found":{"summary":"The granted tenant no longer exists","value":{"success":false,"error":{"code":"tenant-not-found","message":"tenant-not-found","details":{"tenantId":"2f1c7c3e-6c1a-4f1e-9b7a-2d8e4c1a9f10"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/commerce/event-options","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"source-not-found":{"summary":"The source does not exist","value":{"success":false,"error":{"code":"source-not-found","message":"source-not-found","details":{"sourceId":"7b0e5a54-1d43-4c8e-8d2f-5a9c3e6b1f27"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/commerce/event-options","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"429":{"description":"Rate limit exceeded; retry after the Retry-After header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"rate-limited":{"summary":"The credential exceeded its request rate","value":{"success":false,"error":{"code":"rate-limited","message":"rate-limited","details":{"retryAfterSeconds":30}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/commerce/event-options","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}}},"summary":"Conversion Events","description":"List event names available as commerce conversion events.","tags":["Commerce"]}},"/v1/reports/commerce/items":{"get":{"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"query","name":"tenantId","required":true,"description":"UUID of the tenant to report on. Send it exactly once. `GET /v1/workspace/access` lists the tenants this credential can read."},{"schema":{"type":"string","format":"uuid"},"in":"query","name":"sourceId","required":false,"description":"UUID of one source of the tenant. Omit it to include every source of the tenant."},{"schema":{"anyOf":[{"enum":["today"],"type":"string"},{"enum":["yesterday"],"type":"string"},{"enum":["last7days"],"type":"string"},{"enum":["last30days"],"type":"string"},{"enum":["custom"],"type":"string"}]},"in":"query","name":"timeframe","required":false,"description":"Reporting period. The presets `today`, `yesterday`, `last7days` and `last30days` cover whole calendar days ending today in the request `timezone`; `last7days` is today and the six days before it. Use `custom` together with `startDate` and `endDate`. Defaults to `today`."},{"schema":{"type":"string"},"in":"query","name":"startDate","required":false,"description":"First day of a custom period, `YYYY-MM-DD`, inclusive. Send it only with `timeframe=custom`, together with `endDate`."},{"schema":{"type":"string"},"in":"query","name":"endDate","required":false,"description":"Last day of a custom period, `YYYY-MM-DD`, inclusive. Send it only with `timeframe=custom`; it must not be before `startDate`."},{"schema":{"type":"string","minLength":1,"maxLength":100},"in":"query","name":"timezone","required":false,"description":"IANA time zone name such as `Europe/Istanbul` or `America/New_York`. It sets the calendar-day boundaries of the period and of the time buckets. Defaults to `Europe/Istanbul`."},{"schema":{"anyOf":[{"enum":["minute"],"type":"string"},{"enum":["hour"],"type":"string"},{"enum":["day"],"type":"string"},{"enum":["week"],"type":"string"},{"enum":["month"],"type":"string"}]},"in":"query","name":"interval","required":false,"description":"Time bucket size: `minute`, `hour`, `day`, `week` or `month`."},{"schema":{"type":"string"},"in":"query","name":"reportingCurrency","required":false,"description":"ISO 4217 currency code, for example `USD`. Amounts are returned in the tenant's reporting currency."},{"schema":{"anyOf":[{"enum":["item_name"],"type":"string"},{"enum":["item_id"],"type":"string"},{"enum":["brand"],"type":"string"},{"enum":["category"],"type":"string"},{"enum":["price"],"type":"string"},{"enum":["quantity"],"type":"string"},{"enum":["coupon"],"type":"string"},{"enum":["discount"],"type":"string"}]},"in":"query","name":"groupBy","required":false,"description":"Group items by one column: `item_name`, `item_id`, `brand`, `category`, `price`, `quantity`, `coupon` or `discount`. Grouped rows also carry `itemCount`. When `columns` is sent it must include this column. Defaults to one row per item."},{"schema":{"type":"array","minItems":1,"maxItems":13,"uniqueItems":true,"items":{"anyOf":[{"enum":["item_name"],"type":"string"},{"enum":["item_id"],"type":"string"},{"enum":["brand"],"type":"string"},{"enum":["category"],"type":"string"},{"enum":["price"],"type":"string"},{"enum":["quantity"],"type":"string"},{"enum":["coupon"],"type":"string"},{"enum":["discount"],"type":"string"},{"enum":["view_item_count"],"type":"string"},{"enum":["add_to_cart_count"],"type":"string"},{"enum":["orders"],"type":"string"},{"enum":["items"],"type":"string"},{"enum":["revenue"],"type":"string"}]}},"in":"query","name":"columns","required":false,"description":"Columns to return on each row. Repeat the parameter or separate names with commas. Defaults to all columns."},{"schema":{"anyOf":[{"enum":["item_name"],"type":"string"},{"enum":["item_id"],"type":"string"},{"enum":["brand"],"type":"string"},{"enum":["category"],"type":"string"},{"enum":["coupon"],"type":"string"}]},"in":"query","name":"filterField","required":false,"description":"Column to filter by: `item_name`, `item_id`, `brand`, `category` or `coupon`. Requires `filterValue`."},{"schema":{"type":"string","minLength":1,"maxLength":255},"in":"query","name":"filterValue","required":false,"description":"Text to look for in `filterField`. Case-insensitive and matches part of the value. Requires `filterField`."},{"schema":{"minimum":1,"maximum":500,"anyOf":[{"format":"numeric","type":"string"},{"minimum":1,"maximum":500,"type":"number"}]},"in":"query","name":"limit","required":false,"description":"Maximum number of rows to return, 1 to 500. Defaults to 50."},{"schema":{"minimum":0,"maximum":10000,"anyOf":[{"format":"numeric","type":"string"},{"minimum":0,"maximum":10000,"type":"number"}]},"in":"query","name":"offset","required":false,"description":"Number of rows to skip, 0 to 10000. Defaults to 0."},{"schema":{"anyOf":[{"enum":["item_name"],"type":"string"},{"enum":["item_id"],"type":"string"},{"enum":["brand"],"type":"string"},{"enum":["category"],"type":"string"},{"enum":["price"],"type":"string"},{"enum":["quantity"],"type":"string"},{"enum":["coupon"],"type":"string"},{"enum":["discount"],"type":"string"},{"enum":["view_item_count"],"type":"string"},{"enum":["add_to_cart_count"],"type":"string"},{"enum":["orders"],"type":"string"},{"enum":["items"],"type":"string"},{"enum":["revenue"],"type":"string"}]},"in":"query","name":"sortBy","required":false,"description":"Column to sort by. Defaults to `orders`."},{"schema":{"anyOf":[{"enum":["asc"],"type":"string"},{"enum":["desc"],"type":"string"}]},"in":"query","name":"sortDirection","required":false,"description":"`asc` or `desc`. Defaults to `desc`."}],"operationId":"getReportsCommerceItems","responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","required":["success","data","timestamp","path","requestId"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/CommerceItemsResponse"},"meta":{"$ref":"#/components/schemas/CommerceReportMeta"},"timestamp":{"type":"string","format":"date-time"},"path":{"type":"string"},"requestId":{"type":"string"}}},"example":{"success":true,"data":{"range":{"startDate":"2026-10-01","endDate":"2026-10-07","timezone":"Europe/Istanbul"},"previousRange":{"startDate":"2026-09-24","endDate":"2026-09-30","timezone":"Europe/Istanbul"},"currency":{"reportingCurrency":"USD","status":"available","excludedCount":0},"rows":[{"item_id":"SKU-1001","item_name":"Trail Running Shoes","category":"Shoes","orders":60,"view_item_count":2400,"add_to_cart_count":300,"itemKey":"[\"SKU-1001\",\"\",\"\",\"\",\"Trail Running Shoes\",\"Northwind\",\"Shoes\",37.5]","sku":null,"brand":"Northwind","price":37.5,"quantity":120,"coupon":null,"discount":0,"items":120,"revenue":4500},{"item_id":"SKU-2040","item_name":"Waterproof Jacket","category":"Outerwear","orders":35,"view_item_count":1500,"add_to_cart_count":190,"itemKey":"[\"SKU-2040\",\"\",\"\",\"\",\"Waterproof Jacket\",\"Northwind\",\"Outerwear\",37.5]","sku":null,"brand":"Northwind","price":37.5,"quantity":70,"coupon":null,"discount":0,"items":70,"revenue":2625},{"item_id":"SKU-3110","item_name":"Merino Socks","category":"Accessories","orders":18,"view_item_count":900,"add_to_cart_count":95,"itemKey":"[\"SKU-3110\",\"\",\"\",\"\",\"Merino Socks\",\"Northwind\",\"Accessories\",37.5]","sku":null,"brand":"Northwind","price":37.5,"quantity":36,"coupon":null,"discount":0,"items":36,"revenue":1350}],"pagination":{"limit":50,"offset":0,"total":3},"columns":["item_name","item_id","brand","category","price","quantity","coupon","discount","view_item_count","add_to_cart_count","orders","items","revenue"],"groupBy":null,"sort":{"sortBy":"orders","sortDirection":"desc"}},"meta":{"reportSettingsVersion":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/commerce/items","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}},"400":{"description":"Invalid query, body or path parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"tenant-required":{"summary":"The tenantId query parameter is missing","value":{"success":false,"error":{"code":"tenant-required","message":"tenant-required"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/commerce/items","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"validation-error":{"summary":"A parameter has an unsupported value","value":{"success":false,"error":{"code":"validation-error","message":"Validation failed for 'timeframe': timeframe must be one of: today, yesterday, last7days, last30days, custom","details":{"field":"timeframe","message":"timeframe must be one of: today, yesterday, last7days, last30days, custom"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/commerce/items","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"401":{"description":"Missing, unknown, expired or revoked bearer credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"bearer-required":{"summary":"The Authorization header carries no Bearer credential","value":{"success":false,"error":{"code":"bearer-required","message":"bearer-required"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/commerce/items","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"invalid-credential":{"summary":"The API key or access token is not recognized","value":{"success":false,"error":{"code":"invalid-credential","message":"invalid-credential"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/commerce/items","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"credential-revoked":{"summary":"The API key was revoked or the connected app was disconnected","value":{"success":false,"error":{"code":"credential-revoked","message":"credential-revoked"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/commerce/items","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"credential-expired":{"summary":"The API key or access token has expired","value":{"success":false,"error":{"code":"credential-expired","message":"credential-expired"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/commerce/items","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"403":{"description":"The credential may not read the requested tenant or source","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"tenant-not-granted":{"summary":"The credential has no access to the requested tenant","value":{"success":false,"error":{"code":"tenant-not-granted","message":"tenant-not-granted","details":{"tenantId":"2f1c7c3e-6c1a-4f1e-9b7a-2d8e4c1a9f10"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/commerce/items","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"source-does-not-belong-to-tenant":{"summary":"The requested source belongs to a different tenant","value":{"success":false,"error":{"code":"source-does-not-belong-to-tenant","message":"source-does-not-belong-to-tenant"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/commerce/items","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"insufficient-scope":{"summary":"The credential lacks the scope that report access requires","value":{"success":false,"error":{"code":"insufficient-scope","message":"insufficient-scope","details":{"required":"reports:read"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/commerce/items","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"404":{"description":"The tenant, source, funnel or event was not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"tenant-not-found":{"summary":"The granted tenant no longer exists","value":{"success":false,"error":{"code":"tenant-not-found","message":"tenant-not-found","details":{"tenantId":"2f1c7c3e-6c1a-4f1e-9b7a-2d8e4c1a9f10"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/commerce/items","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"source-not-found":{"summary":"The source does not exist","value":{"success":false,"error":{"code":"source-not-found","message":"source-not-found","details":{"sourceId":"7b0e5a54-1d43-4c8e-8d2f-5a9c3e6b1f27"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/commerce/items","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"429":{"description":"Rate limit exceeded; retry after the Retry-After header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"rate-limited":{"summary":"The credential exceeded its request rate","value":{"success":false,"error":{"code":"rate-limited","message":"rate-limited","details":{"retryAfterSeconds":30}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/commerce/items","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}}},"summary":"Items","description":"Return the commerce items table.","tags":["Commerce"]}},"/v1/reports/commerce":{"get":{"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"query","name":"tenantId","required":true,"description":"UUID of the tenant to report on. Send it exactly once. `GET /v1/workspace/access` lists the tenants this credential can read."},{"schema":{"type":"string","format":"uuid"},"in":"query","name":"sourceId","required":false,"description":"UUID of one source of the tenant. Omit it to include every source of the tenant."},{"schema":{"anyOf":[{"enum":["today"],"type":"string"},{"enum":["yesterday"],"type":"string"},{"enum":["last7days"],"type":"string"},{"enum":["last30days"],"type":"string"},{"enum":["custom"],"type":"string"}]},"in":"query","name":"timeframe","required":false,"description":"Reporting period. The presets `today`, `yesterday`, `last7days` and `last30days` cover whole calendar days ending today in the request `timezone`; `last7days` is today and the six days before it. Use `custom` together with `startDate` and `endDate`. Defaults to `today`."},{"schema":{"type":"string"},"in":"query","name":"startDate","required":false,"description":"First day of a custom period, `YYYY-MM-DD`, inclusive. Send it only with `timeframe=custom`, together with `endDate`."},{"schema":{"type":"string"},"in":"query","name":"endDate","required":false,"description":"Last day of a custom period, `YYYY-MM-DD`, inclusive. Send it only with `timeframe=custom`; it must not be before `startDate`."},{"schema":{"type":"string","minLength":1,"maxLength":100},"in":"query","name":"timezone","required":false,"description":"IANA time zone name such as `Europe/Istanbul` or `America/New_York`. It sets the calendar-day boundaries of the period and of the time buckets. Defaults to `Europe/Istanbul`."},{"schema":{"anyOf":[{"enum":["minute"],"type":"string"},{"enum":["hour"],"type":"string"},{"enum":["day"],"type":"string"},{"enum":["week"],"type":"string"},{"enum":["month"],"type":"string"}]},"in":"query","name":"interval","required":false,"description":"Bucket size of `trend`. Defaults to a size that fits the period: `hour` up to one day, `day` up to 14 days, `week` up to 90 days, otherwise `month`."},{"schema":{"type":"string"},"in":"query","name":"reportingCurrency","required":false,"description":"ISO 4217 currency code, for example `USD`. Amounts are returned in the tenant's reporting currency."}],"operationId":"getReportsCommerce","responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","required":["success","data","timestamp","path","requestId"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/CommerceReportResponse"},"timestamp":{"type":"string","format":"date-time"},"path":{"type":"string"},"requestId":{"type":"string"}}},"example":{"success":true,"data":{"range":{"startDate":"2026-10-01","endDate":"2026-10-07","timezone":"Europe/Istanbul"},"previousRange":{"startDate":"2026-09-24","endDate":"2026-09-30","timezone":"Europe/Istanbul"},"interval":"day","currency":{"reportingCurrency":"USD","status":"available","excludedCount":0},"scoreCards":{"revenue":{"value":8475,"previousValue":7875,"change":600,"changeRate":0.0762},"orders":{"value":113,"previousValue":105,"change":8,"changeRate":0.0762},"aov":{"value":75,"previousValue":75,"change":0,"changeRate":0},"items":{"value":226,"previousValue":210,"change":16,"changeRate":0.0762},"item_cvr":{"value":2.5,"previousValue":2.2,"change":0.3,"changeRate":0.1364,"changeKind":"percentage_points"}},"consentBreakdown":{"consented":{"orders":112,"revenue":8400},"deniedOrUnknown":{"orders":1,"revenue":75},"daily":[{"date":"2026-10-01","consented":{"orders":13,"revenue":975},"deniedOrUnknown":{"orders":1,"revenue":75}},{"date":"2026-10-02","consented":{"orders":17,"revenue":1275},"deniedOrUnknown":{"orders":0,"revenue":0}},{"date":"2026-10-03","consented":{"orders":17,"revenue":1275},"deniedOrUnknown":{"orders":0,"revenue":0}},{"date":"2026-10-04","consented":{"orders":17,"revenue":1275},"deniedOrUnknown":{"orders":0,"revenue":0}},{"date":"2026-10-05","consented":{"orders":17,"revenue":1275},"deniedOrUnknown":{"orders":0,"revenue":0}},{"date":"2026-10-06","consented":{"orders":17,"revenue":1275},"deniedOrUnknown":{"orders":0,"revenue":0}},{"date":"2026-10-07","consented":{"orders":14,"revenue":1050},"deniedOrUnknown":{"orders":0,"revenue":0}}]},"trend":[{"date":"2026-10-01","revenue":1050,"orders":14},{"date":"2026-10-02","revenue":1275,"orders":17},{"date":"2026-10-03","revenue":1275,"orders":17},{"date":"2026-10-04","revenue":1275,"orders":17},{"date":"2026-10-05","revenue":1275,"orders":17},{"date":"2026-10-06","revenue":1275,"orders":17},{"date":"2026-10-07","revenue":1050,"orders":14}],"topChannels":[{"channel":"Direct","sessions":1680,"orders":40,"revenue":3000},{"channel":"OrganicSearch","sessions":1260,"orders":40,"revenue":3000},{"channel":"PaidSearch","sessions":630,"orders":26,"revenue":1950},{"channel":"Referral","sessions":420,"orders":7,"revenue":525},{"channel":"OrganicSocial","sessions":210,"orders":0,"revenue":0}],"topSources":[{"source":"direct","medium":null,"sessions":1680,"orders":40,"revenue":3000},{"source":"google","medium":"organic","sessions":1260,"orders":40,"revenue":3000},{"source":"google","medium":"cpc","sessions":630,"orders":26,"revenue":1950},{"source":"partner.example","medium":"referral","sessions":420,"orders":7,"revenue":525},{"source":"linkedin","medium":"social","sessions":210,"orders":0,"revenue":0}]},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/commerce","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}},"400":{"description":"Invalid query, body or path parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"tenant-required":{"summary":"The tenantId query parameter is missing","value":{"success":false,"error":{"code":"tenant-required","message":"tenant-required"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/commerce","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"validation-error":{"summary":"A parameter has an unsupported value","value":{"success":false,"error":{"code":"validation-error","message":"Validation failed for 'timeframe': timeframe must be one of: today, yesterday, last7days, last30days, custom","details":{"field":"timeframe","message":"timeframe must be one of: today, yesterday, last7days, last30days, custom"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/commerce","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"401":{"description":"Missing, unknown, expired or revoked bearer credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"bearer-required":{"summary":"The Authorization header carries no Bearer credential","value":{"success":false,"error":{"code":"bearer-required","message":"bearer-required"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/commerce","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"invalid-credential":{"summary":"The API key or access token is not recognized","value":{"success":false,"error":{"code":"invalid-credential","message":"invalid-credential"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/commerce","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"credential-revoked":{"summary":"The API key was revoked or the connected app was disconnected","value":{"success":false,"error":{"code":"credential-revoked","message":"credential-revoked"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/commerce","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"credential-expired":{"summary":"The API key or access token has expired","value":{"success":false,"error":{"code":"credential-expired","message":"credential-expired"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/commerce","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"403":{"description":"The credential may not read the requested tenant or source","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"tenant-not-granted":{"summary":"The credential has no access to the requested tenant","value":{"success":false,"error":{"code":"tenant-not-granted","message":"tenant-not-granted","details":{"tenantId":"2f1c7c3e-6c1a-4f1e-9b7a-2d8e4c1a9f10"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/commerce","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"source-does-not-belong-to-tenant":{"summary":"The requested source belongs to a different tenant","value":{"success":false,"error":{"code":"source-does-not-belong-to-tenant","message":"source-does-not-belong-to-tenant"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/commerce","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"insufficient-scope":{"summary":"The credential lacks the scope that report access requires","value":{"success":false,"error":{"code":"insufficient-scope","message":"insufficient-scope","details":{"required":"reports:read"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/commerce","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"404":{"description":"The tenant, source, funnel or event was not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"tenant-not-found":{"summary":"The granted tenant no longer exists","value":{"success":false,"error":{"code":"tenant-not-found","message":"tenant-not-found","details":{"tenantId":"2f1c7c3e-6c1a-4f1e-9b7a-2d8e4c1a9f10"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/commerce","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"source-not-found":{"summary":"The source does not exist","value":{"success":false,"error":{"code":"source-not-found","message":"source-not-found","details":{"sourceId":"7b0e5a54-1d43-4c8e-8d2f-5a9c3e6b1f27"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/commerce","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"429":{"description":"Rate limit exceeded; retry after the Retry-After header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"rate-limited":{"summary":"The credential exceeded its request rate","value":{"success":false,"error":{"code":"rate-limited","message":"rate-limited","details":{"retryAfterSeconds":30}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/commerce","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}}},"summary":"Commerce Overview","description":"Return orders, revenue, and conversion metrics in the reporting currency.","tags":["Commerce"]}},"/v1/reports/ai-visibility":{"get":{"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"query","name":"tenantId","required":true,"description":"UUID of the tenant to report on. Send it exactly once. `GET /v1/workspace/access` lists the tenants this credential can read."},{"schema":{"type":"string","format":"uuid"},"in":"query","name":"sourceId","required":false,"description":"UUID of one source of the tenant. Omit it to include every source of the tenant."},{"schema":{"anyOf":[{"enum":["today"],"type":"string"},{"enum":["yesterday"],"type":"string"},{"enum":["last7days"],"type":"string"},{"enum":["last30days"],"type":"string"},{"enum":["custom"],"type":"string"}]},"in":"query","name":"timeframe","required":false,"description":"Reporting period. The presets `today`, `yesterday`, `last7days` and `last30days` cover whole calendar days ending today in the request `timezone`; `last7days` is today and the six days before it. Use `custom` together with `startDate` and `endDate`. Defaults to `today`."},{"schema":{"type":"string"},"in":"query","name":"startDate","required":false,"description":"First day of a custom period, `YYYY-MM-DD`, inclusive. Send it only with `timeframe=custom`, together with `endDate`."},{"schema":{"type":"string"},"in":"query","name":"endDate","required":false,"description":"Last day of a custom period, `YYYY-MM-DD`, inclusive. Send it only with `timeframe=custom`; it must not be before `startDate`."},{"schema":{"type":"string","minLength":1,"maxLength":100},"in":"query","name":"timezone","required":false,"description":"IANA time zone name such as `Europe/Istanbul` or `America/New_York`. It sets the calendar-day boundaries of the period and of the time buckets. Defaults to `Europe/Istanbul`."},{"schema":{"anyOf":[{"enum":["minute"],"type":"string"},{"enum":["hour"],"type":"string"},{"enum":["day"],"type":"string"},{"enum":["week"],"type":"string"},{"enum":["month"],"type":"string"}]},"in":"query","name":"interval","required":false,"description":"Time bucket size: `minute`, `hour`, `day`, `week` or `month`."},{"schema":{"type":"string"},"in":"query","name":"path","required":false,"description":"Page path, for example `/pricing`."},{"schema":{"type":"string"},"in":"query","name":"channel","required":false,"description":"Marketing channel, for example `OrganicSearch`."},{"schema":{"type":"string"},"in":"query","name":"source","required":false,"description":"Traffic source, for example `google`. This is not `sourceId`."},{"schema":{"type":"string"},"in":"query","name":"device","required":false,"description":"Device type, for example `desktop` or `mobile`."},{"schema":{"type":"string"},"in":"query","name":"os","required":false,"description":"Operating system, for example `iOS`."},{"schema":{"type":"string"},"in":"query","name":"country","required":false,"description":"Two-letter country code, for example `TR`."},{"schema":{"type":"string"},"in":"query","name":"city","required":false,"description":"City name, for example `Istanbul`."},{"schema":{"type":"string"},"in":"query","name":"eventName","required":false,"description":"Event name, for example `purchase`."},{"schema":{"anyOf":[{"type":"boolean"},{"enum":["true"],"type":"string"},{"enum":["false"],"type":"string"},{"enum":["1"],"type":"string"},{"enum":["0"],"type":"string"}]},"in":"query","name":"isAi","required":false,"description":"`true` returns AI agents only and `false` returns other crawlers only. Omit it for both."},{"schema":{"type":"string"},"in":"query","name":"agentType","required":false,"description":"Filter by agent type: `ai` or `nonAi`."},{"schema":{"type":"string"},"in":"query","name":"agentName","required":false,"description":"Filter by agent name, for example `GPTBot`. Exact match. Separate several values with commas."},{"schema":{"type":"string"},"in":"query","name":"agentPlatform","required":false,"description":"Filter by the company that runs the agent, for example `OpenAI`. Exact match. Separate several values with commas."},{"schema":{"type":"string"},"in":"query","name":"agentCategory","required":false,"description":"Filter by agent category, for example `ai-crawler` or `search-bot`. Exact match. Separate several values with commas."},{"schema":{"type":"string"},"in":"query","name":"pagePath","required":false,"description":"Only count visits to these page paths. Exact match. Separate several values with commas."},{"schema":{"type":"string"},"in":"query","name":"agentPlatformValues","required":false,"description":"Exact platform names as a JSON array, for example `[\"Meta Platforms, Inc.\", \"OpenAI\"]`. Takes precedence over `agentPlatform`."}],"operationId":"getReportsAiVisibility","responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","required":["success","data","timestamp","path","requestId"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/AiVisibilityReportResponse"},"timestamp":{"type":"string","format":"date-time"},"path":{"type":"string"},"requestId":{"type":"string"}}},"example":{"success":true,"data":{"range":{"startDate":"2026-10-01","endDate":"2026-10-07","timezone":"Europe/Istanbul"},"previousRange":{"startDate":"2026-09-24","endDate":"2026-09-30","timezone":"Europe/Istanbul"},"scoreCards":{"aiAgentVisits":2520,"agents":4,"agentVisits":5040,"agentPlatforms":4,"agentCategories":3,"pagesCovered":340},"previousScoreCards":{"aiAgentVisits":2100,"agents":4,"agentVisits":4620,"agentPlatforms":4,"agentCategories":3,"pagesCovered":310}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/ai-visibility","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}},"400":{"description":"Invalid query, body or path parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"tenant-required":{"summary":"The tenantId query parameter is missing","value":{"success":false,"error":{"code":"tenant-required","message":"tenant-required"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/ai-visibility","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"validation-error":{"summary":"A parameter has an unsupported value","value":{"success":false,"error":{"code":"validation-error","message":"Validation failed for 'timeframe': timeframe must be one of: today, yesterday, last7days, last30days, custom","details":{"field":"timeframe","message":"timeframe must be one of: today, yesterday, last7days, last30days, custom"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/ai-visibility","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"401":{"description":"Missing, unknown, expired or revoked bearer credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"bearer-required":{"summary":"The Authorization header carries no Bearer credential","value":{"success":false,"error":{"code":"bearer-required","message":"bearer-required"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/ai-visibility","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"invalid-credential":{"summary":"The API key or access token is not recognized","value":{"success":false,"error":{"code":"invalid-credential","message":"invalid-credential"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/ai-visibility","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"credential-revoked":{"summary":"The API key was revoked or the connected app was disconnected","value":{"success":false,"error":{"code":"credential-revoked","message":"credential-revoked"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/ai-visibility","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"credential-expired":{"summary":"The API key or access token has expired","value":{"success":false,"error":{"code":"credential-expired","message":"credential-expired"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/ai-visibility","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"403":{"description":"The credential may not read the requested tenant or source","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"tenant-not-granted":{"summary":"The credential has no access to the requested tenant","value":{"success":false,"error":{"code":"tenant-not-granted","message":"tenant-not-granted","details":{"tenantId":"2f1c7c3e-6c1a-4f1e-9b7a-2d8e4c1a9f10"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/ai-visibility","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"source-does-not-belong-to-tenant":{"summary":"The requested source belongs to a different tenant","value":{"success":false,"error":{"code":"source-does-not-belong-to-tenant","message":"source-does-not-belong-to-tenant"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/ai-visibility","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"insufficient-scope":{"summary":"The credential lacks the scope that report access requires","value":{"success":false,"error":{"code":"insufficient-scope","message":"insufficient-scope","details":{"required":"reports:read"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/ai-visibility","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"404":{"description":"The tenant, source, funnel or event was not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"tenant-not-found":{"summary":"The granted tenant no longer exists","value":{"success":false,"error":{"code":"tenant-not-found","message":"tenant-not-found","details":{"tenantId":"2f1c7c3e-6c1a-4f1e-9b7a-2d8e4c1a9f10"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/ai-visibility","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"source-not-found":{"summary":"The source does not exist","value":{"success":false,"error":{"code":"source-not-found","message":"source-not-found","details":{"sourceId":"7b0e5a54-1d43-4c8e-8d2f-5a9c3e6b1f27"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/ai-visibility","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"429":{"description":"Rate limit exceeded; retry after the Retry-After header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"rate-limited":{"summary":"The credential exceeded its request rate","value":{"success":false,"error":{"code":"rate-limited","message":"rate-limited","details":{"retryAfterSeconds":30}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/ai-visibility","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}}},"summary":"AI Visibility","description":"Return the AI crawler and agent visibility report.","tags":["AI Visibility"]}},"/v1/reports/ai-visibility/filter-options":{"get":{"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"query","name":"tenantId","required":true,"description":"UUID of the tenant to report on. Send it exactly once. `GET /v1/workspace/access` lists the tenants this credential can read."},{"schema":{"type":"string","format":"uuid"},"in":"query","name":"sourceId","required":false,"description":"UUID of one source of the tenant. Omit it to include every source of the tenant."},{"schema":{"anyOf":[{"enum":["today"],"type":"string"},{"enum":["yesterday"],"type":"string"},{"enum":["last7days"],"type":"string"},{"enum":["last30days"],"type":"string"},{"enum":["custom"],"type":"string"}]},"in":"query","name":"timeframe","required":false,"description":"Reporting period. The presets `today`, `yesterday`, `last7days` and `last30days` cover whole calendar days ending today in the request `timezone`; `last7days` is today and the six days before it. Use `custom` together with `startDate` and `endDate`. Defaults to `today`."},{"schema":{"type":"string"},"in":"query","name":"startDate","required":false,"description":"First day of a custom period, `YYYY-MM-DD`, inclusive. Send it only with `timeframe=custom`, together with `endDate`."},{"schema":{"type":"string"},"in":"query","name":"endDate","required":false,"description":"Last day of a custom period, `YYYY-MM-DD`, inclusive. Send it only with `timeframe=custom`; it must not be before `startDate`."},{"schema":{"type":"string","minLength":1,"maxLength":100},"in":"query","name":"timezone","required":false,"description":"IANA time zone name such as `Europe/Istanbul` or `America/New_York`. It sets the calendar-day boundaries of the period and of the time buckets. Defaults to `Europe/Istanbul`."},{"schema":{"anyOf":[{"enum":["minute"],"type":"string"},{"enum":["hour"],"type":"string"},{"enum":["day"],"type":"string"},{"enum":["week"],"type":"string"},{"enum":["month"],"type":"string"}]},"in":"query","name":"interval","required":false,"description":"Time bucket size: `minute`, `hour`, `day`, `week` or `month`."},{"schema":{"type":"string"},"in":"query","name":"path","required":false,"description":"Page path, for example `/pricing`."},{"schema":{"type":"string"},"in":"query","name":"channel","required":false,"description":"Marketing channel, for example `OrganicSearch`."},{"schema":{"type":"string"},"in":"query","name":"source","required":false,"description":"Traffic source, for example `google`. This is not `sourceId`."},{"schema":{"type":"string"},"in":"query","name":"device","required":false,"description":"Device type, for example `desktop` or `mobile`."},{"schema":{"type":"string"},"in":"query","name":"os","required":false,"description":"Operating system, for example `iOS`."},{"schema":{"type":"string"},"in":"query","name":"country","required":false,"description":"Two-letter country code, for example `TR`."},{"schema":{"type":"string"},"in":"query","name":"city","required":false,"description":"City name, for example `Istanbul`."},{"schema":{"type":"string"},"in":"query","name":"eventName","required":false,"description":"Event name, for example `purchase`."},{"schema":{"anyOf":[{"type":"boolean"},{"enum":["true"],"type":"string"},{"enum":["false"],"type":"string"},{"enum":["1"],"type":"string"},{"enum":["0"],"type":"string"}]},"in":"query","name":"isAi","required":false,"description":"`true` returns AI agents only and `false` returns other crawlers only. Omit it for both."},{"schema":{"type":"string"},"in":"query","name":"agentType","required":false,"description":"Filter by agent type: `ai` or `nonAi`."},{"schema":{"type":"string"},"in":"query","name":"agentName","required":false,"description":"Filter by agent name, for example `GPTBot`. Exact match. Separate several values with commas."},{"schema":{"type":"string"},"in":"query","name":"agentPlatform","required":false,"description":"Filter by the company that runs the agent, for example `OpenAI`. Exact match. Separate several values with commas."},{"schema":{"type":"string"},"in":"query","name":"agentCategory","required":false,"description":"Filter by agent category, for example `ai-crawler` or `search-bot`. Exact match. Separate several values with commas."},{"schema":{"type":"string"},"in":"query","name":"pagePath","required":false,"description":"Only count visits to these page paths. Exact match. Separate several values with commas."},{"schema":{"type":"string"},"in":"query","name":"agentPlatformValues","required":false,"description":"Exact platform names as a JSON array, for example `[\"Meta Platforms, Inc.\", \"OpenAI\"]`. Takes precedence over `agentPlatform`."},{"schema":{"anyOf":[{"enum":["agentType"],"type":"string"},{"enum":["agentName"],"type":"string"},{"enum":["agentPlatform"],"type":"string"},{"enum":["agentCategory"],"type":"string"},{"enum":["pagePath"],"type":"string"}]},"in":"query","name":"dimension","required":true,"description":"Filter to list values for: `agentType`, `agentName`, `agentPlatform`, `agentCategory` or `pagePath`. The other filters narrow the list."},{"schema":{"type":"string"},"in":"query","name":"search","required":false,"description":"Only return options whose label contains this text. Case-insensitive."},{"schema":{"minimum":1,"maximum":500,"anyOf":[{"format":"numeric","type":"string"},{"minimum":1,"maximum":500,"type":"number"}]},"in":"query","name":"limit","required":false,"description":"Maximum number of options to return, 1 to 500. Defaults to 250."}],"operationId":"getReportsAiVisibilityFilterOptions","responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","required":["success","data","timestamp","path","requestId"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/AiVisibilityFilterOptionsResponse"},"timestamp":{"type":"string","format":"date-time"},"path":{"type":"string"},"requestId":{"type":"string"}}},"example":{"success":true,"data":{"options":[{"value":"Googlebot","label":"Googlebot","count":2520},{"value":"GPTBot","label":"GPTBot","count":1260},{"value":"ClaudeBot","label":"ClaudeBot","count":840},{"value":"PerplexityBot","label":"PerplexityBot","count":420}]},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/ai-visibility/filter-options","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}},"400":{"description":"Invalid query, body or path parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"tenant-required":{"summary":"The tenantId query parameter is missing","value":{"success":false,"error":{"code":"tenant-required","message":"tenant-required"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/ai-visibility/filter-options","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"validation-error":{"summary":"A parameter has an unsupported value","value":{"success":false,"error":{"code":"validation-error","message":"Validation failed for 'timeframe': timeframe must be one of: today, yesterday, last7days, last30days, custom","details":{"field":"timeframe","message":"timeframe must be one of: today, yesterday, last7days, last30days, custom"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/ai-visibility/filter-options","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"401":{"description":"Missing, unknown, expired or revoked bearer credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"bearer-required":{"summary":"The Authorization header carries no Bearer credential","value":{"success":false,"error":{"code":"bearer-required","message":"bearer-required"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/ai-visibility/filter-options","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"invalid-credential":{"summary":"The API key or access token is not recognized","value":{"success":false,"error":{"code":"invalid-credential","message":"invalid-credential"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/ai-visibility/filter-options","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"credential-revoked":{"summary":"The API key was revoked or the connected app was disconnected","value":{"success":false,"error":{"code":"credential-revoked","message":"credential-revoked"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/ai-visibility/filter-options","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"credential-expired":{"summary":"The API key or access token has expired","value":{"success":false,"error":{"code":"credential-expired","message":"credential-expired"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/ai-visibility/filter-options","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"403":{"description":"The credential may not read the requested tenant or source","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"tenant-not-granted":{"summary":"The credential has no access to the requested tenant","value":{"success":false,"error":{"code":"tenant-not-granted","message":"tenant-not-granted","details":{"tenantId":"2f1c7c3e-6c1a-4f1e-9b7a-2d8e4c1a9f10"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/ai-visibility/filter-options","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"source-does-not-belong-to-tenant":{"summary":"The requested source belongs to a different tenant","value":{"success":false,"error":{"code":"source-does-not-belong-to-tenant","message":"source-does-not-belong-to-tenant"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/ai-visibility/filter-options","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"insufficient-scope":{"summary":"The credential lacks the scope that report access requires","value":{"success":false,"error":{"code":"insufficient-scope","message":"insufficient-scope","details":{"required":"reports:read"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/ai-visibility/filter-options","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"404":{"description":"The tenant, source, funnel or event was not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"tenant-not-found":{"summary":"The granted tenant no longer exists","value":{"success":false,"error":{"code":"tenant-not-found","message":"tenant-not-found","details":{"tenantId":"2f1c7c3e-6c1a-4f1e-9b7a-2d8e4c1a9f10"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/ai-visibility/filter-options","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"source-not-found":{"summary":"The source does not exist","value":{"success":false,"error":{"code":"source-not-found","message":"source-not-found","details":{"sourceId":"7b0e5a54-1d43-4c8e-8d2f-5a9c3e6b1f27"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/ai-visibility/filter-options","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"429":{"description":"Rate limit exceeded; retry after the Retry-After header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"rate-limited":{"summary":"The credential exceeded its request rate","value":{"success":false,"error":{"code":"rate-limited","message":"rate-limited","details":{"retryAfterSeconds":30}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/ai-visibility/filter-options","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}}},"summary":"Filter Options","description":"List available filter values for the AI visibility report.","tags":["AI Visibility"]}},"/v1/reports/ai-visibility/graphs":{"get":{"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"query","name":"tenantId","required":true,"description":"UUID of the tenant to report on. Send it exactly once. `GET /v1/workspace/access` lists the tenants this credential can read."},{"schema":{"type":"string","format":"uuid"},"in":"query","name":"sourceId","required":false,"description":"UUID of one source of the tenant. Omit it to include every source of the tenant."},{"schema":{"anyOf":[{"enum":["today"],"type":"string"},{"enum":["yesterday"],"type":"string"},{"enum":["last7days"],"type":"string"},{"enum":["last30days"],"type":"string"},{"enum":["custom"],"type":"string"}]},"in":"query","name":"timeframe","required":false,"description":"Reporting period. The presets `today`, `yesterday`, `last7days` and `last30days` cover whole calendar days ending today in the request `timezone`; `last7days` is today and the six days before it. Use `custom` together with `startDate` and `endDate`. Defaults to `today`."},{"schema":{"type":"string"},"in":"query","name":"startDate","required":false,"description":"First day of a custom period, `YYYY-MM-DD`, inclusive. Send it only with `timeframe=custom`, together with `endDate`."},{"schema":{"type":"string"},"in":"query","name":"endDate","required":false,"description":"Last day of a custom period, `YYYY-MM-DD`, inclusive. Send it only with `timeframe=custom`; it must not be before `startDate`."},{"schema":{"type":"string","minLength":1,"maxLength":100},"in":"query","name":"timezone","required":false,"description":"IANA time zone name such as `Europe/Istanbul` or `America/New_York`. It sets the calendar-day boundaries of the period and of the time buckets. Defaults to `Europe/Istanbul`."},{"schema":{"anyOf":[{"enum":["minute"],"type":"string"},{"enum":["hour"],"type":"string"},{"enum":["day"],"type":"string"},{"enum":["week"],"type":"string"},{"enum":["month"],"type":"string"}]},"in":"query","name":"interval","required":false,"description":"Bucket size of `points`. Defaults to `hour`; send `day` for periods longer than a day."},{"schema":{"type":"string"},"in":"query","name":"path","required":false,"description":"Page path, for example `/pricing`."},{"schema":{"type":"string"},"in":"query","name":"channel","required":false,"description":"Marketing channel, for example `OrganicSearch`."},{"schema":{"type":"string"},"in":"query","name":"source","required":false,"description":"Traffic source, for example `google`. This is not `sourceId`."},{"schema":{"type":"string"},"in":"query","name":"device","required":false,"description":"Device type, for example `desktop` or `mobile`."},{"schema":{"type":"string"},"in":"query","name":"os","required":false,"description":"Operating system, for example `iOS`."},{"schema":{"type":"string"},"in":"query","name":"country","required":false,"description":"Two-letter country code, for example `TR`."},{"schema":{"type":"string"},"in":"query","name":"city","required":false,"description":"City name, for example `Istanbul`."},{"schema":{"type":"string"},"in":"query","name":"eventName","required":false,"description":"Event name, for example `purchase`."},{"schema":{"anyOf":[{"type":"boolean"},{"enum":["true"],"type":"string"},{"enum":["false"],"type":"string"},{"enum":["1"],"type":"string"},{"enum":["0"],"type":"string"}]},"in":"query","name":"isAi","required":false,"description":"`true` returns AI agents only and `false` returns other crawlers only. Omit it for both."},{"schema":{"type":"string"},"in":"query","name":"agentType","required":false,"description":"Filter by agent type: `ai` or `nonAi`."},{"schema":{"type":"string"},"in":"query","name":"agentName","required":false,"description":"Filter by agent name, for example `GPTBot`. Exact match. Separate several values with commas."},{"schema":{"type":"string"},"in":"query","name":"agentPlatform","required":false,"description":"Filter by the company that runs the agent, for example `OpenAI`. Exact match. Separate several values with commas."},{"schema":{"type":"string"},"in":"query","name":"agentCategory","required":false,"description":"Filter by agent category, for example `ai-crawler` or `search-bot`. Exact match. Separate several values with commas."},{"schema":{"type":"string"},"in":"query","name":"pagePath","required":false,"description":"Only count visits to these page paths. Exact match. Separate several values with commas."},{"schema":{"type":"string"},"in":"query","name":"agentPlatformValues","required":false,"description":"Exact platform names as a JSON array, for example `[\"Meta Platforms, Inc.\", \"OpenAI\"]`. Takes precedence over `agentPlatform`."},{"schema":{"anyOf":[{"enum":["agentName"],"type":"string"},{"enum":["agentPlatform"],"type":"string"},{"enum":["agentCategory"],"type":"string"},{"enum":["pagePath"],"type":"string"}]},"in":"query","name":"category","required":false,"description":"Split the series by `agentName`, `agentPlatform`, `agentCategory` or `pagePath`; each point then carries the value in `categoryValue`. Omit it for total visits per bucket. Only the 250 values with the most visits are returned."}],"operationId":"getReportsAiVisibilityGraphs","responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","required":["success","data","timestamp","path","requestId"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/AiVisibilityGraphsResponse"},"timestamp":{"type":"string","format":"date-time"},"path":{"type":"string"},"requestId":{"type":"string"}}},"example":{"success":true,"data":{"range":{"startDate":"2026-10-01","endDate":"2026-10-07","timezone":"Europe/Istanbul"},"points":[{"date":"2026-10-01","visits":312,"categoryValue":"Googlebot"},{"date":"2026-10-01","visits":156,"categoryValue":"GPTBot"},{"date":"2026-10-01","visits":104,"categoryValue":"ClaudeBot"},{"date":"2026-10-01","visits":52,"categoryValue":"PerplexityBot"},{"date":"2026-10-02","visits":360,"categoryValue":"Googlebot"},{"date":"2026-10-02","visits":180,"categoryValue":"GPTBot"},{"date":"2026-10-02","visits":120,"categoryValue":"ClaudeBot"},{"date":"2026-10-02","visits":60,"categoryValue":"PerplexityBot"},{"date":"2026-10-03","visits":384,"categoryValue":"Googlebot"},{"date":"2026-10-03","visits":192,"categoryValue":"GPTBot"},{"date":"2026-10-03","visits":128,"categoryValue":"ClaudeBot"},{"date":"2026-10-03","visits":64,"categoryValue":"PerplexityBot"},{"date":"2026-10-04","visits":360,"categoryValue":"Googlebot"},{"date":"2026-10-04","visits":180,"categoryValue":"GPTBot"},{"date":"2026-10-04","visits":120,"categoryValue":"ClaudeBot"},{"date":"2026-10-04","visits":60,"categoryValue":"PerplexityBot"},{"date":"2026-10-05","visits":396,"categoryValue":"Googlebot"},{"date":"2026-10-05","visits":198,"categoryValue":"GPTBot"},{"date":"2026-10-05","visits":132,"categoryValue":"ClaudeBot"},{"date":"2026-10-05","visits":66,"categoryValue":"PerplexityBot"},{"date":"2026-10-06","visits":396,"categoryValue":"Googlebot"},{"date":"2026-10-06","visits":198,"categoryValue":"GPTBot"},{"date":"2026-10-06","visits":132,"categoryValue":"ClaudeBot"},{"date":"2026-10-06","visits":66,"categoryValue":"PerplexityBot"},{"date":"2026-10-07","visits":312,"categoryValue":"Googlebot"},{"date":"2026-10-07","visits":156,"categoryValue":"GPTBot"},{"date":"2026-10-07","visits":104,"categoryValue":"ClaudeBot"},{"date":"2026-10-07","visits":52,"categoryValue":"PerplexityBot"}]},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/ai-visibility/graphs","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}},"400":{"description":"Invalid query, body or path parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"tenant-required":{"summary":"The tenantId query parameter is missing","value":{"success":false,"error":{"code":"tenant-required","message":"tenant-required"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/ai-visibility/graphs","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"validation-error":{"summary":"A parameter has an unsupported value","value":{"success":false,"error":{"code":"validation-error","message":"Validation failed for 'timeframe': timeframe must be one of: today, yesterday, last7days, last30days, custom","details":{"field":"timeframe","message":"timeframe must be one of: today, yesterday, last7days, last30days, custom"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/ai-visibility/graphs","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"401":{"description":"Missing, unknown, expired or revoked bearer credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"bearer-required":{"summary":"The Authorization header carries no Bearer credential","value":{"success":false,"error":{"code":"bearer-required","message":"bearer-required"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/ai-visibility/graphs","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"invalid-credential":{"summary":"The API key or access token is not recognized","value":{"success":false,"error":{"code":"invalid-credential","message":"invalid-credential"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/ai-visibility/graphs","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"credential-revoked":{"summary":"The API key was revoked or the connected app was disconnected","value":{"success":false,"error":{"code":"credential-revoked","message":"credential-revoked"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/ai-visibility/graphs","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"credential-expired":{"summary":"The API key or access token has expired","value":{"success":false,"error":{"code":"credential-expired","message":"credential-expired"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/ai-visibility/graphs","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"403":{"description":"The credential may not read the requested tenant or source","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"tenant-not-granted":{"summary":"The credential has no access to the requested tenant","value":{"success":false,"error":{"code":"tenant-not-granted","message":"tenant-not-granted","details":{"tenantId":"2f1c7c3e-6c1a-4f1e-9b7a-2d8e4c1a9f10"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/ai-visibility/graphs","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"source-does-not-belong-to-tenant":{"summary":"The requested source belongs to a different tenant","value":{"success":false,"error":{"code":"source-does-not-belong-to-tenant","message":"source-does-not-belong-to-tenant"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/ai-visibility/graphs","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"insufficient-scope":{"summary":"The credential lacks the scope that report access requires","value":{"success":false,"error":{"code":"insufficient-scope","message":"insufficient-scope","details":{"required":"reports:read"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/ai-visibility/graphs","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"404":{"description":"The tenant, source, funnel or event was not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"tenant-not-found":{"summary":"The granted tenant no longer exists","value":{"success":false,"error":{"code":"tenant-not-found","message":"tenant-not-found","details":{"tenantId":"2f1c7c3e-6c1a-4f1e-9b7a-2d8e4c1a9f10"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/ai-visibility/graphs","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"source-not-found":{"summary":"The source does not exist","value":{"success":false,"error":{"code":"source-not-found","message":"source-not-found","details":{"sourceId":"7b0e5a54-1d43-4c8e-8d2f-5a9c3e6b1f27"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/ai-visibility/graphs","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"429":{"description":"Rate limit exceeded; retry after the Retry-After header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"rate-limited":{"summary":"The credential exceeded its request rate","value":{"success":false,"error":{"code":"rate-limited","message":"rate-limited","details":{"retryAfterSeconds":30}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/ai-visibility/graphs","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}}},"summary":"Visit Trends","description":"Return an AI visit time series, optionally grouped by category.","tags":["AI Visibility"]}},"/v1/reports/ai-visibility/page-report":{"get":{"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"query","name":"tenantId","required":true,"description":"UUID of the tenant to report on. Send it exactly once. `GET /v1/workspace/access` lists the tenants this credential can read."},{"schema":{"type":"string","format":"uuid"},"in":"query","name":"sourceId","required":false,"description":"UUID of one source of the tenant. Omit it to include every source of the tenant."},{"schema":{"anyOf":[{"enum":["today"],"type":"string"},{"enum":["yesterday"],"type":"string"},{"enum":["last7days"],"type":"string"},{"enum":["last30days"],"type":"string"},{"enum":["custom"],"type":"string"}]},"in":"query","name":"timeframe","required":false,"description":"Reporting period. The presets `today`, `yesterday`, `last7days` and `last30days` cover whole calendar days ending today in the request `timezone`; `last7days` is today and the six days before it. Use `custom` together with `startDate` and `endDate`. Defaults to `today`."},{"schema":{"type":"string"},"in":"query","name":"startDate","required":false,"description":"First day of a custom period, `YYYY-MM-DD`, inclusive. Send it only with `timeframe=custom`, together with `endDate`."},{"schema":{"type":"string"},"in":"query","name":"endDate","required":false,"description":"Last day of a custom period, `YYYY-MM-DD`, inclusive. Send it only with `timeframe=custom`; it must not be before `startDate`."},{"schema":{"type":"string","minLength":1,"maxLength":100},"in":"query","name":"timezone","required":false,"description":"IANA time zone name such as `Europe/Istanbul` or `America/New_York`. It sets the calendar-day boundaries of the period and of the time buckets. Defaults to `Europe/Istanbul`."},{"schema":{"anyOf":[{"enum":["minute"],"type":"string"},{"enum":["hour"],"type":"string"},{"enum":["day"],"type":"string"},{"enum":["week"],"type":"string"},{"enum":["month"],"type":"string"}]},"in":"query","name":"interval","required":false,"description":"Time bucket size: `minute`, `hour`, `day`, `week` or `month`."},{"schema":{"type":"string"},"in":"query","name":"path","required":false,"description":"Page path, for example `/pricing`."},{"schema":{"type":"string"},"in":"query","name":"channel","required":false,"description":"Marketing channel, for example `OrganicSearch`."},{"schema":{"type":"string"},"in":"query","name":"source","required":false,"description":"Traffic source, for example `google`. This is not `sourceId`."},{"schema":{"type":"string"},"in":"query","name":"device","required":false,"description":"Device type, for example `desktop` or `mobile`."},{"schema":{"type":"string"},"in":"query","name":"os","required":false,"description":"Operating system, for example `iOS`."},{"schema":{"type":"string"},"in":"query","name":"country","required":false,"description":"Two-letter country code, for example `TR`."},{"schema":{"type":"string"},"in":"query","name":"city","required":false,"description":"City name, for example `Istanbul`."},{"schema":{"type":"string"},"in":"query","name":"eventName","required":false,"description":"Event name, for example `purchase`."},{"schema":{"anyOf":[{"type":"boolean"},{"enum":["true"],"type":"string"},{"enum":["false"],"type":"string"},{"enum":["1"],"type":"string"},{"enum":["0"],"type":"string"}]},"in":"query","name":"isAi","required":false,"description":"`true` returns AI agents only and `false` returns other crawlers only. Omit it for both."},{"schema":{"type":"string"},"in":"query","name":"agentType","required":false,"description":"Agent type: `ai` or `nonAi`."},{"schema":{"type":"string"},"in":"query","name":"agentName","required":false,"description":"Agent name, for example `GPTBot`."},{"schema":{"type":"string"},"in":"query","name":"agentPlatform","required":false,"description":"Company that runs the agent, for example `OpenAI`."},{"schema":{"type":"string"},"in":"query","name":"agentCategory","required":false,"description":"Agent category, for example `ai-crawler` or `search-bot`."},{"schema":{"type":"string"},"in":"query","name":"pagePath","required":false,"description":"Only count visits to this exact page path."}],"operationId":"getReportsAiVisibilityPageReport","responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","required":["success","data","timestamp","path","requestId"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/AiVisibilityPageReportResponse"},"timestamp":{"type":"string","format":"date-time"},"path":{"type":"string"},"requestId":{"type":"string"}}},"example":{"success":true,"data":{"range":{"startDate":"2026-10-01","endDate":"2026-10-07","timezone":"Europe/Istanbul"},"rows":[{"pagePath":"/","agentPlatform":"Google","agentName":"Googlebot","agentCategory":"search-bot","isAi":false,"visits":630},{"pagePath":"/pricing","agentPlatform":"OpenAI","agentName":"GPTBot","agentCategory":"ai-crawler","isAi":true,"visits":315},{"pagePath":"/blog","agentPlatform":"Anthropic","agentName":"ClaudeBot","agentCategory":"ai-crawler","isAi":true,"visits":210},{"pagePath":"/product","agentPlatform":"Perplexity","agentName":"PerplexityBot","agentCategory":"ai-search-crawler","isAi":true,"visits":105}]},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/ai-visibility/page-report","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}},"400":{"description":"Invalid query, body or path parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"tenant-required":{"summary":"The tenantId query parameter is missing","value":{"success":false,"error":{"code":"tenant-required","message":"tenant-required"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/ai-visibility/page-report","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"validation-error":{"summary":"A parameter has an unsupported value","value":{"success":false,"error":{"code":"validation-error","message":"Validation failed for 'timeframe': timeframe must be one of: today, yesterday, last7days, last30days, custom","details":{"field":"timeframe","message":"timeframe must be one of: today, yesterday, last7days, last30days, custom"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/ai-visibility/page-report","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"401":{"description":"Missing, unknown, expired or revoked bearer credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"bearer-required":{"summary":"The Authorization header carries no Bearer credential","value":{"success":false,"error":{"code":"bearer-required","message":"bearer-required"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/ai-visibility/page-report","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"invalid-credential":{"summary":"The API key or access token is not recognized","value":{"success":false,"error":{"code":"invalid-credential","message":"invalid-credential"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/ai-visibility/page-report","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"credential-revoked":{"summary":"The API key was revoked or the connected app was disconnected","value":{"success":false,"error":{"code":"credential-revoked","message":"credential-revoked"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/ai-visibility/page-report","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"credential-expired":{"summary":"The API key or access token has expired","value":{"success":false,"error":{"code":"credential-expired","message":"credential-expired"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/ai-visibility/page-report","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"403":{"description":"The credential may not read the requested tenant or source","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"tenant-not-granted":{"summary":"The credential has no access to the requested tenant","value":{"success":false,"error":{"code":"tenant-not-granted","message":"tenant-not-granted","details":{"tenantId":"2f1c7c3e-6c1a-4f1e-9b7a-2d8e4c1a9f10"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/ai-visibility/page-report","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"source-does-not-belong-to-tenant":{"summary":"The requested source belongs to a different tenant","value":{"success":false,"error":{"code":"source-does-not-belong-to-tenant","message":"source-does-not-belong-to-tenant"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/ai-visibility/page-report","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"insufficient-scope":{"summary":"The credential lacks the scope that report access requires","value":{"success":false,"error":{"code":"insufficient-scope","message":"insufficient-scope","details":{"required":"reports:read"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/ai-visibility/page-report","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"404":{"description":"The tenant, source, funnel or event was not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"tenant-not-found":{"summary":"The granted tenant no longer exists","value":{"success":false,"error":{"code":"tenant-not-found","message":"tenant-not-found","details":{"tenantId":"2f1c7c3e-6c1a-4f1e-9b7a-2d8e4c1a9f10"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/ai-visibility/page-report","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"source-not-found":{"summary":"The source does not exist","value":{"success":false,"error":{"code":"source-not-found","message":"source-not-found","details":{"sourceId":"7b0e5a54-1d43-4c8e-8d2f-5a9c3e6b1f27"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/ai-visibility/page-report","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"429":{"description":"Rate limit exceeded; retry after the Retry-After header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"rate-limited":{"summary":"The credential exceeded its request rate","value":{"success":false,"error":{"code":"rate-limited","message":"rate-limited","details":{"retryAfterSeconds":30}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/ai-visibility/page-report","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}}},"summary":"Visited Pages","description":"Return pages visited by AI crawlers and agents.","tags":["AI Visibility"]}},"/v1/reports/sessions/metrics":{"get":{"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"query","name":"tenantId","required":true,"description":"UUID of the tenant to report on. Send it exactly once. `GET /v1/workspace/access` lists the tenants this credential can read."},{"schema":{"type":"string","format":"uuid"},"in":"query","name":"sourceId","required":false,"description":"UUID of one source of the tenant. Omit it to include every source of the tenant."},{"schema":{"anyOf":[{"enum":["today"],"type":"string"},{"enum":["yesterday"],"type":"string"},{"enum":["last7days"],"type":"string"},{"enum":["last30days"],"type":"string"},{"enum":["custom"],"type":"string"}]},"in":"query","name":"timeframe","required":false,"description":"Reporting period. The presets `today`, `yesterday`, `last7days` and `last30days` cover whole calendar days ending today in the request `timezone`; `last7days` is today and the six days before it. Use `custom` together with `startDate` and `endDate`. Defaults to `today`."},{"schema":{"type":"string","minLength":10,"maxLength":10,"pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"in":"query","name":"startDate","required":false,"description":"First day of a custom period, `YYYY-MM-DD`, inclusive. Send it only with `timeframe=custom`, together with `endDate`."},{"schema":{"type":"string","minLength":10,"maxLength":10,"pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"in":"query","name":"endDate","required":false,"description":"Last day of a custom period, `YYYY-MM-DD`, inclusive. Send it only with `timeframe=custom`; it must not be before `startDate`."},{"schema":{"type":"string","minLength":1,"maxLength":100},"in":"query","name":"timezone","required":false,"description":"IANA time zone name such as `Europe/Istanbul` or `America/New_York`. It sets the calendar-day boundaries of the period and of the time buckets. Defaults to `Europe/Istanbul`."},{"schema":{"anyOf":[{"maxItems":103,"type":"array","items":{"minLength":1,"maxLength":255,"type":"string"}},{"minLength":1,"maxLength":255,"type":"string"}]},"in":"query","name":"engagedEventNames","required":false,"description":"Event names that make a session engaged: a session with at least one of them counts as engaged. Repeat the parameter or separate names with commas. When omitted no session counts as engaged."}],"operationId":"getReportsSessionsMetrics","responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","required":["success","data","timestamp","path","requestId"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/SessionMetricsResponse"},"timestamp":{"type":"string","format":"date-time"},"path":{"type":"string"},"requestId":{"type":"string"}}},"example":{"success":true,"data":{"range":{"startDate":"2026-10-01","endDate":"2026-10-07","timezone":"Europe/Istanbul"},"metrics":{"sessions":{"current":4200,"previous":3750,"changePct":12},"engagedSessions":{"current":1890,"previous":1500,"changePct":26},"engagedSessionRate":{"current":45,"previous":40,"changePct":5},"sessionDuration":{"current":96,"previous":88,"changePct":9.09,"currentFormatted":"1m 36s","previousFormatted":"1m 28s"},"eventsPerSession":{"current":6,"previous":5.8,"changePct":3.45}}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/sessions/metrics","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}},"400":{"description":"Invalid query, body or path parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"tenant-required":{"summary":"The tenantId query parameter is missing","value":{"success":false,"error":{"code":"tenant-required","message":"tenant-required"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/sessions/metrics","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"validation-error":{"summary":"A parameter has an unsupported value","value":{"success":false,"error":{"code":"validation-error","message":"Validation failed for 'timeframe': timeframe must be one of: today, yesterday, last7days, last30days, custom","details":{"field":"timeframe","message":"timeframe must be one of: today, yesterday, last7days, last30days, custom"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/sessions/metrics","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"401":{"description":"Missing, unknown, expired or revoked bearer credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"bearer-required":{"summary":"The Authorization header carries no Bearer credential","value":{"success":false,"error":{"code":"bearer-required","message":"bearer-required"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/sessions/metrics","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"invalid-credential":{"summary":"The API key or access token is not recognized","value":{"success":false,"error":{"code":"invalid-credential","message":"invalid-credential"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/sessions/metrics","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"credential-revoked":{"summary":"The API key was revoked or the connected app was disconnected","value":{"success":false,"error":{"code":"credential-revoked","message":"credential-revoked"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/sessions/metrics","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"credential-expired":{"summary":"The API key or access token has expired","value":{"success":false,"error":{"code":"credential-expired","message":"credential-expired"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/sessions/metrics","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"403":{"description":"The credential may not read the requested tenant or source","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"tenant-not-granted":{"summary":"The credential has no access to the requested tenant","value":{"success":false,"error":{"code":"tenant-not-granted","message":"tenant-not-granted","details":{"tenantId":"2f1c7c3e-6c1a-4f1e-9b7a-2d8e4c1a9f10"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/sessions/metrics","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"source-does-not-belong-to-tenant":{"summary":"The requested source belongs to a different tenant","value":{"success":false,"error":{"code":"source-does-not-belong-to-tenant","message":"source-does-not-belong-to-tenant"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/sessions/metrics","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"insufficient-scope":{"summary":"The credential lacks the scope that report access requires","value":{"success":false,"error":{"code":"insufficient-scope","message":"insufficient-scope","details":{"required":"reports:read"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/sessions/metrics","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"404":{"description":"The tenant, source, funnel or event was not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"tenant-not-found":{"summary":"The granted tenant no longer exists","value":{"success":false,"error":{"code":"tenant-not-found","message":"tenant-not-found","details":{"tenantId":"2f1c7c3e-6c1a-4f1e-9b7a-2d8e4c1a9f10"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/sessions/metrics","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"source-not-found":{"summary":"The source does not exist","value":{"success":false,"error":{"code":"source-not-found","message":"source-not-found","details":{"sourceId":"7b0e5a54-1d43-4c8e-8d2f-5a9c3e6b1f27"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/sessions/metrics","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"429":{"description":"Rate limit exceeded; retry after the Retry-After header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"rate-limited":{"summary":"The credential exceeded its request rate","value":{"success":false,"error":{"code":"rate-limited","message":"rate-limited","details":{"retryAfterSeconds":30}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/sessions/metrics","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}}},"summary":"Session Metrics","description":"Return session metrics with a comparison against the previous period.","tags":["Sessions"]}},"/v1/reports/sessions/trends":{"get":{"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"query","name":"tenantId","required":true,"description":"UUID of the tenant to report on. Send it exactly once. `GET /v1/workspace/access` lists the tenants this credential can read."},{"schema":{"type":"string","format":"uuid"},"in":"query","name":"sourceId","required":false,"description":"UUID of one source of the tenant. Omit it to include every source of the tenant."},{"schema":{"anyOf":[{"enum":["today"],"type":"string"},{"enum":["yesterday"],"type":"string"},{"enum":["last7days"],"type":"string"},{"enum":["last30days"],"type":"string"},{"enum":["custom"],"type":"string"}]},"in":"query","name":"timeframe","required":false,"description":"Reporting period. The presets `today`, `yesterday`, `last7days` and `last30days` cover whole calendar days ending today in the request `timezone`; `last7days` is today and the six days before it. Use `custom` together with `startDate` and `endDate`. Defaults to `today`."},{"schema":{"type":"string","minLength":10,"maxLength":10,"pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"in":"query","name":"startDate","required":false,"description":"First day of a custom period, `YYYY-MM-DD`, inclusive. Send it only with `timeframe=custom`, together with `endDate`."},{"schema":{"type":"string","minLength":10,"maxLength":10,"pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"in":"query","name":"endDate","required":false,"description":"Last day of a custom period, `YYYY-MM-DD`, inclusive. Send it only with `timeframe=custom`; it must not be before `startDate`."},{"schema":{"type":"string","minLength":1,"maxLength":100},"in":"query","name":"timezone","required":false,"description":"IANA time zone name such as `Europe/Istanbul` or `America/New_York`. It sets the calendar-day boundaries of the period and of the time buckets. Defaults to `Europe/Istanbul`."},{"schema":{"anyOf":[{"enum":["minute"],"type":"string"},{"enum":["hour"],"type":"string"},{"enum":["day"],"type":"string"},{"enum":["week"],"type":"string"},{"enum":["month"],"type":"string"}]},"in":"query","name":"interval","required":false,"description":"Bucket size of `series`. Defaults to a size that fits the period: `hour` up to one day, `day` up to 14 days, `week` up to 90 days, otherwise `month`."},{"schema":{"anyOf":[{"maxItems":103,"type":"array","items":{"minLength":1,"maxLength":255,"type":"string"}},{"minLength":1,"maxLength":255,"type":"string"}]},"in":"query","name":"engagedEventNames","required":false,"description":"Event names that make a session engaged: a session with at least one of them counts as engaged. Repeat the parameter or separate names with commas. When omitted no session counts as engaged."}],"operationId":"getReportsSessionsTrends","responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","required":["success","data","timestamp","path","requestId"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/SessionTrendsResponse"},"timestamp":{"type":"string","format":"date-time"},"path":{"type":"string"},"requestId":{"type":"string"}}},"example":{"success":true,"data":{"range":{"startDate":"2026-10-01","endDate":"2026-10-07","timezone":"Europe/Istanbul"},"series":[{"date":"2026-10-01","sessions":520,"engagedSessions":234},{"date":"2026-10-02","sessions":600,"engagedSessions":270},{"date":"2026-10-03","sessions":640,"engagedSessions":288},{"date":"2026-10-04","sessions":600,"engagedSessions":270},{"date":"2026-10-05","sessions":660,"engagedSessions":297},{"date":"2026-10-06","sessions":660,"engagedSessions":297},{"date":"2026-10-07","sessions":520,"engagedSessions":234}]},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/sessions/trends","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}},"400":{"description":"Invalid query, body or path parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"tenant-required":{"summary":"The tenantId query parameter is missing","value":{"success":false,"error":{"code":"tenant-required","message":"tenant-required"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/sessions/trends","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"validation-error":{"summary":"A parameter has an unsupported value","value":{"success":false,"error":{"code":"validation-error","message":"Validation failed for 'timeframe': timeframe must be one of: today, yesterday, last7days, last30days, custom","details":{"field":"timeframe","message":"timeframe must be one of: today, yesterday, last7days, last30days, custom"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/sessions/trends","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"401":{"description":"Missing, unknown, expired or revoked bearer credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"bearer-required":{"summary":"The Authorization header carries no Bearer credential","value":{"success":false,"error":{"code":"bearer-required","message":"bearer-required"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/sessions/trends","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"invalid-credential":{"summary":"The API key or access token is not recognized","value":{"success":false,"error":{"code":"invalid-credential","message":"invalid-credential"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/sessions/trends","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"credential-revoked":{"summary":"The API key was revoked or the connected app was disconnected","value":{"success":false,"error":{"code":"credential-revoked","message":"credential-revoked"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/sessions/trends","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"credential-expired":{"summary":"The API key or access token has expired","value":{"success":false,"error":{"code":"credential-expired","message":"credential-expired"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/sessions/trends","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"403":{"description":"The credential may not read the requested tenant or source","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"tenant-not-granted":{"summary":"The credential has no access to the requested tenant","value":{"success":false,"error":{"code":"tenant-not-granted","message":"tenant-not-granted","details":{"tenantId":"2f1c7c3e-6c1a-4f1e-9b7a-2d8e4c1a9f10"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/sessions/trends","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"source-does-not-belong-to-tenant":{"summary":"The requested source belongs to a different tenant","value":{"success":false,"error":{"code":"source-does-not-belong-to-tenant","message":"source-does-not-belong-to-tenant"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/sessions/trends","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"insufficient-scope":{"summary":"The credential lacks the scope that report access requires","value":{"success":false,"error":{"code":"insufficient-scope","message":"insufficient-scope","details":{"required":"reports:read"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/sessions/trends","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"404":{"description":"The tenant, source, funnel or event was not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"tenant-not-found":{"summary":"The granted tenant no longer exists","value":{"success":false,"error":{"code":"tenant-not-found","message":"tenant-not-found","details":{"tenantId":"2f1c7c3e-6c1a-4f1e-9b7a-2d8e4c1a9f10"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/sessions/trends","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"source-not-found":{"summary":"The source does not exist","value":{"success":false,"error":{"code":"source-not-found","message":"source-not-found","details":{"sourceId":"7b0e5a54-1d43-4c8e-8d2f-5a9c3e6b1f27"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/sessions/trends","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"429":{"description":"Rate limit exceeded; retry after the Retry-After header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"rate-limited":{"summary":"The credential exceeded its request rate","value":{"success":false,"error":{"code":"rate-limited","message":"rate-limited","details":{"retryAfterSeconds":30}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/reports/sessions/trends","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}}},"summary":"Session Trends","description":"Return a session metrics time series.","tags":["Sessions"]}},"/v1/funnels":{"get":{"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"query","name":"tenantId","required":true,"description":"UUID of the tenant to report on. Send it exactly once. `GET /v1/workspace/access` lists the tenants this credential can read."},{"schema":{"type":"string","format":"uuid"},"in":"query","name":"sourceId","required":false,"description":"Return the funnels saved for this source. Omit it to return the funnels that are not tied to one source."}],"operationId":"getFunnels","responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","required":["success","data","timestamp","path","requestId"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/FunnelListResponse"},"timestamp":{"type":"string","format":"date-time"},"path":{"type":"string"},"requestId":{"type":"string"}}},"example":{"success":true,"data":{"items":[{"funnelId":"c41d9f0a-3b76-4e21-a5c8-9e2f7d1b6a34","funnelName":"Checkout funnel","tenantId":"2f1c7c3e-6c1a-4f1e-9b7a-2d8e4c1a9f10","sourceId":"7b0e5a54-1d43-4c8e-8d2f-5a9c3e6b1f27","createdAt":"2026-09-15T08:30:00.000Z","updatedAt":"2026-09-15T08:30:00.000Z","steps":[{"stepOrder":1,"stepType":"page","stepValue":"/pricing"},{"stepOrder":2,"stepType":"event","stepValue":"add_to_cart"},{"stepOrder":3,"stepType":"event","stepValue":"purchase"}],"breakdowns":[{"breakdownKey":"channel","breakdownLabel":"Channel"}]}],"total":1},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}},"400":{"description":"Invalid query, body or path parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"tenant-required":{"summary":"The tenantId query parameter is missing","value":{"success":false,"error":{"code":"tenant-required","message":"tenant-required"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"validation-error":{"summary":"A parameter is outside its allowed range","value":{"success":false,"error":{"code":"validation-error","message":"Validation failed: Expected number to be greater or equal to 1","details":{"field":"","message":"Expected number to be greater or equal to 1"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"401":{"description":"Missing, unknown, expired or revoked bearer credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"bearer-required":{"summary":"The Authorization header carries no Bearer credential","value":{"success":false,"error":{"code":"bearer-required","message":"bearer-required"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"invalid-credential":{"summary":"The API key or access token is not recognized","value":{"success":false,"error":{"code":"invalid-credential","message":"invalid-credential"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"credential-revoked":{"summary":"The API key was revoked or the connected app was disconnected","value":{"success":false,"error":{"code":"credential-revoked","message":"credential-revoked"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"credential-expired":{"summary":"The API key or access token has expired","value":{"success":false,"error":{"code":"credential-expired","message":"credential-expired"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"403":{"description":"The credential may not read the requested tenant or source","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"tenant-not-granted":{"summary":"The credential has no access to the requested tenant","value":{"success":false,"error":{"code":"tenant-not-granted","message":"tenant-not-granted","details":{"tenantId":"2f1c7c3e-6c1a-4f1e-9b7a-2d8e4c1a9f10"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"source-does-not-belong-to-tenant":{"summary":"The requested source belongs to a different tenant","value":{"success":false,"error":{"code":"source-does-not-belong-to-tenant","message":"source-does-not-belong-to-tenant"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"insufficient-scope":{"summary":"The credential lacks the scope that report access requires","value":{"success":false,"error":{"code":"insufficient-scope","message":"insufficient-scope","details":{"required":"reports:read"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"404":{"description":"The tenant, source, funnel or event was not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"tenant-not-found":{"summary":"The granted tenant no longer exists","value":{"success":false,"error":{"code":"tenant-not-found","message":"tenant-not-found","details":{"tenantId":"2f1c7c3e-6c1a-4f1e-9b7a-2d8e4c1a9f10"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"source-not-found":{"summary":"The source does not exist","value":{"success":false,"error":{"code":"source-not-found","message":"source-not-found","details":{"sourceId":"7b0e5a54-1d43-4c8e-8d2f-5a9c3e6b1f27"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"429":{"description":"Rate limit exceeded; retry after the Retry-After header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"rate-limited":{"summary":"The credential exceeded its request rate","value":{"success":false,"error":{"code":"rate-limited","message":"rate-limited","details":{"retryAfterSeconds":30}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}}},"summary":"List Funnels","description":"List saved funnels.","tags":["Funnels"]}},"/v1/funnels/preview":{"post":{"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"query","name":"tenantId","required":true,"description":"UUID of the tenant to report on. Send it exactly once. `GET /v1/workspace/access` lists the tenants this credential can read."},{"schema":{"type":"string","format":"uuid"},"in":"query","name":"sourceId","required":false,"description":"UUID of one source of the tenant. Omit it to include every source of the tenant."},{"schema":{"anyOf":[{"enum":["today"],"type":"string"},{"enum":["yesterday"],"type":"string"},{"enum":["last7days"],"type":"string"},{"enum":["last30days"],"type":"string"},{"enum":["custom"],"type":"string"}]},"in":"query","name":"timeframe","required":false,"description":"Reporting period. The presets `today`, `yesterday`, `last7days` and `last30days` cover whole calendar days ending today in the request `timezone`; `last7days` is today and the six days before it. Use `custom` together with `startDate` and `endDate`. Defaults to the last 30 days."},{"schema":{"type":"string"},"in":"query","name":"startDate","required":false,"description":"First day of a custom period, `YYYY-MM-DD`, inclusive. Send it only with `timeframe=custom`, together with `endDate`."},{"schema":{"type":"string"},"in":"query","name":"endDate","required":false,"description":"Last day of a custom period, `YYYY-MM-DD`, inclusive. Send it only with `timeframe=custom`; it must not be before `startDate`."},{"schema":{"type":"string","minLength":1,"maxLength":100},"in":"query","name":"timezone","required":false,"description":"IANA time zone name such as `Europe/Istanbul` or `America/New_York`. It sets the calendar-day boundaries of the period and of the time buckets. Defaults to `Europe/Istanbul`."}],"operationId":"postFunnelsPreview","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["steps","breakdowns"],"properties":{"steps":{"minItems":2,"maxItems":10,"type":"array","items":{"type":"object","required":["stepOrder","stepType","stepValue"],"properties":{"stepOrder":{"minimum":1,"maximum":10,"anyOf":[{"format":"integer","type":"string"},{"minimum":1,"maximum":10,"type":"integer"}]},"stepType":{"anyOf":[{"enum":["event"],"type":"string"},{"enum":["page"],"type":"string"}]},"stepValue":{"minLength":1,"type":"string"}}}},"breakdowns":{"maxItems":2,"type":"array","items":{"type":"object","required":["breakdownKey","breakdownLabel"],"properties":{"breakdownKey":{"anyOf":[{"enum":["source"],"type":"string"},{"enum":["medium"],"type":"string"},{"enum":["channel"],"type":"string"},{"enum":["country"],"type":"string"},{"enum":["city"],"type":"string"},{"enum":["device"],"type":"string"},{"enum":["browser"],"type":"string"},{"enum":["os"],"type":"string"}]},"breakdownLabel":{"type":"string"}}}}}},"example":{"steps":[{"stepOrder":1,"stepType":"event","stepValue":"page_view"},{"stepOrder":2,"stepType":"event","stepValue":"purchase"}],"breakdowns":[]}}},"description":"`steps` holds 2 to 10 steps numbered from 1 without gaps; each step is an `event` name or a `page` path that starts with `/`. Send `breakdowns` as an empty array: the preview returns step counts only. Nothing is saved."},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","required":["success","data","timestamp","path","requestId"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/FunnelPreviewResponse"},"timestamp":{"type":"string","format":"date-time"},"path":{"type":"string"},"requestId":{"type":"string"}}},"example":{"success":true,"data":{"range":{"startDate":"2026-10-01","endDate":"2026-10-07","timezone":"Europe/Istanbul"},"steps":[{"stepOrder":1,"stepLabel":"page_view","value":4200},{"stepOrder":2,"stepLabel":"purchase","value":113}]},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels/preview","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}},"400":{"description":"Invalid query, body or path parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"tenant-required":{"summary":"The tenantId query parameter is missing","value":{"success":false,"error":{"code":"tenant-required","message":"tenant-required"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels/preview","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"validation-error":{"summary":"A parameter has an unsupported value","value":{"success":false,"error":{"code":"validation-error","message":"Validation failed for 'timeframe': timeframe must be one of: today, yesterday, last7days, last30days, custom","details":{"field":"timeframe","message":"timeframe must be one of: today, yesterday, last7days, last30days, custom"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels/preview","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"401":{"description":"Missing, unknown, expired or revoked bearer credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"bearer-required":{"summary":"The Authorization header carries no Bearer credential","value":{"success":false,"error":{"code":"bearer-required","message":"bearer-required"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels/preview","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"invalid-credential":{"summary":"The API key or access token is not recognized","value":{"success":false,"error":{"code":"invalid-credential","message":"invalid-credential"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels/preview","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"credential-revoked":{"summary":"The API key was revoked or the connected app was disconnected","value":{"success":false,"error":{"code":"credential-revoked","message":"credential-revoked"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels/preview","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"credential-expired":{"summary":"The API key or access token has expired","value":{"success":false,"error":{"code":"credential-expired","message":"credential-expired"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels/preview","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"403":{"description":"The credential may not read the requested tenant or source","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"tenant-not-granted":{"summary":"The credential has no access to the requested tenant","value":{"success":false,"error":{"code":"tenant-not-granted","message":"tenant-not-granted","details":{"tenantId":"2f1c7c3e-6c1a-4f1e-9b7a-2d8e4c1a9f10"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels/preview","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"source-does-not-belong-to-tenant":{"summary":"The requested source belongs to a different tenant","value":{"success":false,"error":{"code":"source-does-not-belong-to-tenant","message":"source-does-not-belong-to-tenant"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels/preview","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"insufficient-scope":{"summary":"The credential lacks the scope that report access requires","value":{"success":false,"error":{"code":"insufficient-scope","message":"insufficient-scope","details":{"required":"reports:read"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels/preview","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"404":{"description":"The tenant, source, funnel or event was not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"tenant-not-found":{"summary":"The granted tenant no longer exists","value":{"success":false,"error":{"code":"tenant-not-found","message":"tenant-not-found","details":{"tenantId":"2f1c7c3e-6c1a-4f1e-9b7a-2d8e4c1a9f10"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels/preview","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"source-not-found":{"summary":"The source does not exist","value":{"success":false,"error":{"code":"source-not-found","message":"source-not-found","details":{"sourceId":"7b0e5a54-1d43-4c8e-8d2f-5a9c3e6b1f27"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels/preview","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"429":{"description":"Rate limit exceeded; retry after the Retry-After header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"rate-limited":{"summary":"The credential exceeded its request rate","value":{"success":false,"error":{"code":"rate-limited","message":"rate-limited","details":{"retryAfterSeconds":30}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels/preview","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}}},"summary":"Preview Funnel","description":"Analyse an unsaved funnel definition.","tags":["Funnels"]}},"/v1/funnels/{funnelId}/summary":{"get":{"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"path","name":"funnelId","required":true,"description":"UUID of a saved funnel, as returned by `GET /v1/funnels`."},{"schema":{"type":"string","format":"uuid"},"in":"query","name":"tenantId","required":true,"description":"UUID of the tenant to report on. Send it exactly once. `GET /v1/workspace/access` lists the tenants this credential can read."},{"schema":{"anyOf":[{"enum":["today"],"type":"string"},{"enum":["yesterday"],"type":"string"},{"enum":["last7days"],"type":"string"},{"enum":["last30days"],"type":"string"},{"enum":["custom"],"type":"string"}]},"in":"query","name":"timeframe","required":false,"description":"Reporting period. The presets `today`, `yesterday`, `last7days` and `last30days` cover whole calendar days ending today in the request `timezone`; `last7days` is today and the six days before it. Use `custom` together with `startDate` and `endDate`. Defaults to the last 30 days."},{"schema":{"type":"string"},"in":"query","name":"startDate","required":false,"description":"First day of a custom period, `YYYY-MM-DD`, inclusive. Send it only with `timeframe=custom`, together with `endDate`."},{"schema":{"type":"string"},"in":"query","name":"endDate","required":false,"description":"Last day of a custom period, `YYYY-MM-DD`, inclusive. Send it only with `timeframe=custom`; it must not be before `startDate`."},{"schema":{"type":"string","minLength":1,"maxLength":100},"in":"query","name":"timezone","required":false,"description":"IANA time zone name such as `Europe/Istanbul` or `America/New_York`. It sets the calendar-day boundaries of the period and of the time buckets. Defaults to `Europe/Istanbul`."}],"operationId":"getFunnelsByFunnelIdSummary","responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","required":["success","data","timestamp","path","requestId"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/FunnelSummaryResponse"},"timestamp":{"type":"string","format":"date-time"},"path":{"type":"string"},"requestId":{"type":"string"}}},"example":{"success":true,"data":{"range":{"startDate":"2026-10-01","endDate":"2026-10-07","timezone":"Europe/Istanbul"},"funnelSummary":{"entryCount":940,"completedCount":113,"conversionRate":12.02,"steps":[{"stepOrder":1,"stepType":"page","stepValue":"/pricing","stepName":"/pricing","count":940,"share":100},{"stepOrder":2,"stepType":"event","stepValue":"add_to_cart","stepName":"add_to_cart","count":235,"share":25},{"stepOrder":3,"stepType":"event","stepValue":"purchase","stepName":"purchase","count":113,"share":12.02}]},"stepPerformance":[{"stepOrder":1,"stepType":"page","stepValue":"/pricing","stepName":"/pricing","count":940,"percentage":100},{"stepOrder":2,"stepType":"event","stepValue":"add_to_cart","stepName":"add_to_cart","count":235,"percentage":25},{"stepOrder":3,"stepType":"event","stepValue":"purchase","stepName":"purchase","count":113,"percentage":12.02}],"dropOffs":[{"type":"entry","fromStep":null,"toStep":1,"entryCount":940,"dropOffCount":0,"dropOffRate":null},{"type":"dropOff","fromStep":1,"toStep":2,"dropOffCount":705,"dropOffRate":75},{"type":"dropOff","fromStep":2,"toStep":3,"dropOffCount":122,"dropOffRate":51.91}]},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels/{funnelId}/summary","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}},"400":{"description":"Invalid query, body or path parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"tenant-required":{"summary":"The tenantId query parameter is missing","value":{"success":false,"error":{"code":"tenant-required","message":"tenant-required"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels/{funnelId}/summary","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"validation-error":{"summary":"A parameter has an unsupported value","value":{"success":false,"error":{"code":"validation-error","message":"Validation failed for 'timeframe': timeframe must be one of: today, yesterday, last7days, last30days, custom","details":{"field":"timeframe","message":"timeframe must be one of: today, yesterday, last7days, last30days, custom"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels/{funnelId}/summary","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"401":{"description":"Missing, unknown, expired or revoked bearer credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"bearer-required":{"summary":"The Authorization header carries no Bearer credential","value":{"success":false,"error":{"code":"bearer-required","message":"bearer-required"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels/{funnelId}/summary","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"invalid-credential":{"summary":"The API key or access token is not recognized","value":{"success":false,"error":{"code":"invalid-credential","message":"invalid-credential"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels/{funnelId}/summary","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"credential-revoked":{"summary":"The API key was revoked or the connected app was disconnected","value":{"success":false,"error":{"code":"credential-revoked","message":"credential-revoked"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels/{funnelId}/summary","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"credential-expired":{"summary":"The API key or access token has expired","value":{"success":false,"error":{"code":"credential-expired","message":"credential-expired"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels/{funnelId}/summary","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"403":{"description":"The credential may not read the requested tenant or source","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"tenant-not-granted":{"summary":"The credential has no access to the requested tenant","value":{"success":false,"error":{"code":"tenant-not-granted","message":"tenant-not-granted","details":{"tenantId":"2f1c7c3e-6c1a-4f1e-9b7a-2d8e4c1a9f10"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels/{funnelId}/summary","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"insufficient-scope":{"summary":"The credential lacks the scope that report access requires","value":{"success":false,"error":{"code":"insufficient-scope","message":"insufficient-scope","details":{"required":"reports:read"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels/{funnelId}/summary","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"404":{"description":"The tenant, source, funnel or event was not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"tenant-not-found":{"summary":"The granted tenant no longer exists","value":{"success":false,"error":{"code":"tenant-not-found","message":"tenant-not-found","details":{"tenantId":"2f1c7c3e-6c1a-4f1e-9b7a-2d8e4c1a9f10"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels/{funnelId}/summary","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"funnel-not-found":{"summary":"The funnel does not exist in this tenant","value":{"success":false,"error":{"code":"funnel-not-found","message":"funnel-not-found","details":{"funnelId":"c41d9f0a-3b76-4e21-a5c8-9e2f7d1b6a34"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels/{funnelId}/summary","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"429":{"description":"Rate limit exceeded; retry after the Retry-After header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"rate-limited":{"summary":"The credential exceeded its request rate","value":{"success":false,"error":{"code":"rate-limited","message":"rate-limited","details":{"retryAfterSeconds":30}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels/{funnelId}/summary","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}}},"summary":"Funnel Summary","description":"Return funnel step performance over the selected date range.","tags":["Funnels"]}},"/v1/funnels/{funnelId}/breakdown":{"get":{"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"path","name":"funnelId","required":true,"description":"UUID of a saved funnel, as returned by `GET /v1/funnels`."},{"schema":{"type":"string","format":"uuid"},"in":"query","name":"tenantId","required":true,"description":"UUID of the tenant to report on. Send it exactly once. `GET /v1/workspace/access` lists the tenants this credential can read."},{"schema":{"anyOf":[{"enum":["today"],"type":"string"},{"enum":["yesterday"],"type":"string"},{"enum":["last7days"],"type":"string"},{"enum":["last30days"],"type":"string"},{"enum":["custom"],"type":"string"}]},"in":"query","name":"timeframe","required":false,"description":"Reporting period. The presets `today`, `yesterday`, `last7days` and `last30days` cover whole calendar days ending today in the request `timezone`; `last7days` is today and the six days before it. Use `custom` together with `startDate` and `endDate`. Defaults to the last 30 days."},{"schema":{"type":"string"},"in":"query","name":"startDate","required":false,"description":"First day of a custom period, `YYYY-MM-DD`, inclusive. Send it only with `timeframe=custom`, together with `endDate`."},{"schema":{"type":"string"},"in":"query","name":"endDate","required":false,"description":"Last day of a custom period, `YYYY-MM-DD`, inclusive. Send it only with `timeframe=custom`; it must not be before `startDate`."},{"schema":{"type":"string","minLength":1,"maxLength":100},"in":"query","name":"timezone","required":false,"description":"IANA time zone name such as `Europe/Istanbul` or `America/New_York`. It sets the calendar-day boundaries of the period and of the time buckets. Defaults to `Europe/Istanbul`."},{"schema":{"minimum":1,"maximum":100,"anyOf":[{"format":"numeric","type":"string"},{"minimum":1,"maximum":100,"type":"number"}]},"in":"query","name":"breakdownLimit","required":false,"description":"Maximum number of breakdown rows to return, 1 to 100. Defaults to 25."},{"schema":{"minimum":0,"maximum":10000,"anyOf":[{"format":"numeric","type":"string"},{"minimum":0,"maximum":10000,"type":"number"}]},"in":"query","name":"breakdownOffset","required":false,"description":"Number of breakdown rows to skip, 0 to 10000. Defaults to 0."},{"schema":{"type":"string"},"in":"query","name":"breakdownSearch","required":false,"description":"Only return rows whose breakdown value contains this text. Case-insensitive."},{"schema":{"anyOf":[{"enum":["share"],"type":"string"},{"enum":["breakdown"],"type":"string"},{"enum":["stepCount"],"type":"string"}]},"in":"query","name":"breakdownSortBy","required":false,"description":"`share` sorts by the share of funnel entries, `breakdown` alphabetically and `stepCount` by the count of the step in `breakdownSortStep`. Defaults to `share`."},{"schema":{"minimum":1,"maximum":10,"anyOf":[{"format":"numeric","type":"string"},{"minimum":1,"maximum":10,"type":"number"}]},"in":"query","name":"breakdownSortStep","required":false,"description":"Step number to sort by when `breakdownSortBy=stepCount`, from 1 to the number of steps. Defaults to 1."},{"schema":{"anyOf":[{"enum":["asc"],"type":"string"},{"enum":["desc"],"type":"string"}]},"in":"query","name":"breakdownSortDirection","required":false,"description":"`asc` or `desc`. Defaults to `desc`."},{"schema":{"type":"string"},"in":"query","name":"breakdownKeys","required":false,"description":"Comma-separated list of up to two dimensions: `source`, `medium`, `channel`, `country`, `city`, `device`, `browser`, `os`. With two keys the second is nested under the first in `children`. Defaults to the breakdowns saved with the funnel."}],"operationId":"getFunnelsByFunnelIdBreakdown","responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","required":["success","data","timestamp","path","requestId"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/FunnelBreakdownResponse"},"timestamp":{"type":"string","format":"date-time"},"path":{"type":"string"},"requestId":{"type":"string"}}},"example":{"success":true,"data":{"range":{"startDate":"2026-10-01","endDate":"2026-10-07","timezone":"Europe/Istanbul"},"breakdownTable":{"columns":{"breakdowns":[{"breakdownKey":"channel","breakdownLabel":"Channel"}],"steps":[{"stepOrder":1,"stepName":"/pricing"},{"stepOrder":2,"stepName":"add_to_cart"},{"stepOrder":3,"stepName":"purchase"}]},"totalRow":{"breakdownValues":{},"share":100,"stepCounts":[940,235,113],"stepRates":[100,100,100]},"rows":[{"breakdownValues":{"channel":"Direct"},"share":40,"stepCounts":[376,94,45],"stepRates":[40,40,39.82]},{"breakdownValues":{"channel":"OrganicSearch"},"share":35,"stepCounts":[329,82,40],"stepRates":[35,34.89,35.4]},{"breakdownValues":{"channel":"PaidSearch"},"share":25,"stepCounts":[235,59,28],"stepRates":[25,25.11,24.78]}],"pagination":{"limit":25,"offset":0,"total":3},"sort":{"sortBy":"share","sortStep":null,"sortDirection":"desc"},"search":""}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels/{funnelId}/breakdown","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}},"400":{"description":"Invalid query, body or path parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"tenant-required":{"summary":"The tenantId query parameter is missing","value":{"success":false,"error":{"code":"tenant-required","message":"tenant-required"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels/{funnelId}/breakdown","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"validation-error":{"summary":"A parameter has an unsupported value","value":{"success":false,"error":{"code":"validation-error","message":"Validation failed for 'timeframe': timeframe must be one of: today, yesterday, last7days, last30days, custom","details":{"field":"timeframe","message":"timeframe must be one of: today, yesterday, last7days, last30days, custom"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels/{funnelId}/breakdown","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"401":{"description":"Missing, unknown, expired or revoked bearer credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"bearer-required":{"summary":"The Authorization header carries no Bearer credential","value":{"success":false,"error":{"code":"bearer-required","message":"bearer-required"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels/{funnelId}/breakdown","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"invalid-credential":{"summary":"The API key or access token is not recognized","value":{"success":false,"error":{"code":"invalid-credential","message":"invalid-credential"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels/{funnelId}/breakdown","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"credential-revoked":{"summary":"The API key was revoked or the connected app was disconnected","value":{"success":false,"error":{"code":"credential-revoked","message":"credential-revoked"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels/{funnelId}/breakdown","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"credential-expired":{"summary":"The API key or access token has expired","value":{"success":false,"error":{"code":"credential-expired","message":"credential-expired"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels/{funnelId}/breakdown","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"403":{"description":"The credential may not read the requested tenant or source","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"tenant-not-granted":{"summary":"The credential has no access to the requested tenant","value":{"success":false,"error":{"code":"tenant-not-granted","message":"tenant-not-granted","details":{"tenantId":"2f1c7c3e-6c1a-4f1e-9b7a-2d8e4c1a9f10"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels/{funnelId}/breakdown","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"insufficient-scope":{"summary":"The credential lacks the scope that report access requires","value":{"success":false,"error":{"code":"insufficient-scope","message":"insufficient-scope","details":{"required":"reports:read"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels/{funnelId}/breakdown","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"404":{"description":"The tenant, source, funnel or event was not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"tenant-not-found":{"summary":"The granted tenant no longer exists","value":{"success":false,"error":{"code":"tenant-not-found","message":"tenant-not-found","details":{"tenantId":"2f1c7c3e-6c1a-4f1e-9b7a-2d8e4c1a9f10"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels/{funnelId}/breakdown","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"funnel-not-found":{"summary":"The funnel does not exist in this tenant","value":{"success":false,"error":{"code":"funnel-not-found","message":"funnel-not-found","details":{"funnelId":"c41d9f0a-3b76-4e21-a5c8-9e2f7d1b6a34"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels/{funnelId}/breakdown","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"429":{"description":"Rate limit exceeded; retry after the Retry-After header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"rate-limited":{"summary":"The credential exceeded its request rate","value":{"success":false,"error":{"code":"rate-limited","message":"rate-limited","details":{"retryAfterSeconds":30}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels/{funnelId}/breakdown","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}}},"summary":"Funnel Breakdown","description":"Return funnel performance grouped by the selected breakdown dimensions.","tags":["Funnels"]}},"/v1/funnels/options/events":{"get":{"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"query","name":"tenantId","required":true,"description":"UUID of the tenant to report on. Send it exactly once. `GET /v1/workspace/access` lists the tenants this credential can read."},{"schema":{"type":"string","format":"uuid"},"in":"query","name":"sourceId","required":false,"description":"UUID of one source of the tenant. Omit it to include every source of the tenant."},{"schema":{"type":"string","minLength":1,"maxLength":100},"in":"query","name":"timezone","required":false,"description":"IANA time zone name such as `Europe/Istanbul` or `America/New_York`. It sets the calendar-day boundaries of the period and of the time buckets. Defaults to `Europe/Istanbul`."},{"schema":{"type":"string"},"in":"query","name":"search","required":false,"description":"Only return event names that contain this text. Case-insensitive. At most 100 names from the last 30 days are returned."}],"operationId":"getFunnelsOptionsEvents","responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","required":["success","data","timestamp","path","requestId"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/FunnelEventOptionsResponse"},"timestamp":{"type":"string","format":"date-time"},"path":{"type":"string"},"requestId":{"type":"string"}}},"example":{"success":true,"data":{"items":[{"eventName":"add_to_cart","eventLabel":"add_to_cart"},{"eventName":"page_view","eventLabel":"page_view"},{"eventName":"purchase","eventLabel":"purchase"}]},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels/options/events","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}},"400":{"description":"Invalid query, body or path parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"tenant-required":{"summary":"The tenantId query parameter is missing","value":{"success":false,"error":{"code":"tenant-required","message":"tenant-required"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels/options/events","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"validation-error":{"summary":"A parameter is outside its allowed range","value":{"success":false,"error":{"code":"validation-error","message":"Validation failed: Expected number to be greater or equal to 1","details":{"field":"","message":"Expected number to be greater or equal to 1"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels/options/events","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"401":{"description":"Missing, unknown, expired or revoked bearer credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"bearer-required":{"summary":"The Authorization header carries no Bearer credential","value":{"success":false,"error":{"code":"bearer-required","message":"bearer-required"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels/options/events","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"invalid-credential":{"summary":"The API key or access token is not recognized","value":{"success":false,"error":{"code":"invalid-credential","message":"invalid-credential"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels/options/events","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"credential-revoked":{"summary":"The API key was revoked or the connected app was disconnected","value":{"success":false,"error":{"code":"credential-revoked","message":"credential-revoked"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels/options/events","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"credential-expired":{"summary":"The API key or access token has expired","value":{"success":false,"error":{"code":"credential-expired","message":"credential-expired"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels/options/events","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"403":{"description":"The credential may not read the requested tenant or source","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"tenant-not-granted":{"summary":"The credential has no access to the requested tenant","value":{"success":false,"error":{"code":"tenant-not-granted","message":"tenant-not-granted","details":{"tenantId":"2f1c7c3e-6c1a-4f1e-9b7a-2d8e4c1a9f10"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels/options/events","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"source-does-not-belong-to-tenant":{"summary":"The requested source belongs to a different tenant","value":{"success":false,"error":{"code":"source-does-not-belong-to-tenant","message":"source-does-not-belong-to-tenant"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels/options/events","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"insufficient-scope":{"summary":"The credential lacks the scope that report access requires","value":{"success":false,"error":{"code":"insufficient-scope","message":"insufficient-scope","details":{"required":"reports:read"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels/options/events","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"404":{"description":"The tenant, source, funnel or event was not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"tenant-not-found":{"summary":"The granted tenant no longer exists","value":{"success":false,"error":{"code":"tenant-not-found","message":"tenant-not-found","details":{"tenantId":"2f1c7c3e-6c1a-4f1e-9b7a-2d8e4c1a9f10"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels/options/events","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"source-not-found":{"summary":"The source does not exist","value":{"success":false,"error":{"code":"source-not-found","message":"source-not-found","details":{"sourceId":"7b0e5a54-1d43-4c8e-8d2f-5a9c3e6b1f27"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels/options/events","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"429":{"description":"Rate limit exceeded; retry after the Retry-After header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"rate-limited":{"summary":"The credential exceeded its request rate","value":{"success":false,"error":{"code":"rate-limited","message":"rate-limited","details":{"retryAfterSeconds":30}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels/options/events","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}}},"summary":"Step Events","description":"List event names available as funnel steps.","tags":["Funnels"]}},"/v1/funnels/options/pages":{"get":{"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"query","name":"tenantId","required":true,"description":"UUID of the tenant to report on. Send it exactly once. `GET /v1/workspace/access` lists the tenants this credential can read."},{"schema":{"type":"string","format":"uuid"},"in":"query","name":"sourceId","required":false,"description":"UUID of one source of the tenant. Omit it to include every source of the tenant."},{"schema":{"anyOf":[{"enum":["today"],"type":"string"},{"enum":["yesterday"],"type":"string"},{"enum":["last7days"],"type":"string"},{"enum":["last30days"],"type":"string"},{"enum":["custom"],"type":"string"}]},"in":"query","name":"timeframe","required":false,"description":"Reporting period. The presets `today`, `yesterday`, `last7days` and `last30days` cover whole calendar days ending today in the request `timezone`; `last7days` is today and the six days before it. Use `custom` together with `startDate` and `endDate`. Defaults to the last 30 days."},{"schema":{"type":"string"},"in":"query","name":"startDate","required":false,"description":"First day of a custom period, `YYYY-MM-DD`, inclusive. Send it only with `timeframe=custom`, together with `endDate`."},{"schema":{"type":"string"},"in":"query","name":"endDate","required":false,"description":"Last day of a custom period, `YYYY-MM-DD`, inclusive. Send it only with `timeframe=custom`; it must not be before `startDate`."},{"schema":{"type":"string","minLength":1,"maxLength":100},"in":"query","name":"timezone","required":false,"description":"IANA time zone name such as `Europe/Istanbul` or `America/New_York`. It sets the calendar-day boundaries of the period and of the time buckets. Defaults to `Europe/Istanbul`."},{"schema":{"type":"string"},"in":"query","name":"search","required":false,"description":"Only return page paths that contain this text. Case-insensitive."},{"schema":{"minimum":1,"maximum":500,"anyOf":[{"format":"numeric","type":"string"},{"minimum":1,"maximum":500,"type":"number"}]},"in":"query","name":"limit","required":false,"description":"Maximum number of page paths to return, 1 to 500. Defaults to 100."},{"schema":{"minimum":0,"maximum":10000,"anyOf":[{"format":"numeric","type":"string"},{"minimum":0,"maximum":10000,"type":"number"}]},"in":"query","name":"offset","required":false,"description":"Number of page paths to skip, 0 to 10000. Defaults to 0."}],"operationId":"getFunnelsOptionsPages","responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","required":["success","data","timestamp","path","requestId"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/FunnelPageOptionsResponse"},"timestamp":{"type":"string","format":"date-time"},"path":{"type":"string"},"requestId":{"type":"string"}}},"example":{"success":true,"data":{"items":[{"pagePath":"/"},{"pagePath":"/blog"},{"pagePath":"/pricing"},{"pagePath":"/product"}]},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels/options/pages","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}},"400":{"description":"Invalid query, body or path parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"tenant-required":{"summary":"The tenantId query parameter is missing","value":{"success":false,"error":{"code":"tenant-required","message":"tenant-required"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels/options/pages","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"validation-error":{"summary":"A parameter has an unsupported value","value":{"success":false,"error":{"code":"validation-error","message":"Validation failed for 'timeframe': timeframe must be one of: today, yesterday, last7days, last30days, custom","details":{"field":"timeframe","message":"timeframe must be one of: today, yesterday, last7days, last30days, custom"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels/options/pages","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"401":{"description":"Missing, unknown, expired or revoked bearer credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"bearer-required":{"summary":"The Authorization header carries no Bearer credential","value":{"success":false,"error":{"code":"bearer-required","message":"bearer-required"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels/options/pages","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"invalid-credential":{"summary":"The API key or access token is not recognized","value":{"success":false,"error":{"code":"invalid-credential","message":"invalid-credential"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels/options/pages","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"credential-revoked":{"summary":"The API key was revoked or the connected app was disconnected","value":{"success":false,"error":{"code":"credential-revoked","message":"credential-revoked"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels/options/pages","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"credential-expired":{"summary":"The API key or access token has expired","value":{"success":false,"error":{"code":"credential-expired","message":"credential-expired"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels/options/pages","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"403":{"description":"The credential may not read the requested tenant or source","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"tenant-not-granted":{"summary":"The credential has no access to the requested tenant","value":{"success":false,"error":{"code":"tenant-not-granted","message":"tenant-not-granted","details":{"tenantId":"2f1c7c3e-6c1a-4f1e-9b7a-2d8e4c1a9f10"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels/options/pages","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"source-does-not-belong-to-tenant":{"summary":"The requested source belongs to a different tenant","value":{"success":false,"error":{"code":"source-does-not-belong-to-tenant","message":"source-does-not-belong-to-tenant"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels/options/pages","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"insufficient-scope":{"summary":"The credential lacks the scope that report access requires","value":{"success":false,"error":{"code":"insufficient-scope","message":"insufficient-scope","details":{"required":"reports:read"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels/options/pages","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"404":{"description":"The tenant, source, funnel or event was not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"tenant-not-found":{"summary":"The granted tenant no longer exists","value":{"success":false,"error":{"code":"tenant-not-found","message":"tenant-not-found","details":{"tenantId":"2f1c7c3e-6c1a-4f1e-9b7a-2d8e4c1a9f10"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels/options/pages","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"source-not-found":{"summary":"The source does not exist","value":{"success":false,"error":{"code":"source-not-found","message":"source-not-found","details":{"sourceId":"7b0e5a54-1d43-4c8e-8d2f-5a9c3e6b1f27"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels/options/pages","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"429":{"description":"Rate limit exceeded; retry after the Retry-After header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"rate-limited":{"summary":"The credential exceeded its request rate","value":{"success":false,"error":{"code":"rate-limited","message":"rate-limited","details":{"retryAfterSeconds":30}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels/options/pages","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}}},"summary":"Step Pages","description":"List page paths available as funnel steps.","tags":["Funnels"]}},"/v1/funnels/options/breakdowns":{"get":{"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"query","name":"tenantId","required":true,"description":"UUID of the tenant to report on. Send it exactly once. `GET /v1/workspace/access` lists the tenants this credential can read."}],"operationId":"getFunnelsOptionsBreakdowns","responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","required":["success","data","timestamp","path","requestId"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/FunnelBreakdownOptionsResponse"},"timestamp":{"type":"string","format":"date-time"},"path":{"type":"string"},"requestId":{"type":"string"}}},"example":{"success":true,"data":{"items":[{"breakdownKey":"source","breakdownLabel":"Source"},{"breakdownKey":"medium","breakdownLabel":"Medium"},{"breakdownKey":"channel","breakdownLabel":"Channel"},{"breakdownKey":"country","breakdownLabel":"Country"},{"breakdownKey":"city","breakdownLabel":"City"},{"breakdownKey":"device","breakdownLabel":"Device"},{"breakdownKey":"browser","breakdownLabel":"Browser"},{"breakdownKey":"os","breakdownLabel":"Operating System"}]},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels/options/breakdowns","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}},"400":{"description":"Invalid query, body or path parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"tenant-required":{"summary":"The tenantId query parameter is missing","value":{"success":false,"error":{"code":"tenant-required","message":"tenant-required"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels/options/breakdowns","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"validation-error":{"summary":"A parameter is outside its allowed range","value":{"success":false,"error":{"code":"validation-error","message":"Validation failed: Expected number to be greater or equal to 1","details":{"field":"","message":"Expected number to be greater or equal to 1"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels/options/breakdowns","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"401":{"description":"Missing, unknown, expired or revoked bearer credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"bearer-required":{"summary":"The Authorization header carries no Bearer credential","value":{"success":false,"error":{"code":"bearer-required","message":"bearer-required"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels/options/breakdowns","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"invalid-credential":{"summary":"The API key or access token is not recognized","value":{"success":false,"error":{"code":"invalid-credential","message":"invalid-credential"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels/options/breakdowns","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"credential-revoked":{"summary":"The API key was revoked or the connected app was disconnected","value":{"success":false,"error":{"code":"credential-revoked","message":"credential-revoked"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels/options/breakdowns","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"credential-expired":{"summary":"The API key or access token has expired","value":{"success":false,"error":{"code":"credential-expired","message":"credential-expired"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels/options/breakdowns","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"403":{"description":"The credential may not read the requested tenant or source","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"tenant-not-granted":{"summary":"The credential has no access to the requested tenant","value":{"success":false,"error":{"code":"tenant-not-granted","message":"tenant-not-granted","details":{"tenantId":"2f1c7c3e-6c1a-4f1e-9b7a-2d8e4c1a9f10"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels/options/breakdowns","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"insufficient-scope":{"summary":"The credential lacks the scope that report access requires","value":{"success":false,"error":{"code":"insufficient-scope","message":"insufficient-scope","details":{"required":"reports:read"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels/options/breakdowns","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"404":{"description":"The tenant, source, funnel or event was not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"tenant-not-found":{"summary":"The granted tenant no longer exists","value":{"success":false,"error":{"code":"tenant-not-found","message":"tenant-not-found","details":{"tenantId":"2f1c7c3e-6c1a-4f1e-9b7a-2d8e4c1a9f10"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels/options/breakdowns","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"429":{"description":"Rate limit exceeded; retry after the Retry-After header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"rate-limited":{"summary":"The credential exceeded its request rate","value":{"success":false,"error":{"code":"rate-limited","message":"rate-limited","details":{"retryAfterSeconds":30}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels/options/breakdowns","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}}},"summary":"Breakdown Options","description":"List available funnel breakdown dimensions.","tags":["Funnels"]}},"/v1/funnels/{funnelId}":{"get":{"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"path","name":"funnelId","required":true,"description":"UUID of a saved funnel, as returned by `GET /v1/funnels`."},{"schema":{"type":"string","format":"uuid"},"in":"query","name":"tenantId","required":true,"description":"UUID of the tenant to report on. Send it exactly once. `GET /v1/workspace/access` lists the tenants this credential can read."}],"operationId":"getFunnelsByFunnelId","responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","required":["success","data","timestamp","path","requestId"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/Funnel"},"timestamp":{"type":"string","format":"date-time"},"path":{"type":"string"},"requestId":{"type":"string"}}},"example":{"success":true,"data":{"funnelId":"c41d9f0a-3b76-4e21-a5c8-9e2f7d1b6a34","funnelName":"Checkout funnel","tenantId":"2f1c7c3e-6c1a-4f1e-9b7a-2d8e4c1a9f10","sourceId":"7b0e5a54-1d43-4c8e-8d2f-5a9c3e6b1f27","createdAt":"2026-09-15T08:30:00.000Z","updatedAt":"2026-09-15T08:30:00.000Z","steps":[{"stepOrder":1,"stepType":"page","stepValue":"/pricing"},{"stepOrder":2,"stepType":"event","stepValue":"add_to_cart"},{"stepOrder":3,"stepType":"event","stepValue":"purchase"}],"breakdowns":[{"breakdownKey":"channel","breakdownLabel":"Channel"}]},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels/{funnelId}","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}},"400":{"description":"Invalid query, body or path parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"tenant-required":{"summary":"The tenantId query parameter is missing","value":{"success":false,"error":{"code":"tenant-required","message":"tenant-required"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels/{funnelId}","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"validation-error":{"summary":"A parameter is outside its allowed range","value":{"success":false,"error":{"code":"validation-error","message":"Validation failed: Expected number to be greater or equal to 1","details":{"field":"","message":"Expected number to be greater or equal to 1"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels/{funnelId}","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"401":{"description":"Missing, unknown, expired or revoked bearer credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"bearer-required":{"summary":"The Authorization header carries no Bearer credential","value":{"success":false,"error":{"code":"bearer-required","message":"bearer-required"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels/{funnelId}","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"invalid-credential":{"summary":"The API key or access token is not recognized","value":{"success":false,"error":{"code":"invalid-credential","message":"invalid-credential"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels/{funnelId}","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"credential-revoked":{"summary":"The API key was revoked or the connected app was disconnected","value":{"success":false,"error":{"code":"credential-revoked","message":"credential-revoked"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels/{funnelId}","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"credential-expired":{"summary":"The API key or access token has expired","value":{"success":false,"error":{"code":"credential-expired","message":"credential-expired"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels/{funnelId}","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"403":{"description":"The credential may not read the requested tenant or source","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"tenant-not-granted":{"summary":"The credential has no access to the requested tenant","value":{"success":false,"error":{"code":"tenant-not-granted","message":"tenant-not-granted","details":{"tenantId":"2f1c7c3e-6c1a-4f1e-9b7a-2d8e4c1a9f10"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels/{funnelId}","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"insufficient-scope":{"summary":"The credential lacks the scope that report access requires","value":{"success":false,"error":{"code":"insufficient-scope","message":"insufficient-scope","details":{"required":"reports:read"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels/{funnelId}","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"404":{"description":"The tenant, source, funnel or event was not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"tenant-not-found":{"summary":"The granted tenant no longer exists","value":{"success":false,"error":{"code":"tenant-not-found","message":"tenant-not-found","details":{"tenantId":"2f1c7c3e-6c1a-4f1e-9b7a-2d8e4c1a9f10"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels/{funnelId}","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"funnel-not-found":{"summary":"The funnel does not exist in this tenant","value":{"success":false,"error":{"code":"funnel-not-found","message":"funnel-not-found","details":{"funnelId":"c41d9f0a-3b76-4e21-a5c8-9e2f7d1b6a34"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels/{funnelId}","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"429":{"description":"Rate limit exceeded; retry after the Retry-After header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"rate-limited":{"summary":"The credential exceeded its request rate","value":{"success":false,"error":{"code":"rate-limited","message":"rate-limited","details":{"retryAfterSeconds":30}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/funnels/{funnelId}","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}}},"summary":"Funnel Definition","description":"Return the saved definition of a funnel.","tags":["Funnels"]}},"/v1/workspace/access":{"get":{"parameters":[{"schema":{"minimum":1,"maximum":100,"anyOf":[{"format":"numeric","type":"string"},{"minimum":1,"maximum":100,"type":"number"}]},"in":"query","name":"limit","required":false,"description":"Maximum number of tenants to return, 1 to 100. Defaults to 50."},{"schema":{"minimum":0,"anyOf":[{"format":"numeric","type":"string"},{"minimum":0,"type":"number"}]},"in":"query","name":"offset","required":false,"description":"Number of tenants to skip. Defaults to 0. `meta.hasNext` tells whether more tenants follow."}],"operationId":"getWorkspaceAccess","responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","required":["success","data","timestamp","path","requestId"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/WorkspaceAccessPage"},"meta":{"$ref":"#/components/schemas/WorkspaceAccessMeta"},"timestamp":{"type":"string","format":"date-time"},"path":{"type":"string"},"requestId":{"type":"string"}}},"example":{"success":true,"data":{"tenants":[{"id":"2f1c7c3e-6c1a-4f1e-9b7a-2d8e4c1a9f10","name":"Acme Store","reportType":"ecommerce","reportingCurrency":"USD","organization":{"id":"5d2a8f41-9c3e-4b7a-8e16-0f4c2b9d7a53","name":"Acme"},"sources":[{"id":"7b0e5a54-1d43-4c8e-8d2f-5a9c3e6b1f27","name":"Website","domain":"acme.example"}]},{"id":"9a6e3b70-2d5f-4c18-b3a9-6e1f8d2c4b05","name":"Acme Blog","reportType":"default","reportingCurrency":null,"organization":{"id":"5d2a8f41-9c3e-4b7a-8e16-0f4c2b9d7a53","name":"Acme"},"sources":[{"id":"e3f9c1d2-7a48-4b6e-9d05-1c8a2f7b6e94","name":"Blog","domain":null}]}]},"meta":{"total":2,"limit":50,"offset":0,"hasNext":false},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/workspace/access","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}},"400":{"description":"Invalid query, body or path parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"validation-error":{"summary":"A parameter is outside its allowed range","value":{"success":false,"error":{"code":"validation-error","message":"Validation failed: Expected number to be greater or equal to 1","details":{"field":"","message":"Expected number to be greater or equal to 1"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/workspace/access","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"401":{"description":"Missing, unknown, expired or revoked bearer credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"bearer-required":{"summary":"The Authorization header carries no Bearer credential","value":{"success":false,"error":{"code":"bearer-required","message":"bearer-required"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/workspace/access","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"invalid-credential":{"summary":"The API key or access token is not recognized","value":{"success":false,"error":{"code":"invalid-credential","message":"invalid-credential"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/workspace/access","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"credential-revoked":{"summary":"The API key was revoked or the connected app was disconnected","value":{"success":false,"error":{"code":"credential-revoked","message":"credential-revoked"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/workspace/access","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}},"credential-expired":{"summary":"The API key or access token has expired","value":{"success":false,"error":{"code":"credential-expired","message":"credential-expired"},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/workspace/access","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"403":{"description":"The credential may not read the requested tenant or source","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"insufficient-scope":{"summary":"The credential lacks the scope that report access requires","value":{"success":false,"error":{"code":"insufficient-scope","message":"insufficient-scope","details":{"required":"reports:read"}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/workspace/access","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}},"429":{"description":"Rate limit exceeded; retry after the Retry-After header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"rate-limited":{"summary":"The credential exceeded its request rate","value":{"success":false,"error":{"code":"rate-limited","message":"rate-limited","details":{"retryAfterSeconds":30}},"timestamp":"2026-11-01T09:30:00.000Z","path":"/v1/workspace/access","requestId":"req_01JD2V8Q9Z6R4XK7T3M5N8P2WA"}}}}}}},"summary":"Workspace Access","description":"List the organizations, tenants, and sources accessible to the current credential.","tags":["Workspace"]}}},"tags":[{"name":"Workspace","description":"Organizations, tenants and sources the credential may query."},{"name":"Overview","description":"Headline traffic totals for one tenant, with period comparison, breakdowns and a realtime snapshot."},{"name":"Pages","description":"Page metrics, top pages, entry and exit pages, page flow and page-view trends."},{"name":"Events","description":"Aggregated event totals, an event timeline and the detail of one event."},{"name":"Sessions","description":"Aggregated session and engagement metrics and their trends."},{"name":"Acquisition","description":"Traffic and conversions attributed to channels, sources, mediums and campaigns."},{"name":"Commerce","description":"Orders, revenue and item performance in the tenant's reporting currency."},{"name":"AI Visibility","description":"Visits from AI crawlers and agents, by agent and by page."},{"name":"Funnels","description":"Saved funnels and funnel analysis for one tenant."}],"servers":[{"url":"https://api.hardal.ai"}]}