{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sendmux-ai/json-schema/sendmux-ai-delivery-log-item-cursor-list-response-schema.json",
  "title": "DeliveryLogItemCursorListResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sendmux-ai-emails-api-openapi.yml#/components/schemas/DeliveryLogItemCursorListResponse",
  "allOf": [
    {
      "$ref": "#/$defs/SuccessEnvelope"
    },
    {
      "properties": {
        "data": {
          "items": {
            "$ref": "#/$defs/DeliveryLogItem"
          },
          "type": "array"
        },
        "meta": {
          "$ref": "#/$defs/ResponseMeta"
        },
        "pagination": {
          "$ref": "#/$defs/CursorPagination"
        }
      },
      "required": [
        "data",
        "pagination"
      ],
      "type": "object"
    }
  ],
  "unevaluatedProperties": false,
  "$defs": {
    "CursorPagination": {
      "additionalProperties": false,
      "properties": {
        "has_more": {
          "type": "boolean"
        },
        "next_cursor": {
          "type": "string"
        }
      },
      "required": [
        "has_more"
      ],
      "type": "object"
    },
    "DeliveryLogItem": {
      "additionalProperties": false,
      "properties": {
        "accepted_recipient_count": {
          "description": "Recipient occurrences accepted by the provider, or null when no recipient snapshot exists",
          "maximum": 50,
          "minimum": 0,
          "type": [
            "integer",
            "null"
          ]
        },
        "attempts": {
          "type": "number"
        },
        "created_at": {
          "description": "ISO 8601 creation timestamp",
          "type": "string"
        },
        "delivery_group": {
          "description": "Applied per-message delivery group public IDs, or null for absent, ignored or historical hints",
          "items": {
            "maxLength": 128,
            "minLength": 6,
            "type": "string"
          },
          "maxItems": 50,
          "minItems": 1,
          "type": [
            "array",
            "null"
          ]
        },
        "from_email": {
          "type": [
            "string",
            "null"
          ]
        },
        "id": {
          "description": "Log public ID",
          "type": "string"
        },
        "message_id": {
          "description": "Email Message-ID header",
          "type": [
            "string",
            "null"
          ]
        },
        "provider_id": {
          "description": "Provider public ID",
          "type": [
            "string",
            "null"
          ]
        },
        "provider_name": {
          "description": "Provider display name",
          "type": [
            "string",
            "null"
          ]
        },
        "recipient_count": {
          "description": "Total recipient occurrences, or null when no recipient snapshot exists",
          "maximum": 50,
          "minimum": 0,
          "type": [
            "integer",
            "null"
          ]
        },
        "rejected_recipient_count": {
          "description": "Recipient occurrences rejected by the provider, or null when no recipient snapshot exists",
          "maximum": 50,
          "minimum": 0,
          "type": [
            "integer",
            "null"
          ]
        },
        "sent_at": {
          "description": "ISO 8601 timestamp when email was sent",
          "type": [
            "string",
            "null"
          ]
        },
        "sent_from_email": {
          "description": "The actual from address used for delivery after transformation. NULL if no transformation occurred or for older log entries.",
          "type": [
            "string",
            "null"
          ]
        },
        "size_bytes": {
          "type": [
            "number",
            "null"
          ]
        },
        "status": {
          "enum": [
            "pending",
            "sent",
            "failed",
            "rejected"
          ],
          "type": "string"
        },
        "status_reason": {
          "type": [
            "string",
            "null"
          ]
        },
        "subject": {
          "type": [
            "string",
            "null"
          ]
        },
        "to_email": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "id",
        "provider_id",
        "provider_name",
        "delivery_group",
        "message_id",
        "from_email",
        "sent_from_email",
        "to_email",
        "subject",
        "status",
        "status_reason",
        "attempts",
        "sent_at",
        "size_bytes",
        "created_at",
        "recipient_count",
        "accepted_recipient_count",
        "rejected_recipient_count"
      ],
      "type": "object"
    },
    "ResponseMeta": {
      "additionalProperties": false,
      "properties": {
        "request_id": {
          "type": "string"
        }
      },
      "required": [
        "request_id"
      ],
      "type": "object"
    },
    "SuccessEnvelope": {
      "properties": {
        "meta": {
          "additionalProperties": {},
          "properties": {},
          "type": "object"
        },
        "ok": {
          "enum": [
            true
          ],
          "type": "boolean"
        }
      },
      "required": [
        "ok",
        "meta"
      ],
      "type": "object"
    }
  }
}