Skip to contentSkip to navigationSkip to topbar
On this page

Bulk Delete Integrations



API Overview

api-overview page anchor

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(link takes you to an external page) 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.


DELETE/v3/marketing/integrations

Base url: https://api.sendgrid.com (for global users and subusers)

Base url: https://api.eu.sendgrid.com (for EU regional subusers)

This endpoint deletes Integrations.


Authentication

authentication page anchor
Property nameTypeRequiredDescription
Authorizationstringrequired
Default: Bearer <<YOUR_API_KEY_HERE>>
Property nameTypeRequiredDescription
idsarray[string]required

Comma-delimited Integration IDs for the Integrations to delete.

204400403404500

Successful Operation

Bulk Delete IntegrationsLink to code sample: Bulk Delete Integrations
1
const client = require('@sendgrid/client');
2
client.setApiKey(process.env.SENDGRID_API_KEY);
3
4
const queryParams = {
5
"ids": [
6
"ZGkrHSypTsudrGkmdpJJ"
7
]
8
};
9
10
const request = {
11
url: `/v3/marketing/integrations`,
12
method: 'DELETE',
13
qs: queryParams
14
}
15
16
client.request(request)
17
.then(([response, body]) => {
18
console.log(response.statusCode);
19
console.log(response.body);
20
})
21
.catch(error => {
22
console.error(error);
23
});

Need some help?

Terms of service

Copyright © 2024 Twilio Inc.