Skip to contentSkip to navigationSkip to topbar
Rate this page:
On this page

Edit Verified Sender



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.


PATCH/v3/verified_senders/{id}

Base url: https://api.sendgrid.com

This endpoint allows you to update an existing Sender Identity.

Pass the id assigned to a Sender Identity to this endpoint as a path parameter. Include any fields you wish to update in the request body in JSON format.

You can retrieve the IDs associated with Sender Identities by passing a GET request to the Get All Verified Senders endpoint, /verified_senders.

Note: Unlike a PUT request, PATCH allows you to update only the fields you wish to edit. Fields that are not passed as part of a request will remain unaltered.


Authentication

authentication page anchor
Property nameTypeRequiredDescription
Authorizationstringrequired
Default: Bearer <<YOUR_API_KEY_HERE>>
Property nameTypeRequiredDescription
idstringrequired
SchemaExample
Property nameTypeRequiredDescriptionChild properties
nicknamestringrequired
Max length: 100

from_emailstring<email>required
Max length: 256

from_namestringOptional
Max length: 256

reply_tostring<email>required
Max length: 256

reply_to_namestringOptional
Max length: 256

addressstringOptional
Max length: 100

address2stringOptional
Max length: 100

statestringOptional
Max length: 2

citystringOptional
Max length: 150

zipstringOptional
Max length: 10

countrystringOptional
Max length: 100
200400401403404500
SchemaExample
Property nameTypeRequiredDescriptionChild properties
idinteger

nicknamestring

from_emailstring

from_namestring

reply_tostring

reply_to_namestring

addressstring

address2string

statestring

citystring

zipstring

countrystring

verifiedboolean

lockedboolean

Edit Verified Sender

edit-verified-sender page anchor
Node.js
Python
C#
Java
Go
PHP
Ruby
curl

_32
const client = require('@sendgrid/client');
_32
client.setApiKey(process.env.SENDGRID_API_KEY);
_32
_32
const id = "ZGkrHSypTsudrGkmdpJJ";
_32
const data = {
_32
"nickname": "Orders",
_32
"from_email": "orders@example.com",
_32
"from_name": "Example Orders",
_32
"reply_to": "orders@example.com",
_32
"reply_to_name": "Example Orders",
_32
"address": "1234 Fake St",
_32
"address2": "PO Box 1234",
_32
"state": "CA",
_32
"city": "San Francisco",
_32
"country": "USA",
_32
"zip": "94105"
_32
};
_32
_32
const request = {
_32
url: `/v3/verified_senders/${id}`,
_32
method: 'PATCH',
_32
body: data
_32
}
_32
_32
client.request(request)
_32
.then(([response, body]) => {
_32
console.log(response.statusCode);
_32
console.log(response.body);
_32
})
_32
.catch(error => {
_32
console.error(error);
_32
});


Rate this page: