Agent Account grants now return message headers through the fields query parameter, the same way Google, Microsoft, and EAS grants do. Your agent can read the RFC threading chain straight off a message instead of tracking thread_id alone, which helps when a conversation crosses systems or you need to prove which message a reply answered.
-
fields=include_headerson Agent Accounts returns the full header set on Get Message, Get all Messages, and Send Message. Agent Accounts join Google, Microsoft, and EAS as the providers that return the complete set. EWS and IMAP still return only the headers Nylas generates for MIME.curl --request GET \--url 'https://api.us.nylas.com/v3/grants/<NYLAS_GRANT_ID>/messages/<MESSAGE_ID>/?fields=include_headers' \--header 'Authorization: Bearer <NYLAS_API_KEY>' -
fields=include_basic_headerson Agent Accounts returns only the three RFC threading headers,Message-ID,In-Reply-To, andReferences. Use it when you’re matching replies to sent messages and don’t need the full header payload, which is often larger than the message body itself. With this addition,include_basic_headersworks on all six providers: Google, Microsoft, EAS, EWS, IMAP, and Agent Accounts. -
Both options work on the Send Message endpoint, so an agent gets the threading headers on the send response instead of making a follow-up
GETcall. This applies to synchronous sends; the parameter has no effect when you setsend_at.
Updated docs
Section titled “Updated docs”- Using email headers and MIME data lists Agent Accounts in the provider support section for both options.
- Supported endpoints for Agent Accounts documents both
fieldsvalues on the Get Message row. - Email threading for agents notes that both options also work on send.