post

/domain

This endpoint enables you to add a sending domain which is one of the pre-requisites for sending emails.

What is a Sending Domain? And why is it required?

A Sending Domain serves as the identity of the sender of an email. The ‘From’ header should indicate the sending domain so the recipients can understand the source of the email. E.g. when you receive the sign-up confirmation email from Pepipost, the from address will include alerts@pepipost.com. In this case, “pepipost.com” is the sending domain.

ESPs (Gmail, Yahoo, Hotmail etc.) check the sending domain’s DNS records to verify that Pepipost is authorized to send emails and to make sure that the emails are legitimate & not spoofing any domain.

To start sending emails to your customers, you can either use your top-level domain (example.com) or use a sub-domain (email.mycompany.com).

Domain Activation Process

Once you have added the domain to your Pepipost account, you need to follow below steps to activate your domain

  1. Add SPF, DKIM & Custom Envelope in your domain’s advanced DNS settings.
  2. Once the records are updated, answer a few questions regarding your email delivery.

Your domain & answers are submitted to our delivery experts for domain activation. Once all the checks are done, your domain will be activated and you will be notified on your registered email address.

Request Parameters

1 Header

Request Body

1 Example
Schema
object
domain
string

The domain you wish to include in the ‘From’ header of your emails.

required
envelopeName
string

The subdomain which will be used for tracking opens, clicks and unsubscribe

Responses

1 Example
Schema
object
data
object
message
string

Send a Test Request

Send requests directly from the browser (CORS must be enabled)
$$.env
No $$.env variables are being used in this request.