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. 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.
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.
Bearer <<YOUR_API_KEY_HERE>>
application/json
100
256
Optional
256
256
Optional
256
Optional
100
Optional
100
Optional
2
Optional
150
Optional
10
Optional
100
1const client = require("@sendgrid/client");2client.setApiKey(process.env.SENDGRID_API_KEY);34const data = {5nickname: "Orders",6from_email: "orders@example.com",7from_name: "Example Orders",8reply_to: "orders@example.com",9reply_to_name: "Example Orders",10address: "1234 Fake St",11address2: "PO Box 1234",12state: "CA",13city: "San Francisco",14country: "USA",15zip: "94105",16};1718const request = {19url: `/v3/verified_senders`,20method: "POST",21body: data,22};2324client25.request(request)26.then(([response, body]) => {27console.log(response.statusCode);28console.log(response.body);29})30.catch((error) => {31console.error(error);32});