addedOutput schema / $defs
Added value: +{
+ "EmailSummary": {
+ "description": "Trimmed view for list endpoints — drops the message bodies.\n\nBodies can be large and contain PII; paging through a year of mail\nshouldn't return every byte of every message just to render a list.\nUse ``EmailResponse`` (via ``GET /emails/{id}``) for the full row.",
+ "properties": {
+ "bcc_addresses": {
+ "anyOf": [
+ {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "BCC recipient email addresses, if any.",
+ "title": "Bcc Addresses"
+ },
+ "cc_addresses": {
+ "anyOf": [
+ {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "CC recipient email addresses, if any.",
+ "title": "Cc Addresses"
+ },
+ "direction": {
+ "default": "outbound",
+ "description": "'outbound' for emails Hail sent, 'inbound' for emails received.",
+ "enum": [
+ "outbound",
+ "inbound"
+ ],
+ "title": "Direction",
+ "type": "string"
+ },
+ "email_domain_id": {
+ "anyOf": [
+ {
+ "format": "uuid",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The sending domain used, if from_address belongs to one of the org's configured domains.",
+ "title": "Email Domain Id"
+ },
+ "end_reason": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Reason delivery failed or bounced, if applicable. Null on success or while pending.",
+ "title": "End Reason"
+ },
+ "failed_at": {
+ "anyOf": [
+ {
+ "format": "date-time",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "When the send failed, ISO 8601 timestamp. Null unless it failed.",
+ "title": "Failed At"
+ },
+ "from_address": {
+ "description": "Sender email address.",
+ "title": "From Address",
+ "type": "string"
+ },
+ "from_name": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Display name used on the From: header, when the sender supplied one. Always null on inbound rows.",
+ "title": "From Name"
+ },
+ "id": {
+ "description": "Unique identifier for this email.",
+ "format": "uuid",
+ "title": "Id",
+ "type": "string"
+ },
+ "metadata": {
+ "additionalProperties": true,
+ "description": "Free-form JSON object attached to the email, as sent on create. Not interpreted by Hail.",
+ "title": "Metadata",
+ "type": "object"
+ },
+ "organization_id": {
+ "description": "Organization that sent or received this email.",
+ "format": "uuid",
+ "title": "Organization Id",
+ "type": "string"
+ },
+ "provider_message_id": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The email provider's identifier for this message, if assigned.",
+ "title": "Provider Message Id"
+ },
+ "reply_to": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Reply-To email address, if set.",
+ "title": "Reply To"
+ },
+ "requested_at": {
+ "description": "When the send was requested, ISO 8601 timestamp.",
+ "format": "date-time",
+ "title": "Requested At",
+ "type": "string"
+ },
+ "sent_at": {
+ "anyOf": [
+ {
+ "format": "date-time",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "When the message was handed to the provider, ISO 8601 timestamp. Null until sent.",
+ "title": "Sent At"
+ },
+ "status": {
+ "description": "Delivery status: 'queued', 'sent', 'delivered', 'failed', 'bounced', 'complained', or 'received' (inbound emails).",
+ "enum": [
+ "queued",
+ "sent",
+ "delivered",
+ "failed",
+ "bounced",
+ "complained",
+ "received"
+ ],
+ "title": "Status",
+ "type": "string"
+ },
+ "subject": {
+ "description": "Email subject line.",
+ "title": "Subject",
+ "type": "string"
+ },
+ "to_addresses": {
+ "description": "Recipient email addresses.",
+ "items": {
+ "type": "string"
+ },
+ "title": "To Addresses",
+ "type": "array"
+ }
+ },
+ "required": [
+ "id",
+ "organization_id",
+ "email_domain_id",
+ "direction",
+ "from_address",
+ "from_name",
+ "to_addresses",
+ "cc_addresses",
+ "bcc_addresses",
+ "reply_to",
+ "subject",
+ "status",
+ "end_reason",
+ "provider_message_id",
+ "requested_at",
+ "sent_at",
+ "failed_at",
+ "metadata"
+ ],
+ "title": "EmailSummary",
+ "type": "object"
+ }
+}