Disassociate a branded link from a subuser
To serve all of the click-tracked links, opens, and images in your emails from your domain, use Email link branding. This replaces sendgrid.net for Global Email send or eu.sendgrid.net for Regional Email send with your domain. To determine whether the email looks trustworthy, spam filters and recipient servers look at the links within emails. To determine if they can trust the links, these systems check the reputation of the root domain.
To manage link branding, go to the Sender Authentication section of the Twilio SendGrid App.
To learn more, see How to set up link branding.
DELETE/v3/whitelabel/links/subuser
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 take a branded link away from a subuser.
Link branding can be associated with subusers from the parent account. This functionality allows subusers to send mail using their parent's link branding. To associate link branding, the parent account must first create a branded link and validate it. The parent may then associate that branded link with a subuser via the API or the Subuser Management page of the Twilio SendGrid App.
Your request will receive a response with a 204 status code if the disassociation was successful.
Bearer <<YOUR_API_KEY_HERE>>The username of the subuser account that you want to disassociate a branded link from.
1const client = require("@sendgrid/client");2client.setApiKey(process.env.SENDGRID_API_KEY);34const queryParams = { username: "username" };56const request = {7url: `/v3/whitelabel/links/subuser`,8method: "DELETE",9qs: queryParams,10};1112client13.request(request)14.then(([response, body]) => {15console.log(response.statusCode);16console.log(response.body);17})18.catch((error) => {19console.error(error);20});