Email in Nylas API v3
The Nylas API v3 is in public beta. It might contain bugs, and might change before it is generally available. See the v3 Beta documentation for more information.
This page lists and explains the changes to Messages, Drafts, and related APIs between Nylas v2.7 and v3.
Messages and Drafts changes
- All Messages and Drafts now need a
grant_id
or equivalent access method (email address,me
, and so on). - You can now send Drafts.
- You can schedule send time for a Message (and edit and delete scheduled send times).
- Labels and Folders have been consolidated into Folders.
- Files are now Attachments.
- You can now delete Messages.
- New webhooks have been added:
message.send_success
andmessage.send_failed
for tracking scheduled-send results, andmessage.bounce_detected
to check for bounces. - Added
schedule_id
toPOST
calls. - Added
send_at
toPOST
calls. - Added
use_draft
toPOST
calls. - The
folder
property is nowfolders
in all Messages calls. - Deprecated the
labels
property in all Messages calls and replaced it withfolders
. - Deprecated the
not_in
query parameter inGET
calls. - Deprecated the
filename
query parameter inGET
calls. - Deprecated the
events
property inGET
calls. - Deprecated the
cids
property inGET
calls.
Folders and Labels endpoint changes
- All Labels endpoints have been replaced by Folders endpoints.
- Added
system_folder
for Google in all Folders calls. - Added
total_count
inPOST
andPUT
calls. - Added
unread_count
inGET
calls.
Send endpoint changes
- Added an
attachments
property toPOST
calls. - Added
send_at
toPOST
calls for scheduled Messages. - Added
is_draft
toPOST
calls for scheduled send.
Files (Attachments) changes
- The Files endpoints have been replaced by Attachments endpoints.
POST
File upload has been deprecated.GET /files
has been deprecated.DELETE /files/<file_id>
has been deprecated.