Nylas · Schema

Nylas message.created notification object

Sent when a new message arrives or is synced for a user. This schema describes `data.object` inside the Nylas notification envelope.

CalendarCommunicationsContactsEmailMessagingSchedulingA2A

Properties

Name Type Description
id string The Nylas message ID.
grant_id string The grant ID that owns this message.
object string Always `message`.
thread_id string The thread this message belongs to.
subject string The message subject line.
from array Sender information.
to array Primary recipients.
cc array CC recipients.
bcc array BCC recipients.
reply_to array Reply-to addresses.
date integer Unix timestamp when the message was sent.
body string The HTML body of the message. Omitted in truncated notifications.
snippet string A short plaintext preview of the message body.
starred boolean Whether the message is starred/flagged.
unread boolean Whether the message is unread.
folders array Folder names the message belongs to (e.g. `INBOX`, `SENT`).
attachments array Attachment metadata. Does not include file content.
metadata object Custom key-value metadata you attached when sending the message.
View JSON Schema on GitHub

JSON Schema

nylas-message-created.schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/nylas/refs/heads/main/json-schema/nylas-message-created.schema.json",
  "title": "Nylas message.created notification object",
  "description": "Sent when a new message arrives or is synced for a user. This schema describes `data.object` inside the Nylas notification envelope.",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "The Nylas message ID."
    },
    "grant_id": {
      "type": "string",
      "description": "The grant ID that owns this message."
    },
    "object": {
      "type": "string",
      "description": "Always `message`.",
      "enum": [
        "message"
      ]
    },
    "thread_id": {
      "type": "string",
      "description": "The thread this message belongs to."
    },
    "subject": {
      "type": "string",
      "description": "The message subject line."
    },
    "from": {
      "type": "array",
      "description": "Sender information.",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Display name of the sender."
          },
          "email": {
            "type": "string",
            "format": "email",
            "description": "Email address of the sender."
          }
        }
      }
    },
    "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"
          }
        }
      }
    },
    "date": {
      "type": "integer",
      "description": "Unix timestamp when the message was sent."
    },
    "body": {
      "type": "string",
      "description": "The HTML body of the message. Omitted in truncated notifications."
    },
    "snippet": {
      "type": "string",
      "description": "A short plaintext preview of the message body."
    },
    "starred": {
      "type": "boolean",
      "description": "Whether the message is starred/flagged."
    },
    "unread": {
      "type": "boolean",
      "description": "Whether the message is unread."
    },
    "folders": {
      "type": "array",
      "description": "Folder names the message belongs to (e.g. `INBOX`, `SENT`).",
      "items": {
        "type": "string"
      }
    },
    "attachments": {
      "type": "array",
      "description": "Attachment metadata. Does not include file content.",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Attachment ID. Use with the [Attachments API](/docs/reference/api/attachments/) to download."
          },
          "filename": {
            "type": "string",
            "description": "Original filename."
          },
          "content_type": {
            "type": "string",
            "description": "MIME type."
          },
          "size": {
            "type": "integer",
            "description": "Size in bytes."
          },
          "is_inline": {
            "type": "boolean",
            "description": "Whether the attachment is an inline image."
          },
          "content_id": {
            "type": "string",
            "description": "Content ID for inline attachments (used in HTML img tags). Only present for inline attachments."
          },
          "content_disposition": {
            "type": "string",
            "description": "Content-Disposition header value."
          }
        }
      }
    },
    "metadata": {
      "type": "object",
      "description": "Custom key-value metadata you attached when sending the message.",
      "additionalProperties": true
    }
  },
  "required": [
    "id",
    "grant_id",
    "object"
  ],
  "x-nylas-trigger": "message.created",
  "x-nylas-category": "Messages",
  "x-provenance": {
    "method": "authored",
    "publisher": "Nylas",
    "source": "https://developer.nylas.com/docs/reference/notifications/messages/message-created/",
    "derived_from": "nylas/developer.nylas.com@a7995fb6:src/_component-data/notification-schemas.json",
    "generated": "2026-09-28"
  },
  "examples": [
    {
      "id": "<MESSAGE_ID>",
      "grant_id": "<NYLAS_GRANT_ID>",
      "object": "message",
      "thread_id": "<THREAD_ID>",
      "subject": "Let's send an attachment",
      "from": [
        {
          "email": "swag@example.com",
          "name": "Nylas Swag"
        }
      ],
      "to": [
        {
          "email": "nyla@example.com"
        }
      ],
      "cc": [
        {
          "email": "kaveh@example.com"
        }
      ],
      "bcc": [
        {
          "email": "leyah@example.com"
        }
      ],
      "reply_to": [],
      "date": 1723821981,
      "body": "<div dir=\"ltr\">Test with attachments</div>\r\n",
      "snippet": "This message has an attachment.",
      "starred": false,
      "unread": false,
      "folders": [
        "SENT"
      ],
      "attachments": [
        {
          "id": "<ATTACHMENT_ID>",
          "filename": "image.jpg",
          "content_type": "image/jpeg; name=\"image.jpg\"",
          "size": 4860136,
          "is_inline": false,
          "content_id": "<CID>",
          "content_disposition": "attachment; filename=\"image.jpg\"",
          "grant_id": "<NYLAS_GRANT_ID>"
        }
      ],
      "metadata": {
        "key1": "all-meetings",
        "key2": "on-site"
      }
    }
  ]
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/nylas-message-created.schema"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.