Skip to content
Skip to main content
GET
https://api.us.nylas.com/v3/domains

List domains

Lists your organization's domains, newest first.

To get the next page, pass next_cursor as page_token. Every page that returns domains includes next_cursor. You've reached the end of the list when a page returns no domains: data is null and the response doesn't include next_cursor.

Requires an IAM API key with the domains.read permission. Application API keys and access tokens don't work.

Parameters

Query parameters

limitinteger

The maximum number of domains to return.

Default: 10
page_tokenstring

The next_cursor value from the previous response.

domainstring

Return only the domain with this address.

Example: "mail.example.com"
regionstring

Return only domains in this region, such as us or eu. Nylas matches the value exactly. A value that matches no domains returns an empty result.

Example: "us"

Responses

request_idstring

ID of the request.

Example: "5fa64c92-e840-4357-86b9-2aa364d35b88"
dataarray<object>nullable

The domains on this page. This is null when no domains match.

next_cursorstring

The cursor for the next page. Pass it as page_token. Included on every page that returns domains.

Example: "MTc2NTQwMzQ1NDI1MTpjcmVhdGVkX2F0OnRzOkRFU0M"
GEThttps://api.us.nylas.com/v3/domains?limit=10&domain=mail.example.com&region=us

Paste the authorization token required for this endpoint.