Inbound Domains

Inbound Domains allow you to receive emails using SparkPost. When combined with Relay Webhooks, SparkPost can parse the emails sent to the inbound domain and post their contents to your server.

In order to use an inbound domain, you will need to add MX records to your DNS settings.

MX Records for US Accounts

Name
Type
Data
Priority

<inbound domain>

MX

rx1.sparkpostmail.com

10

<inbound domain>

MX

rx2.sparkpostmail.com

10

<inbound domain>

MX

rx3.sparkpostmail.com

10

MX Records for EU Accounts

Name
Type
Data
Priority

<inbound domain>

MX

rx1.eu.sparkpostmail.com

10

<inbound domain>

MX

rx2.eu.sparkpostmail.com

10

<inbound domain>

MX

rx3.eu.sparkpostmail.com

10

Regional Endpoints

Please use the appropriate API endpoint based on your workspace region:

  • EU workspaces: https://email.eu-west-1.api.bird.com

  • US workspaces: https://email.us-west-1.api.bird.com

List all Inbound Domains

get
/workspaces/{workspaceId}/reach/inbound-domains

Returns an array with all your inbound domains.

Authorizations
AuthorizationstringRequired

API key for authentication. Format: AccessKey <token> or Bearer <token>.

Path parameters
workspaceIdstring · uuidRequired

The ID of the workspace

Responses
chevron-right
200

Successfully retrieved inbound domains list

application/json
get
/workspaces/{workspaceId}/reach/inbound-domains
200

Successfully retrieved inbound domains list

Create an Inbound Domain

post
/workspaces/{workspaceId}/reach/inbound-domains

Create an inbound domain by providing an inbound domain object as the POST request body.

Authorizations
AuthorizationstringRequired

API key for authentication. Format: AccessKey <token> or Bearer <token>.

Path parameters
workspaceIdstring · uuidRequired

The ID of the workspace

Body
domainstringRequired

Domain name for which SparkPost will receive inbound emails. Your DNS provider's MX record for this domain must point back to SparkPost.

Responses
chevron-right
200

Inbound domain created successfully

No content

post
/workspaces/{workspaceId}/reach/inbound-domains

No content

Retrieve an Inbound Domain

get
/workspaces/{workspaceId}/reach/inbound-domains/{domain}

Retrieve an inbound domain by specifying its domain name in the URI path.

Authorizations
AuthorizationstringRequired

API key for authentication. Format: AccessKey <token> or Bearer <token>.

Path parameters
workspaceIdstring · uuidRequired

The ID of the workspace

domainstringRequired

The inbound domain name

Responses
chevron-right
200

Successfully retrieved inbound domain

application/json
get
/workspaces/{workspaceId}/reach/inbound-domains/{domain}

Delete an Inbound Domain

delete
/workspaces/{workspaceId}/reach/inbound-domains/{domain}

Delete an inbound domain by specifying its domain name in the URI path.

Authorizations
AuthorizationstringRequired

API key for authentication. Format: AccessKey <token> or Bearer <token>.

Path parameters
workspaceIdstring · uuidRequired

The ID of the workspace

domainstringRequired

The inbound domain name

Responses
chevron-right
200

Inbound domain deleted successfully

No content

delete
/workspaces/{workspaceId}/reach/inbound-domains/{domain}

No content

Last updated

Was this helpful?