If you don't have access to modify your companies DNS records, you can email the records to a co-worker who does to complete Domain Authentication and/or Link Branding setups. This email includes a direct link to the DNS records. The link does expire, but the recipient doesn't need login access to your Twilio SendGrid account.
This endpoint is used to share DNS records with a colleagues
Use this endpoint to send SendGrid-generated DNS record information to a co-worker so they can enter it into your DNS provider to validate your domain and link branding.
What type of records are sent will depend on whether you have chosen Automated Security or not. When using Automated Security, SendGrid provides you with three CNAME records. If you turn Automated Security off, you are instead given TXT and MX records.
If you pass a link_id
to this endpoint, the generated email will supply the DNS records necessary to complete Link Branding setup. If you pass a domain_id
to this endpoint, the generated email will supply the DNS records needed to complete Domain Authentication. Passing both IDs will generate an email with the records needed to complete both setup steps.
You can retrieve all your domain IDs from the returned id
fields for each domain using the "List all authenticated domains" endpoint. You can retrieve all of your link IDs using the "Retrieve all branded links" endpoint.
Bearer <<YOUR_API_KEY_HERE>>
application/json
The ID of the branded link.
0
The ID of your SendGrid domain record.
0
The email address to send the DNS information to.
A custom text block to include in the email body sent with the records.
Please set these DNS records in our hosting solution.
1const client = require("@sendgrid/client");2client.setApiKey(process.env.SENDGRID_API_KEY);34const data = {5link_id: 29719392,6domain_id: 46873408,7email: "my_colleague@example.com",8message: "DNS Record for verification",9};1011const request = {12url: `/v3/whitelabel/dns/email`,13method: "POST",14body: data,15};1617client18.request(request)19.then(([response, body]) => {20console.log(response.statusCode);21console.log(response.body);22})23.catch((error) => {24console.error(error);25});