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
256
256
256
100
100
2
150
10
100
1const client = require('@sendgrid/client');2client.setApiKey(process.env.SENDGRID_API_KEY);34const 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};1718const request = {19url: `/v3/verified_senders`,20method: 'POST',21body: data22}2324client.request(request)25.then(([response, body]) => {26console.log(response.statusCode);27console.log(response.body);28})29.catch(error => {30console.error(error);31});