addedOutput schema / $defs
Added value: +{
+ "EmailStatsBucket": {
+ "properties": {
+ "bounced": {
+ "default": 0,
+ "description": "Emails bounced (soft or hard) in the window.",
+ "title": "Bounced",
+ "type": "integer"
+ },
+ "bounced_hard": {
+ "default": 0,
+ "description": "Emails hard-bounced in the window. Subset of bounced.",
+ "title": "Bounced Hard",
+ "type": "integer"
+ },
+ "bucket_start": {
+ "description": "Start of this bucket, ISO 8601 timestamp.",
+ "format": "date-time",
+ "title": "Bucket Start",
+ "type": "string"
+ },
+ "clicked": {
+ "default": 0,
+ "description": "Total click events in the window, including repeat clicks by the same recipient. HTML emails only; plain-text-only emails are never tracked for clicks.",
+ "title": "Clicked",
+ "type": "integer"
+ },
+ "complained": {
+ "default": 0,
+ "description": "Emails that received a spam complaint in the window.",
+ "title": "Complained",
+ "type": "integer"
+ },
+ "delivered": {
+ "default": 0,
+ "description": "Emails confirmed delivered in the window.",
+ "title": "Delivered",
+ "type": "integer"
+ },
+ "delivery_delayed": {
+ "default": 0,
+ "description": "Emails with a delivery-delayed event in the window.",
+ "title": "Delivery Delayed",
+ "type": "integer"
+ },
+ "opened": {
+ "default": 0,
+ "description": "Total open events in the window, including repeat opens by the same recipient. HTML emails only; plain-text-only emails are never tracked for opens.",
+ "title": "Opened",
+ "type": "integer"
+ },
+ "rejected": {
+ "default": 0,
+ "description": "Emails rejected by the provider before sending, in the window.",
+ "title": "Rejected",
+ "type": "integer"
+ },
+ "sent": {
+ "default": 0,
+ "description": "Emails sent in the window.",
+ "title": "Sent",
+ "type": "integer"
+ },
+ "unique_clicked": {
+ "default": 0,
+ "description": "Distinct emails clicked at least once in the window (HTML emails only).",
+ "title": "Unique Clicked",
+ "type": "integer"
+ },
+ "unique_opened": {
+ "default": 0,
+ "description": "Distinct emails opened at least once in the window (HTML emails only).",
+ "title": "Unique Opened",
+ "type": "integer"
+ }
+ },
+ "required": [
+ "sent",
+ "delivered",
+ "delivery_delayed",
+ "bounced",
+ "bounced_hard",
+ "complained",
+ "rejected",
+ "opened",
+ "clicked",
+ "unique_opened",
+ "unique_clicked",
+ "bucket_start"
+ ],
+ "title": "EmailStatsBucket",
+ "type": "object"
+ },
+ "EmailStatsCounts": {
+ "properties": {
+ "bounced": {
+ "default": 0,
+ "description": "Emails bounced (soft or hard) in the window.",
+ "title": "Bounced",
+ "type": "integer"
+ },
+ "bounced_hard": {
+ "default": 0,
+ "description": "Emails hard-bounced in the window. Subset of bounced.",
+ "title": "Bounced Hard",
+ "type": "integer"
+ },
+ "clicked": {
+ "default": 0,
+ "description": "Total click events in the window, including repeat clicks by the same recipient. HTML emails only; plain-text-only emails are never tracked for clicks.",
+ "title": "Clicked",
+ "type": "integer"
+ },
+ "complained": {
+ "default": 0,
+ "description": "Emails that received a spam complaint in the window.",
+ "title": "Complained",
+ "type": "integer"
+ },
+ "delivered": {
+ "default": 0,
+ "description": "Emails confirmed delivered in the window.",
+ "title": "Delivered",
+ "type": "integer"
+ },
+ "delivery_delayed": {
+ "default": 0,
+ "description": "Emails with a delivery-delayed event in the window.",
+ "title": "Delivery Delayed",
+ "type": "integer"
+ },
+ "opened": {
+ "default": 0,
+ "description": "Total open events in the window, including repeat opens by the same recipient. HTML emails only; plain-text-only emails are never tracked for opens.",
+ "title": "Opened",
+ "type": "integer"
+ },
+ "rejected": {
+ "default": 0,
+ "description": "Emails rejected by the provider before sending, in the window.",
+ "title": "Rejected",
+ "type": "integer"
+ },
+ "sent": {
+ "default": 0,
+ "description": "Emails sent in the window.",
+ "title": "Sent",
+ "type": "integer"
+ },
+ "unique_clicked": {
+ "default": 0,
+ "description": "Distinct emails clicked at least once in the window (HTML emails only).",
+ "title": "Unique Clicked",
+ "type": "integer"
+ },
+ "unique_opened": {
+ "default": 0,
+ "description": "Distinct emails opened at least once in the window (HTML emails only).",
+ "title": "Unique Opened",
+ "type": "integer"
+ }
+ },
+ "required": [
+ "sent",
+ "delivered",
+ "delivery_delayed",
+ "bounced",
+ "bounced_hard",
+ "complained",
+ "rejected",
+ "opened",
+ "clicked",
+ "unique_opened",
+ "unique_clicked"
+ ],
+ "title": "EmailStatsCounts",
+ "type": "object"
+ },
+ "EmailStatsRates": {
+ "description": "All None when sent == 0 in the window.",
+ "properties": {
+ "bounce": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "bounced_hard / sent for the window. Null when sent == 0.",
+ "title": "Bounce"
+ },
+ "click": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "unique_clicked / sent for the window. Null when sent == 0. Only HTML emails can be click-tracked, so plain-text sends lower this rate.",
+ "title": "Click"
+ },
+ "complaint": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "complained / sent for the window. Null when sent == 0.",
+ "title": "Complaint"
+ },
+ "delivery": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "delivered / sent for the window. Null when sent == 0.",
+ "title": "Delivery"
+ },
+ "open": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "unique_opened / sent for the window. Null when sent == 0. Only HTML emails can be opened-tracked, so plain-text sends lower this rate.",
+ "title": "Open"
+ }
+ },
+ "required": [
+ "delivery",
+ "bounce",
+ "complaint",
+ "open",
+ "click"
+ ],
+ "title": "EmailStatsRates",
+ "type": "object"
+ }
+}
addedOutput schema / anyOf
Added value: +[
+ {
+ "properties": {
+ "bucket": {
+ "description": "Time-bucket size used for the series.",
+ "enum": [
+ "hour",
+ "day"
+ ],
+ "title": "Bucket",
+ "type": "string"
+ },
+ "from": {
+ "description": "Start of the queried window, ISO 8601 timestamp (inclusive).",
+ "format": "date-time",
+ "title": "From",
+ "type": "string"
+ },
+ "rates": {
+ "$ref": "#/$defs/EmailStatsRates",
+ "description": "Derived rates (delivery, bounce, complaint, open, click) for the whole window. Each individual rate is null when sent == 0."
+ },
+ "series": {
+ "description": "Per-bucket event counts across the window, in chronological order.",
+ "items": {
+ "$ref": "#/$defs/EmailStatsBucket"
+ },
+ "title": "Series",
+ "type": "array"
+ },
+ "to": {
+ "description": "End of the queried window, ISO 8601 timestamp (exclusive).",
+ "format": "date-time",
+ "title": "To",
+ "type": "string"
+ },
+ "totals": {
+ "$ref": "#/$defs/EmailStatsCounts",
+ "description": "Event counts summed across the whole window."
+ }
+ },
+ "required": [
+ "from",
+ "to",
+ "bucket",
+ "totals",
+ "rates",
+ "series"
+ ],
+ "title": "EmailStatsResponse",
+ "type": "object"
+ },
+ {
+ "properties": {
+ "error": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "error"
+ ],
+ "type": "object"
+ }
+]