Skip to content
Skip to main content
POST
https://api.us.nylas.com/v3/domains/{domain_id}/info

Get domain info

Returns the DNS record to add for one verification type.

Call this endpoint for each type you need, add the records at your DNS provider, then call Verify domain. Record hosts are relative to your root domain. Record values expire after 2 days.

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

Parameters

Path parameters

domain_id*string

The domain's ID or address.

Example: "0a2171c6-c298-4671-8b82-d832a7fd5170"

Request body

type*string

The verification type. Nylas doesn't check dmarc or arc records.

ownershipmxspfdkimfeedbackdmarcarc
Example: "ownership"
optionsobject

Options for the verification type. Only dkim uses options.

Responses

request_idstring

ID of the request.

Example: "216397503-ea08c1de-34f9-485c-971b-61cef4437eba"
dataobject
POSThttps://api.us.nylas.com/v3/domains/0a2171c6-c298-4671-8b82-d832a7fd5170/info

Paste the authorization token required for this endpoint.

domain_idrequiredstring

The domain's ID or address.

Loading editor...

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