Skip to content

Quickstart: Nylas Inbound (Beta)

Beta Feature: Nylas Inbound is currently in beta. You can join the waitlist at https://inbound.nylas.com/.

Nylas Inbound lets you create a managed email address that accepts incoming mail and immediately delivers a webhook notification containing the message data to your application. It’s designed for simple, reliable email intake without building an OAuth flow or connecting to a third‑party mailbox.

Use Nylas Inbound when you want to:

  • Capture emails sent to a dedicated address (for example, intake@, leads@, tickets@)
  • Trigger workflows from incoming mail (routing, enrichment, automation)
  • Hand off message data to workers, LLMs, or downstream systems in real time

Nylas Inbound can send your application messages through webhooks, and stores received emails so you can access them through the GET /messages endpoint.

Domains for sending & receiving emails through Inbound are controlled at an Organization-level in Nylas. When you add a new domain you’ll need to choose which data center your applications are based in (US or EU).

Nylas offers a default inbound domain for testing which you can register through the dashboard. This gives you the address <alias>@<your-application>.nylas.email.

You can also use your own domain or subdomain combination with Nylas Inbound. This gives you full customization around the name of the inbox you’re creating. Once your domain is added to Nylas, we generate TXT & MX records for you to add to your DNS. Nylas will verify that those records have been added, and then you’ll be able to start using your domain.

It’s recommended to register a subdomain for this purpose (like inbound.yourcompany.com).

You can register your domain in your Organization Settings.

On the left navigation, click Inbound and then Inboxes to create new mailboxes and see existing mailboxes.

Screenshot of the Nylas Dashboard showing how to create and view inboxes

The dashboard allows you to see existing mailboxes and read the contents of that mailbox.

Go to Inbound > Inboxes, and then click View Emails to see the contents of that inbox.

You can see the body of the email, the message ID, and the grant ID for that inbox.

Screenshot of the Nylas Dashboard showing a sample email

Custom authentication is how you programmatically create inboxes for Nylas Inbound, using "provider": "inbox". This creates a Grant ID for that inbox, which you can use with the Email API to read the inbox with GET /messages.

Use your free Nylas domain (example):

curl --location 'https://api.us.nylas.com/v3/grants' \
--header 'Authorization: Bearer <API-Key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"provider": "inbox",
"settings": {
"email": "[email protected]"
}
}'

Inboxes have a grant_id that you can use with the Email API to read the inbox.

Use the GET /messages endpoint to list emails in the inbox:

Use the GET /messages/{id} endpoint to retrieve the full content of a specific email:

If a message contains attachments, they will be included in the message object. Each attachment has an id that you can use to download the file.

  1. Get the attachment ID from the message object.
  2. Use the GET /attachments/{id}/download endpoint to download the file content.
curl --request GET \
--url 'https://api.us.nylas.com/v3/grants/<NYLAS_GRANT_ID>/attachments/<ATTACHMENT_ID>/download?message_id=<MESSAGE_ID>' \
--header 'Authorization: Bearer <NYLAS_API_KEY>'

Nylas Inbound uses the message.created webhook to inform your application about new messages. There is a new "source": "inbox" which informs you that the message was received through Inbound. This can be set up on your Dashboard for your application, or through the POST /webhooks endpoint.

Create a Webhook with the message.created trigger to receive notifications for new Inbound messages:

curl --location 'https://api.us.nylas.com/v3/webhooks' \
--header 'Authorization: Bearer <API-Key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"trigger_types": ["message.created"],
"callback_url": "https://yourapp.example.com/webhooks/nylas"
}'

From any email client, send an email to the address you created.

You will receive a message.created webhook similar to other providers’ Message objects.

Example payload:

For the full set of fields and variations, see the webhook schemas for message.created.