Tools
This is a reference catalogue. Tools cannot be configured or run from this page.
Retrieve email statistics by mailbox provider
SENDGRID_RETRIEVE_EMAIL_STATISTICS_BY_MAILBOX_PROVIDERRetrieve email statistics segmented by recipient mailbox provider (e.g., Gmail, Yahoo, Microsoft Outlook). This endpoint is part of the Advanced Stats API and requires the 'stats.read' permission. Note: SendGrid only stores up to 7 days of mailbox provider statistics data. The response provides email delivery and engagement metrics grouped by date and mailbox provider, useful for understanding deliverability performance across different email service providers. Common mailbox providers include: Gmail, Yahoo, Microsoft Outlook (includes hotmail.com, outlook.com, live.com), AOL, and Apple Mail. SendGrid offers groupings for over 200 mailbox providers.
Retrieve email statistics for categories
SENDGRID_RETRIEVE_EMAIL_STATISTICS_FOR_CATEGORIESRetrieve email statistics for specific categories within a date range. This endpoint returns detailed email metrics (delivered, opens, clicks, bounces, spam reports, etc.) for the specified categories, grouped by date. **Use Cases:** - Monitor email performance for specific campaign categories - Compare statistics across different email categories - Track trends over time with day/week/month aggregation **Limitations:** - Category statistics are available for the previous 13 months only - Free plans: limited to 100 categories daily - Paid plans: limited to 1,000 categories daily - Maximum 10 categories per request **Required Scope:** `categories.stats.read`
Retrieve email statistics for your subusers
SENDGRID_RETRIEVE_EMAIL_STATISTICS_FOR_YOUR_SUBUSERSRetrieves email statistics for specified subusers over a date range. Returns metrics including: blocks, bounces, clicks, delivered, opens, requests, unique_clicks, unique_opens, unsubscribes, and more. **Requirements:** - SendGrid Pro plan or higher with subusers configured - API key with `subusers.stats.read` scope **Usage Notes:** - Statistics are available for the last 3 years - Use `aggregated_by` to group results by day, week, or month - Results can be paginated using `limit` and `offset` parameters
Retrieve footer mail settings
SENDGRID_RETRIEVE_FOOTER_MAIL_SETTINGSRetrieve your current Footer mail settings from SendGrid. The Footer setting allows you to insert a custom footer at the bottom of all text and HTML email message bodies sent via the SendGrid v3 API or SMTP Relay. This endpoint returns the current enabled status and the configured HTML and plain text footer content.
Retrieve forward bounce mail settings
SENDGRID_RETRIEVE_FORWARD_BOUNCE_MAIL_SETTINGSRetrieves the current forward bounce mail settings for your SendGrid account. Forward bounce mail settings allow you to specify an email address to which bounce reports will be forwarded. When enabled, you will receive notifications at the configured email address whenever a bounce event occurs. Note: This setting only forwards 'Bounce' events (permanent delivery failures). 'Block' events (temporary failures) are not included in the forwarding. Requires the 'mail_settings.read' scope on the API key.
Retrieve forward spam mail settings
SENDGRID_RETRIEVE_FORWARD_SPAM_MAIL_SETTINGSRetrieves the current forward spam mail settings for your SendGrid account. Forward spam mail settings allow you to specify email address(es) to which spam reports will be forwarded. When enabled, you will receive notifications at the configured email address(es) whenever a spam report is filed against your emails. You can set multiple addresses by configuring a comma-separated list of emails in the email field. The Forward Spam setting may also be used to receive emails sent to abuse@ and postmaster@ role addresses if you have authenticated your domain. Requires the 'mail_settings.forward_spam.read' scope on the API key.
Retrieve global email statistics
SENDGRID_RETRIEVE_GLOBAL_EMAIL_STATISTICSRetrieve global email statistics for your SendGrid account within a date range, including aggregated requests, deliveries, bounces, opens, clicks, spam reports, and unsubscribes. Requires 'stats.read' permission.
Retrieve Google Analytics Settings
SENDGRID_RETRIEVE_GOOGLE_ANALYTICS_SETTINGSRetrieves the current Google Analytics tracking settings for your SendGrid account. Google Analytics tracking adds UTM parameters to links in your emails to help you track user behavior and campaign performance in Google Analytics. Returns settings including enabled status and UTM parameters (source, medium, campaign, term, content). Requires 'tracking_settings.google_analytics.read' or 'tracking_settings.read' scope.
Retrieve legacy template mail settings
SENDGRID_RETRIEVE_LEGACY_TEMPLATE_MAIL_SETTINGSRetrieves your current legacy email template mail settings. The legacy template setting wraps an HTML template around your email content, useful for marketing emails and HTML-formatted messages. Note: SendGrid now recommends using the more advanced Dynamic Transactional Templates instead of legacy templates. This endpoint requires the 'mail_settings.template.read' scope. Returns the 'enabled' status and 'html_content' of the configured legacy template.
Retrieve monthly stats for all subusers
SENDGRID_RETRIEVE_MONTHLY_STATS_FOR_ALL_SUBUSERSRetrieves monthly email statistics for all subusers. Returns metrics such as blocks, bounces, clicks, delivered emails, opens, requests, unique clicks/opens, and unsubscribes. **Note**: This endpoint requires the `subusers.stats.monthly.read` API scope and is only available for SendGrid Pro plans and above that have subusers configured. **Important**: Sort operations are not available for: bounce_drops, deferred, invalid_emails, processed, spam_report_drops, spam_reports, or unsubscribe_drops metrics.
Retrieve paged transactional templates
SENDGRID_RETRIEVE_PAGED_TRANSACTIONAL_TEMPLATESRetrieve a page of SendGrid transactional templates, optionally filtered by generation. Specify a page size and use a page token to request another page.
Retrieve recipients
SENDGRID_RETRIEVE_RECIPIENTSRetrieve all marketing campaign recipients via this endpoint. Use batch deletion carefully, as it may lead to empty pages. Continue iterating pages until a 404 error occurs to ensure complete retrieval.
Retrieve recipients on a segment
SENDGRID_RETRIEVE_RECIPIENTS_ON_A_SEGMENTRetrieves all recipients (contacts) in a specified segment from SendGrid's Legacy Marketing Campaigns Contact Database. This endpoint returns recipient data including: - Contact info: id, email, first_name, last_name - Timestamps: created_at, updated_at (in Unix time) - Engagement data: last_clicked, last_emailed, last_opened - Any custom fields defined in your contact database Note: This uses the Legacy Contacts API (/v3/contactdb). Segments must be created via the legacy 'create_a_segment' action, not the newer Marketing Campaigns v2 API segments. Supports pagination via 'page' and 'page_size' parameters for segments with many recipients.
Retrieve reserved fields
SENDGRID_RETRIEVE_RESERVED_FIELDS**Retrieve all reserved fields from the Legacy Marketing Campaigns Contact Database.** This endpoint returns a list of fields that are reserved by SendGrid and cannot be used as custom field names. Reserved fields include: - **Text fields**: first_name, last_name, email - **Date fields**: created_at, updated_at, last_emailed, last_clicked, last_opened - **Set fields**: lists, campaigns **Note**: This is part of the Legacy Marketing Campaigns API. For new implementations, consider using the newer Marketing Campaigns API endpoint `/v3/marketing/field_definitions` which returns both custom and reserved fields. **Required API Scope**: Legacy Marketing Campaigns access (contactdb permissions)
Retrieve scheduled send
SENDGRID_RETRIEVE_SCHEDULED_SENDRetrieve the cancel/pause status of a scheduled email batch by its batch_id. Use this action to check whether a batch of scheduled emails has been paused or cancelled. The batch_id must have been created via 'create_a_batch_id' and then assigned a status via 'cancel_or_pause_a_scheduled_send'. Returns the batch_id and its status ('pause' or 'cancel'). If the batch has no pause/cancel status (i.e., emails were scheduled normally without being paused or cancelled), this endpoint may return empty data. Note: Only scheduled sends created with a batch_id can be retrieved. Emails scheduled via /mail/send with only send_at (no batch_id) cannot be queried.
Retrieves inbound parse webhook statistics
SENDGRID_RETRIEVES_INBOUND_PARSE_WEBHOOK_STATISTICSRetrieve Inbound Parse Webhook statistics for emails received and processed within a specified date range. Parent accounts see aggregated statistics for their account and subusers, while subusers see their own statistics; the user.webhooks.parse.stats.read scope is required.
Retrieve single segment endpoint
SENDGRID_RETRIEVE_SINGLE_SEGMENT_ENDPOINTRetrieves detailed information about a specific Marketing Campaigns segment by its unique ID. Returns segment metadata including the SQL query defining membership criteria (query_dsl), contact count, query validation status, and timestamps. Optionally returns the parsed SQL query as a JSON AST when query_json=true. Note: This uses the Marketing Campaigns V2 Segmentation API. Contact counts are refreshed approximately every hour. Segments using engagement data may take 30 minutes to populate.
Retrieve specific teammate
SENDGRID_RETRIEVE_SPECIFIC_TEAMMATERetrieves details of a specific SendGrid teammate by username. Returns teammate information including email, name, user type, admin status, and permission scopes. Use 'Retrieve all teammates' first to get valid usernames. Requires 'teammates.read' API scope for access.
Retrieve stats by a specific client type
SENDGRID_RETRIEVE_STATS_BY_A_SPECIFIC_CLIENT_TYPERetrieve email statistics for a specific client type (phone, tablet, webmail, or desktop). This endpoint is part of the Advanced Stats API and provides email engagement metrics (opens, unique_opens) filtered by a specific email client type. Use this to understand how recipients interact with emails on different devices/platforms. Requirements: - Requires 'stats.read' or 'clients.{client_type}.stats.read' permission - SendGrid only stores up to 7 days of client-type statistics data - Maximum 500 items per request
Retrieve subscription tracking settings
SENDGRID_RETRIEVE_SUBSCRIPTION_TRACKING_SETTINGSRetrieves the current subscription tracking settings for your SendGrid account. Subscription tracking automatically adds unsubscribe/subscribe links to the bottom of your emails, allowing recipients to manage their email preferences. This endpoint returns the current configuration including whether tracking is enabled and the customizable HTML/text content for the tracking links. No parameters required. Returns the enabled status, custom HTML content, plain text content, and optional custom landing page URL for subscription management.