Skip to contentSkip to navigationSkip to topbar
On this page

Create Verified Sender Request



API Overview

api-overview page anchor

The Sender Verification API exposes multiple endpoints that allow you to programmatically manage the Sender Identities that are authorized to send email for your account. You can also manage Sender Identities in the SendGrid app by selecting Sender Authentication under Settings in the navigation bar(link takes you to an external page). For full app instructions, see Sender Verification.

The Sender Verification API provides a RESTful interface for creating new Sender Identities, retrieving a list of existing Sender Identities, checking the status of a Sender Identity, updating a Sender Identity, and deleting a Sender Identity.

This API offers additional endpoints to check for domains known to implement DMARC, and resend verification emails to Sender Identities that have yet to complete the verification process.


POST/v3/verified_senders

Base url: https://api.sendgrid.com (for global users and subusers)

Base url: https://api.eu.sendgrid.com (for EU regional subusers)

This endpoint allows you to create a new Sender Identify.

Upon successful submission of a POST request to this endpoint, an identity will be created, and a verification email will be sent to the address assigned to the from_email field. You must complete the verification process using the sent email to fully verify the sender.

If you need to resend the verification email, you can do so with the Resend Verified Sender Request, /resend/{id}, endpoint.

If you need to authenticate a domain rather than a Single Sender, see the Domain Authentication API.


Authentication

authentication page anchor
Property nameTypeRequiredDescription
authorizationstring
required
Default: Bearer <<YOUR_API_KEY_HERE>>
Encoding type:application/json
SchemaExample
Property nameTypeRequiredDescriptionChild properties
nicknamestring
required
Max length: 100

fromEmailstring<email>
required
Max length: 256

fromNamestring

Optional

Max length: 256

replyTostring<email>
required
Max length: 256

replyToNamestring

Optional

Max length: 256

addressstring

Optional

Max length: 100

address2string

Optional

Max length: 100

statestring

Optional

Max length: 2

citystring

Optional

Max length: 150

zipstring

Optional

Max length: 10

countrystring

Optional

Max length: 100
201400401403404500
SchemaExample
Property nameTypeRequiredDescriptionChild properties
idinteger

Optional


nicknamestring

Optional


fromEmailstring

Optional


fromNamestring

Optional


replyTostring

Optional


replyToNamestring

Optional


addressstring

Optional


address2string

Optional


statestring

Optional


citystring

Optional


zipstring

Optional


countrystring

Optional


verifiedboolean

Optional


lockedboolean

Optional

Create Verified Sender RequestLink to code sample: Create Verified Sender Request
1
const client = require("@sendgrid/client");
2
client.setApiKey(process.env.SENDGRID_API_KEY);
3
4
const data = {
5
nickname: "Orders",
6
from_email: "orders@example.com",
7
from_name: "Example Orders",
8
reply_to: "orders@example.com",
9
reply_to_name: "Example Orders",
10
address: "1234 Fake St",
11
address2: "PO Box 1234",
12
state: "CA",
13
city: "San Francisco",
14
country: "USA",
15
zip: "94105",
16
};
17
18
const request = {
19
url: `/v3/verified_senders`,
20
method: "POST",
21
body: data,
22
};
23
24
client
25
.request(request)
26
.then(([response, body]) => {
27
console.log(response.statusCode);
28
console.log(response.body);
29
})
30
.catch((error) => {
31
console.error(error);
32
});