Skip to main content
Unlisted page
This page is unlisted. Search engines will not index it, and only users having a direct link can access it.

SendGrid

This documentation for the SendGrid integration describes the technical capabilities of this integration, including authorization, scopes/permissions, and utilized endpoints. For more information on how to integrate SendGrid, visit our connection instructions.

Version

This integration utilizes the SendGrid REST API v3.

Base URL

The base URL used for all SendGrid API endpoints:
https://api.sendgrid.com/v3/

Authentication & Authorization

The DataGrail SendGrid integration connects using token authentication which requires an API Key.

Sensitive Credentials
Publicly exposing your API credentials can allow unauthorized access to SendGrid API endpoints by a third party. DataGrail stores your API credentials encrypted and protected.

Scopes

The SendGrid integration requires specific scopes that must be granted in order to function for a given capability.

ScopeAccessDeletionTransactional Mailer
Mail Send (Full Access)
Category Management (Full Access)
Marketing (Full Access)
Suppressions (Full Access)
Tracking (Full Access)
Email Activity (Full Access)

Endpoints Utilized

DataGrail uses the following endpoints to authorize and test the connection:


Limits

Limits in SendGrid are calculated using the leaky bucket algorithm. All requests that are made after rate limits have been exceeded are throttled and an HTTP 429 Too Many Requests error is returned. Requests succeed again after enough requests have emptied out of the bucket.

  • DataGrail supports requests throttling to stay within 70-80% of specified service rate limits.
  • DataGrail processes API responses with HTTP 429 status to interrupt requests, waiting and retrying (using an exponential backoff strategy).

Capabilities

Access

DataGrail's SendGrid integration provides Synchronous Access capabilities for the following supported identifier category: Email.

Data Interactions

For Access requests, DataGrail will take the following actions:

  1. Search contacts by the Data Subject email.
  2. If a match is found, DataGrail will extract all objects related to the contact, including the following:
Match Found
  • Fetch lists and segment IDs from the contact details.
  • Fetch all lists related to the contact by ID.
  • Fetch all segments related to the contact by ID.
  1. Filter all messages to search email activity by the Data Subject email.

Endpoints Utilized

MethodEndpointPurposeDocs
POST/marketing/contacts/searchFind contacts by email
GET/marketing/listsFetch lists from contact
GET/marketing/segmentsFetch segments from contact
GET/messagesFetch email activity from contact

Deletion

DataGrail's SendGrid integration provides Asynchronous (Whole Record) Deletion capabilities for the following supported identifier category: Email.

Data Interactions

For Deletion requests, DataGrail will take the following actions:

  1. Search contacts by the Data Subject email (primary emails only).
  2. Delete contacts by ID.
  3. Continuously repeat contact search by the Data Subject email to verify the deletion.

Endpoints Utilized


Transactional Mailer

The SendGrid integration can be used for your DataGrail account's transactional mailer.

Endpoints Utilized


 

Need help?
If you have any questions, please reach out to your dedicated CSM or contact us at support@datagrail.io.

Disclaimer: The information contained in this message does not constitute as legal advice. We would advise seeking professional counsel before acting on or interpreting any material.