{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/nylas/refs/heads/main/json-schema/nylas-message-send-success.schema.json", "title": "Nylas message.send_success notification object", "description": "The `data` object includes `grant_id` at the top level alongside `object`.", "type": "object", "properties": { "grant_id": { "type": "string", "description": "The grant ID that sent this message. Present at the `data` level." }, "object": { "type": "object", "description": "The message that was sent.", "properties": { "object": { "type": "string", "description": "Always `message`.", "enum": [ "message" ] }, "grant_id": { "type": "string", "description": "The grant ID that sent this message." }, "id": { "type": "string", "description": "The Nylas message ID." }, "subject": { "type": "string", "description": "The message subject line." }, "body": { "type": "string", "description": "The message body. Typically omitted from webhook payloads; use `snippet` instead." }, "from": { "type": "array", "description": "Sender information.", "items": { "type": "object", "properties": { "name": { "type": "string" }, "email": { "type": "string", "format": "email" } } } }, "to": { "type": "array", "description": "Primary recipients.", "items": { "type": "object", "properties": { "name": { "type": "string" }, "email": { "type": "string", "format": "email" } } } }, "cc": { "type": "array", "description": "CC recipients.", "items": { "type": "object", "properties": { "name": { "type": "string" }, "email": { "type": "string", "format": "email" } } } }, "bcc": { "type": "array", "description": "BCC recipients.", "items": { "type": "object", "properties": { "name": { "type": "string" }, "email": { "type": "string", "format": "email" } } } }, "reply_to": { "type": "array", "description": "Reply-to addresses.", "items": { "type": "object", "properties": { "name": { "type": "string" }, "email": { "type": "string", "format": "email" } } } }, "attachments": { "type": "array", "description": "Attachment metadata.", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Attachment ID." }, "filename": { "type": "string", "description": "Original filename." }, "content_type": { "type": "string", "description": "MIME type." }, "size": { "type": "integer", "description": "Size in bytes." }, "content": { "type": "string", "description": "Base64-encoded attachment content." } } } }, "schedule_id": { "type": "string", "description": "The scheduled send job ID." }, "send_at": { "type": "integer", "description": "Unix timestamp when the message was scheduled to send." }, "use_draft": { "type": "boolean", "description": "Whether the message was sent from a draft. Omitted when `false` (the default)." } } } }, "x-nylas-trigger": "message.send_success", "x-nylas-category": "Messages", "x-provenance": { "method": "authored", "publisher": "Nylas", "source": "https://developer.nylas.com/docs/reference/notifications/messages/message-send_success/", "derived_from": "nylas/developer.nylas.com@a7995fb6:src/_component-data/notification-schemas.json", "generated": "2026-09-28" }, "x-nylas-upstream-issue": "The published example for this trigger does not validate against its published schema ('message' is not of type 'object'), so it is omitted here. Reported to the Nylas docs team." }