Skip to content
Skip to main content
POST
/v3/lists

Create a listBeta

Creates a list for your application. Lists are typed collections of values (domains, TLDs, or email addresses) that can be referenced by rules using the in_list condition operator.

The list's type is set at creation and cannot be changed.

NYLAS API KEY

Request body

name*string
Example: "Blocked domains"
minLength: 1maxLength: 256
descriptionstring
Example: "Domains we've identified as sending unwanted mail."
type*string

The kind of values the list holds. Immutable after creation.

domaintldaddress
Example: "domain"

Responses

request_idstring

ID of the request.

Example: "5fa64c92-e840-4357-86b9-2aa364d35b88"
dataobject
POSThttps://api.us.nylas.com/v3/lists

Find your API key in the Nylas Dashboard under API Keys in your application settings.

Loading editor...

Autocomplete and validation come from this endpoint's request schema.