Skip to contentSkip to navigationSkip to topbar
Rate this page:
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 Integrations

bulk-delete-integrations page anchor
Node.js
Python
C#
Java
Go
PHP
Ruby
curl

_23
const client = require('@sendgrid/client');
_23
client.setApiKey(process.env.SENDGRID_API_KEY);
_23
_23
const queryParams = {
_23
"ids": [
_23
"ZGkrHSypTsudrGkmdpJJ"
_23
]
_23
};
_23
_23
const request = {
_23
url: `/v3/marketing/integrations`,
_23
method: 'DELETE',
_23
qs: queryParams
_23
}
_23
_23
client.request(request)
_23
.then(([response, body]) => {
_23
console.log(response.statusCode);
_23
console.log(response.body);
_23
})
_23
.catch(error => {
_23
console.error(error);
_23
});


Rate this page: