An Integration is a connection from a SendGrid Marketing Campaign to a supported third-party application. Integrations with different external applications allow you to sync data and create a more cohesive cross-product data experience.
Currently, only Segment Integrations are supported. Segment Integrations allow you to customize and automate email event forwarding to your Segment account.
The Integrations API allows you to create, retrieve, update, and delete your Integrations.
This endpoint deletes Integrations.
Bearer <<YOUR_API_KEY_HERE>>
Comma-delimited Integration IDs for the Integrations to delete.
Successful Operation
1const client = require("@sendgrid/client");2client.setApiKey(process.env.SENDGRID_API_KEY);34const queryParams = {5ids: ["ZGkrHSypTsudrGkmdpJJ"],6};78const request = {9url: `/v3/marketing/integrations`,10method: "DELETE",11qs: queryParams,12};1314client15.request(request)16.then(([response, body]) => {17console.log(response.statusCode);18console.log(response.body);19})20.catch((error) => {21console.error(error);22});