SendGrid Tracking API

Twilio SendGrid Tracking Settings API

Operations 9

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /v3/tracking_settings List all tracking settings · Retrieve Tracking Settings #
Ask an LLM
“Which email tracking features are turned on for my account?”
“Can I see all my tracking settings in one place?”
Tell an agent
List all my tracking settings.
Show every email tracking setting on my account.
GET /v3/tracking_settings/click Get click tracking setting · Retrieve Click Track Settings #
Ask an LLM
“Is click tracking currently enabled on my emails?”
“Are the links in my emails being rewritten to track clicks right now?”
Tell an agent
Show my click tracking setting.
Check whether click tracking is on.
PATCH /v3/tracking_settings/click Turn click tracking on or off · Update Click Tracking Settings #
Ask an LLM
“Can I stop SendGrid from rewriting the links in my emails?”
“What's needed to enable click tracking across my account?”
Tell an agent
Set click tracking enabled to {enabled}.
Turn off click tracking.
GET /v3/tracking_settings/google_analytics Get Google Analytics tracking setting · Retrieve Google Analytics Settings #
Ask an LLM
“Are UTM parameters being added to my email links for Google Analytics?”
“What UTM source and campaign values am I currently using?”
Tell an agent
Show my Google Analytics tracking setting.
Get my current UTM tracking values.
PATCH /v3/tracking_settings/google_analytics Update Google Analytics UTM tracking · Update Google Analytics Settings #
Ask an LLM
“Can I automatically tag my email links with UTM parameters for Google Analytics?”
“Is it possible to change the utm_campaign name added to my links?”
Tell an agent
Enable Google Analytics tracking with source {utm_source} and medium {utm_medium}.
Set the UTM campaign on my email links to {utm_campaign}.
GET /v3/tracking_settings/open Get open tracking setting · Get Open Tracking Settings #
Ask an LLM
“Is open tracking turned on for my account?”
“Am I currently adding a tracking pixel to my emails?”
Tell an agent
Show my open tracking setting.
Check whether open tracking is enabled.
PATCH /v3/tracking_settings/open Turn open tracking on or off · Update Open Tracking Settings #
Ask an LLM
“Can I disable the invisible image that tracks email opens?”
“What's the switch to start tracking opens on my emails?”
Tell an agent
Set open tracking enabled to {enabled}.
Turn on open tracking.
GET /v3/tracking_settings/subscription Get subscription tracking setting · Retrieve Subscription Tracking Settings #
Ask an LLM
“Are unsubscribe links being added to the bottom of my emails?”
“What landing page and footer text does my subscription tracking use?”
Tell an agent
Show my subscription tracking setting.
Get my current unsubscribe footer settings.
PATCH /v3/tracking_settings/subscription Update subscription tracking footer · Update Subscription Tracking Settings #
Ask an LLM
“Can I customize the unsubscribe footer that's added to my emails?”
“Is it possible to send unsubscribers to my own landing page URL?”
Tell an agent
Set subscription tracking enabled to {enabled}.
Send unsubscribers to {url} instead of the default landing page.

Documentation

📖
Documentation
https://www.twilio.com/docs/sendgrid/api-reference/account-provisioning
📖
Documentation
https://www.twilio.com/docs/sendgrid/api-reference/alerts
📖
Documentation
https://www.twilio.com/docs/sendgrid/api-reference/api-keys
📖
Documentation
https://www.twilio.com/docs/sendgrid/api-reference/domain-authentication
📖
Documentation
https://www.twilio.com/docs/sendgrid/api-reference/email-activity
📖
Documentation
https://www.twilio.com/docs/sendgrid/api-reference/email-address-validation
📖
Documentation
https://www.twilio.com/docs/sendgrid/api-reference/enforced-tls
📖
Documentation
https://www.twilio.com/docs/sendgrid/api-reference/sendgrid-integrations
📖
Documentation
https://www.twilio.com/docs/sendgrid/api-reference/ip-access-management
📖
Documentation
https://www.twilio.com/docs/sendgrid/api-reference/ip-address-management-api
📖
Documentation
https://www.twilio.com/docs/sendgrid/api-reference/ip-warmup
📖
Documentation
https://www.twilio.com/docs/sendgrid/api-reference/ip-address
📖
Documentation
https://www.twilio.com/docs/sendgrid/api-reference/link-branding
📖
Documentation
https://www.twilio.com/docs/sendgrid/api-reference/campaigns-api
📖
Documentation
https://www.twilio.com/docs/sendgrid/api-reference/contacts-api-custom-fields
📖
Documentation
https://www.twilio.com/docs/sendgrid/api-reference/sender-identities-api
📖
Documentation
https://www.twilio.com/docs/sendgrid/api-reference/mail-settings
📖
Documentation
https://www.twilio.com/docs/sendgrid/api-reference/mail-send
📖
Documentation
https://www.twilio.com/docs/sendgrid/api-reference/contacts
📖
Documentation
https://www.twilio.com/docs/sendgrid/api-reference/custom-fields
📖
Documentation
https://www.twilio.com/docs/sendgrid/api-reference/designs-api
📖
Documentation
https://www.twilio.com/docs/sendgrid/api-reference/lists
📖
Documentation
https://www.twilio.com/docs/sendgrid/api-reference/segmenting-contacts-v2
📖
Documentation
https://www.twilio.com/docs/sendgrid/api-reference/segmenting-contacts
📖
Documentation
https://www.twilio.com/docs/sendgrid/api-reference/senders
📖
Documentation
https://www.twilio.com/docs/sendgrid/api-reference/single-sends
📖
Documentation
https://www.twilio.com/docs/sendgrid/api-reference/marketing-campaign-stats
📖
Documentation
https://www.twilio.com/docs/sendgrid/api-reference/send-test-email
📖
Documentation
https://www.twilio.com/docs/sendgrid/api-reference/partner-settings
📖
Documentation
https://www.twilio.com/docs/sendgrid/api-reference/recipients-data-erasure
📖
Documentation
https://www.twilio.com/docs/sendgrid/api-reference/reverse-dns
📖
Documentation
https://www.twilio.com/docs/sendgrid/api-reference/cancel-scheduled-sends
📖
Documentation
https://www.twilio.com/docs/sendgrid/api-reference/api-key-permissions
📖
Documentation
https://www.twilio.com/docs/sendgrid/api-reference/sendgrid-engagement-quality-api
📖
Documentation
https://www.twilio.com/docs/sendgrid/api-reference/single-sign-on-settings
📖
Documentation
https://www.twilio.com/docs/sendgrid/api-reference/stats
📖
Documentation
https://www.twilio.com/docs/sendgrid/api-reference/subusers-api
📖
Documentation
https://www.twilio.com/docs/sendgrid/api-reference/suppressions-unsubscribe-groups
📖
Documentation
https://www.twilio.com/docs/sendgrid/api-reference/teammates
📖
Documentation
https://www.twilio.com/docs/sendgrid/api-reference/transactional-templates
📖
Documentation
https://www.twilio.com/docs/sendgrid/api-reference/settings-tracking
📖
Documentation
https://www.twilio.com/docs/sendgrid/api-reference/users-api
📖
Documentation
https://www.twilio.com/docs/sendgrid/api-reference/sender-verification
📖
Documentation
https://www.twilio.com/docs/sendgrid/api-reference/webhooks

Specifications

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/sendgrid-tracking-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

sendgrid-tracking-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Twilio SendGrid Settings Tracking API
  summary: The Twilio SendGrid Tracking Settings API allows you to configure which tracking settings are enabled for your messages.
  description: The Twilio SendGrid Tracking Settings API allows you to configure which tracking settings are enabled for your messages. You can track many of your recipients' interactions with your emails, including which emails they open, which links they click, and when they subscribe to or unsubscribe from your emails. See **Tracking Settings** for more information.
  termsOfService: https://www.twilio.com/legal/tos
  contact:
    name: Twilio SendGrid Support
    url: https://support.sendgrid.com/hc/en-us
  license:
    name: MIT
    url: https://code.hq.twilio.com/twilio/sendgrid-oas/blob/main/LICENSE
  version: 1.0.0
  x-sendgrid:
    libraryPackage: tracking_settings
servers:
- url: https://api.sendgrid.com
  description: for global users and subusers
- url: https://api.eu.sendgrid.com
  description: for EU regional subusers
security:
- BearerAuth: []
tags:
- name: Tracking
  description: Twilio SendGrid Tracking Settings API
paths:
  /v3/tracking_settings:
    get:
      operationId: ListTrackingSetting
      summary: Retrieve Tracking Settings
      tags:
      - Tracking
      description: '**This endpoint allows you to retrieve a list of all tracking settings on your account.**'
      parameters:
      - $ref: '#/components/parameters/OnBehalfOf'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  result:
                    type: array
                    description: The list of all tracking settings.
                    items:
                      type: object
                      properties:
                        name:
                          type: string
                          description: The name of the event being tracked.
                        title:
                          type: string
                          description: The title of the tracking setting.
                        description:
                          type: string
                          description: A description about the event that is being tracked.
                        enabled:
                          type: boolean
                          description: Indicates if this tracking setting is currently enabled.
              examples:
                response:
                  value:
                    result:
                    - name: open
                      title: Open Tracking
                      description: lorem ipsum... .
                      enabled: true
  /v3/tracking_settings/click:
    get:
      operationId: ListClickTrackingSetting
      summary: Retrieve Click Track Settings
      tags:
      - Tracking
      description: '**This endpoint allows you to retrieve your current click tracking setting.**


        Click Tracking overrides all the links and URLs in your emails and points them to either SendGrid’s servers or the domain with which you branded your link. When a customer clicks a link, SendGrid tracks those clicks.


        Click tracking helps you understand how users are engaging with your communications. SendGrid can track up to 1000 links per email'
      parameters:
      - $ref: '#/components/parameters/OnBehalfOf'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ClickTracking'
              examples:
                response:
                  value:
                    enable_text: false
                    enabled: true
    patch:
      operationId: UpdateClickTrackingSetting
      summary: Update Click Tracking Settings
      tags:
      - Tracking
      description: '**This endpoint allows you to enable or disable your current click tracking setting.**


        Click Tracking overrides all the links and URLs in your emails and points them to either SendGrid’s servers or the domain with which you branded your link. When a customer clicks a link, SendGrid tracks those clicks.


        Click tracking helps you understand how users are engaging with your communications. SendGrid can track up to 1000 links per email'
      parameters:
      - $ref: '#/components/parameters/OnBehalfOf'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                enabled:
                  type: boolean
                  description: The setting you want to use for click tracking.
              example:
                enabled: true
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ClickTracking'
              examples:
                response:
                  value:
                    enable_text: false
                    enabled: true
  /v3/tracking_settings/google_analytics:
    get:
      operationId: ListGoogleAnalyticsTrackingSetting
      summary: Retrieve Google Analytics Settings
      tags:
      - Tracking
      description: '**This endpoint allows you to retrieve your current setting for Google Analytics.**


        Google Analytics helps you understand how users got to your site and what they''re doing there. For more information about using Google Analytics, please refer to Google’s URL Builder and their article on "Best Practices for Campaign Building".


        We default the settings to Google’s recommendations. For more information, see Google Analytics Demystified.'
      parameters:
      - $ref: '#/components/parameters/OnBehalfOf'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleAnalyticsSettings'
              examples:
                response:
                  value:
                    enabled: true
                    utm_campaign: ''
                    utm_content: lotsandlotsofcontent
                    utm_medium: ''
                    utm_source: ''
                    utm_term: ''
    patch:
      operationId: UpdateGoogleAnalyticsTrackingSetting
      summary: Update Google Analytics Settings
      tags:
      - Tracking
      description: '**This endpoint allows you to update your current setting for Google Analytics.**


        Google Analytics helps you understand how users got to your site and what they''re doing there. For more information about using Google Analytics, please refer to Google’s URL Builder and their article on "Best Practices for Campaign Building".


        We default the settings to Google’s recommendations. For more information, see Google Analytics Demystified.'
      parameters:
      - $ref: '#/components/parameters/OnBehalfOf'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GoogleAnalyticsSettings'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleAnalyticsSettings'
              examples:
                response:
                  value:
                    enabled: true
                    utm_campaign: ''
                    utm_content: lotsandlotsofcontent
                    utm_medium: ''
                    utm_source: ''
                    utm_term: ''
  /v3/tracking_settings/open:
    get:
      operationId: ListOpenTrackingSetting
      summary: Get Open Tracking Settings
      tags:
      - Tracking
      description: '**This endpoint allows you to retrieve your current settings for open tracking.**


        Open Tracking adds an invisible image at the end of the email which can track email opens.


        If the email recipient has images enabled on their email client, a request to SendGrid’s server for the invisible image is executed and an open event is logged.


        These events are logged in the Statistics portal, Email Activity interface, and are reported by the Event Webhook.'
      parameters:
      - $ref: '#/components/parameters/OnBehalfOf'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  enabled:
                    type: boolean
                    description: Indicates if open tracking is enabled.
                required:
                - enabled
              examples:
                response:
                  value:
                    enabled: true
    patch:
      operationId: UpdateOpenTrackingSetting
      summary: Update Open Tracking Settings
      tags:
      - Tracking
      description: '**This endpoint allows you to update your current settings for open tracking.**


        Open Tracking adds an invisible image at the end of the email which can track email opens.


        If the email recipient has images enabled on their email client, a request to SendGrid’s server for the invisible image is executed and an open event is logged.


        These events are logged in the Statistics portal, Email Activity interface, and are reported by the Event Webhook.'
      parameters:
      - $ref: '#/components/parameters/OnBehalfOf'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                enabled:
                  type: boolean
                  description: The new status that you want to set for open tracking.
              example:
                enabled: true
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  enabled:
                    type: boolean
                    description: Indicates if open tracking is enabled.
                required:
                - enabled
              examples:
                response:
                  value:
                    enabled: true
  /v3/tracking_settings/subscription:
    get:
      operationId: ListSubscriptionTrackingSetting
      summary: Retrieve Subscription Tracking Settings
      tags:
      - Tracking
      description: '**This endpoint allows you to retrieve your current settings for subscription tracking.**


        Subscription tracking adds links to the bottom of your emails that allows your recipients to subscribe to, or unsubscribe from, your emails.'
      parameters:
      - $ref: '#/components/parameters/OnBehalfOf'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubscriptionTrackingSettings'
              examples:
                response:
                  value:
                    enabled: true
                    html_content: '<p>Something something unsubscribe <% %> something something</p>

                      '
                    landing: '<p>subscribehere</p>

                      '
                    plain_content: Something something unsubscribe <% %> something something
                    replace: thetag
                    url: http://mydomain.com/parse
    patch:
      operationId: UpdateSubscriptionTrackingSetting
      summary: Update Subscription Tracking Settings
      tags:
      - Tracking
      description: '**This endpoint allows you to update your current settings for subscription tracking.**


        Subscription tracking adds links to the bottom of your emails that allows your recipients to subscribe to, or unsubscribe from, your emails.'
      parameters:
      - $ref: '#/components/parameters/OnBehalfOf'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SubscriptionTrackingSettings'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubscriptionTrackingSettings'
              examples:
                response:
                  value:
                    enabled: true
                    landing: landing page html
                    url: http://mydomain.com/parse
                    replace: replacement tag
                    html_content: html content
                    plain_content: text content
components:
  parameters:
    OnBehalfOf:
      name: on-behalf-of
      in: header
      description: 'The `on-behalf-of` header allows you to make API calls from a parent account on behalf of the parent''s Subusers or customer accounts. You will use the parent account''s API key when using this header. When making a call on behalf of a customer account, the property value should be "account-id" followed by the customer account''s ID (e.g., `on-behalf-of: account-id <account-id>`). When making a call on behalf of a Subuser, the property value should be the Subuser''s username (e.g., `on-behalf-of: <subuser-username>`). See [**On Behalf Of**](https://docs.sendgrid.com/api-reference/how-to-use-the-sendgrid-v3-api/on-behalf-of) for more information.'
      required: false
      schema:
        type: string
  schemas:
    SubscriptionTrackingSettings:
      title: 'Settings: Subscription Tracking'
      type: object
      properties:
        enabled:
          type: boolean
          description: Indicates if subscription tracking is enabled.
        html_content:
          type: string
          description: 'The information and HTML for your unsubscribe link. '
        landing:
          type: string
          description: The HTML that will be displayed on the page that your customers will see after clicking unsubscribe, hosted on SendGrid’s server.
        plain_content:
          type: string
          description: The information in plain text for your unsubscribe link. You should have the “<% %>” tag in your content, otherwise the user will have no URL for unsubscribing.
        replace:
          type: string
          description: Your custom defined replacement tag for your templates. Use this tag to place your unsubscribe content anywhere in your emailtemplate.
        url:
          type: string
          description: The URL where you would like your users sent to unsubscribe.
          format: uri
    ClickTracking:
      title: 'Settings: Click Tracking'
      type: object
      properties:
        enable_text:
          type: boolean
          description: Indicates if click tracking is enabled for plain text emails.
        enabled:
          type: boolean
          description: Indicates if click tracking is enabled or disabled.
      required:
      - enable_text
      - enabled
      example:
        enable_text: false
        enabled: false
    GoogleAnalyticsSettings:
      title: 'Settings: Google Analytics'
      type: object
      properties:
        enabled:
          type: boolean
          description: Indicates if Google Analytics is enabled.
        utm_campaign:
          type: string
          description: The name of the campaign.
        utm_content:
          type: string
          description: Used to differentiate ads
        utm_medium:
          type: string
          description: Name of the marketing medium (e.g. "Email").
        utm_source:
          type: string
          description: 'Name of the referrer source. '
        utm_term:
          type: string
          description: Any paid keywords.
      example:
        enabled: true
        utm_source: sendgrid.com
        utm_medium: email
        utm_term: ''
        utm_content: ''
        utm_campaign: website
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: Twilio SendGrid requires you to authenticate with its APIs using an API key. The API key must be sent as a bearer token in the Authorization header.
externalDocs:
  description: Twilio SendGrid's official developer documentation.
  url: https://www.twilio.com/docs/sendgrid