Skip to content

Email · Beta

SparkPost
API integration

Ship Email features without building the integration. Full SparkPost API access via Proxy and 150+ MCP-ready tools for AI agents — extend models and mappings to fit your product.

Built for specific customer use cases. Issues are resolved quickly.

Talk to us
SparkPost

Use Cases

Why integrate with SparkPost

Common scenarios for SaaS companies building SparkPost integrations for their customers.

01

Offer Bring-Your-Own-SparkPost for enterprise customers

Let your enterprise users plug in their own SparkPost account so campaigns and transactional email sent from your product route through their dedicated IPs, domains, and billing contract — without you building the auth or transmission plumbing.

02

Auto-provision isolated sending environments per customer

For multi-tenant platforms (newsletter tools, marketing suites, CRMs), spin up a SparkPost subaccount, sending domain, and DKIM keys for every new signup so each customer's sending reputation stays isolated from the rest of your tenant base.

03

Embed an email deliverability dashboard inside your app

Pull SparkPost's deliverability, bounce, and mailbox-provider metrics into your UI so users see inbox placement, bounce classifications, and ISP-level performance without ever leaving your product.

04

Power inbound email parsing for helpdesks and CRMs

Configure SparkPost inbound domains and relay webhooks so replies to your product's notification emails get parsed into structured payloads that update tickets, deals, or conversations in real time.

05

Automate list hygiene and compliance workflows

Validate recipient addresses on entry, sync hard bounces into suppression lists, and process GDPR Right-to-be-Forgotten requests directly from your app so customers stay compliant and protect their sender reputation.

What You Can Build

Ship these features with Truto + SparkPost

Concrete product features your team can ship faster by leveraging Truto’s SparkPost integration instead of building from scratch.

01

One-click SparkPost account connection

Let end users connect their SparkPost account through Truto's managed auth flow and immediately start sending transmissions from your product using their credentials.

02

Subaccount + sending domain provisioning wizard

Create a SparkPost subaccount, sending domain, and DKIM keys for a new tenant in one flow, then surface DNS records and poll the verify endpoint until the domain is authenticated.

03

Branded click-tracking domain setup

Provision tracking domains for each customer, trigger certificate enablement, and run verification checks so links in their emails render under their own branded URL with TLS.

04

In-app deliverability analytics

Render dashboards backed by SparkPost's deliverability metrics — bounce reasons, rejection reasons, mailbox-provider breakdowns, and time-series trends — directly inside your product.

05

Native A/B test launcher for subject lines and templates

Let marketers create, schedule, and analyze SparkPost A/B tests from your UI using the ab_test and template endpoints, offloading split logic to SparkPost.

06

Real-time event webhooks for opens, clicks, and bounces

Programmatically register SparkPost webhooks on behalf of your customers and ingest open, click, delivery, delay, and spam complaint events to update records in your app instantly.

07

Recipient validation on CRM import

Call single-recipient validation when users import contacts so risky or undeliverable addresses are flagged before they ever get emailed.

08

Automated suppression list sync

Bulk-update SparkPost suppression lists from your app whenever a user unsubscribes, bounces, or submits a GDPR deletion request.

SuperAI

SparkPost AI agent tools

Comprehensive AI agent toolset with fine-grained control. Integrates with MCP clients like Cursor and Claude, or frameworks like LangChain.

create_a_spark_post_ab_test

Create an A/B Test. Returns the A/B test ID, when successful. Required: name, default_template, variants, metric, audience_selection, test_mode, start_time.

delete_a_spark_post_ab_test_by_id

Delete an A/B Test. Required: id.

get_single_spark_post_ab_test_by_id

Retrieve an A/B Test. Required: id.

list_all_spark_post_ab_test

List All A/B Tests. Returns an array of latest versions of your A/B tests.

update_a_spark_post_ab_test_by_id

Update an A/B Test. You can not update an A/B test while it is running . Tests in running state must be cancelled before updating. If the A/B test's latest version is cancelled or completed, updating it creates a new version, effectively restarting the test. The winning_template_id will be reset for the new version. If winning_template_id existed in the previous version, the default_tempate.template_id of the new version will default to that value, unless overridden by the update. Returns Returns the new version . Required: id.

create_a_spark_post_ab_test_cancel

Cancel an A/B Test. Any transmissions using this A/B test will send the default_template . Returns the status . Required: ab_test_id.

create_a_spark_post_ab_test_draft

Create an A/B Test draft. Required: name, default_template.

delete_a_spark_post_ab_test_draft_by_id

Delete an A/B Test Draft. Required: id.

get_single_spark_post_ab_test_draft_by_id

Retrieve an A/B Test draft. Required: id.

update_a_spark_post_ab_test_draft_by_id

Update an A/B Test draft. Returns the A/B test ID. Required: id.

create_a_spark_post_ab_test_draft_schedule

Schedule an A/B Test draft. Required: draft_id, start_time.

spark_post_account_bulk_update

Update account information.

list_all_spark_post_account

Retrieve account information.

create_a_spark_post_data_privacy_opt_out_request

Add opt out request.

create_a_spark_post_data_privacy_rtbf_request

Add request to be forgotten.

list_all_spark_post_events_ingest

Search for Ingest Events. Returns a list of ingest events that matched the filtered search.

list_all_spark_post_events_message

Retrieve First Page.

list_all_spark_post_events_message_documentation

Events Documentation. Returns a list of descriptions of the event fields that could be included in a response from the message events search. Fields will vary by event type.

list_all_spark_post_events_message_samples

Events Samples. Returns an example message event for each event type listed in the events parameter.

create_a_spark_post_inbound_domain

Create an Inbound Domain. Required: domain.

delete_a_spark_post_inbound_domain_by_id

Delete an Inbound Domain. Required: id.

get_single_spark_post_inbound_domain_by_id

Retrieve an Inbound Domain. Required: id.

list_all_spark_post_inbound_domains

List all Inbound Domains. Returns an array with all your inbound domains.

create_a_spark_post_ingest_event

Send Ingest Events. Post a new-line delimited list of JSON events. Required Headers Header Value ------------------ ---------------------- Content-Encoding gzip Content-Type application/x-ndjson Required: msys.

get_single_spark_post_ingest_event_by_id

Get Ingest Batch. Downloads a gzip file of the ingest batch events. The binary of the gzip will be displayed in the response body. Required: id.

list_all_spark_post_ingest_events_documentation

Ingest Events Documentation. Returns a list of descriptions of the event fields that could be included in a POST to the ingest events API. Fields will vary by event type. Event fields including "required": true must be present in the event and fields including "reporting": true are recommended as they are used to drive various reporting services.

get_single_spark_post_ingest_events_failure_by_id

Get Failure Ingest Batch. Downloads a gzip file of the ingest batch with failures. The binary of the gzip will be displayed in the response body. Required: id.

list_all_spark_post_ingest_events_samples

Ingest Events Samples. Returns an example message event for each event type listed in the events parameter.

spark_post_inline_seeds_config_bulk_update

Update Seed Config. Make updates to config details for the authenticated account. Only one seed config with 5 match/exclude rules max is currently supported. Auth context (from API key) provides customer and subaccount IDs.

create_a_spark_post_inline_seeds_config

Create Seed Config. Create seed config for the authenticated account.

list_all_spark_post_inline_seeds_config

Get Seed Config. Returns config details for the authenticated account. Only one seed config with 5 match/exclude rules max is currently supported. One or the other of (match, exclude) may be used, not both. Auth context (from API key) provides customer and subaccount IDs.

spark_post_inline_seeds_options_bulk_update

Update Options. Make updates to options for the authenticated account. If no subaccount ID is provided via the X-MSYS-SUBACCOUNT header this will update the primary account's options.

list_all_spark_post_inline_seeds_options

Get Options. Returns Inline Seeds options. If no subaccount ID is provided via the X-MSYS-SUBACCOUNT header this will return the primary account and all subaccount options. If a subaccount ID is provided this will return the subaccount's options. If enabled is false Automatic Inline Seeding is currently paused. If set back to true a campaign will resume from its previous state unless it has reached the 24 hour timeout window and been reset. This will not interrupt a campaign that has already begun seeding. A

list_all_spark_post_inline_seeds_status

List Active Campaigns. Returns read-only list of seed-eligible campaigns that have recent activity. Intended use case is informational - checking status via API or UI. Set the X-MSYS-SUBACCOUNT header to get campaigns for a specific subaccount (set the header to 0 to get campaigns for the primary account). Do not set the X-MSYS-SUBACCOUNT header to get campaigns for the primary account and all subaccounts.

create_a_spark_post_ip_pool

Create an IP Pool. Creates an IP Pool and returns a unique ID based on the name. This ID is used for sending with this pool. Required: name.

delete_a_spark_post_ip_pool_by_id

Delete an IP Pool. Deletes an IP Pool and moves all sending IPs in that pool to the default pool. The default pool cannot be deleted. Required: id.

get_single_spark_post_ip_pool_by_id

Retrieve an IP Pool. Returns a specific IP Pool. Required: id.

list_all_spark_post_ip_pools

List IP Pools. Returns a list of all your IP Pools.

update_a_spark_post_ip_pool_by_id

Update an IP Pool. To update sending IP pool assignments see Sending IPs. Required: id, name.

list_all_spark_post_metrics

Discoverability Links. The Metrics API is designed for discoverability of child links. Calling the API root displays a list of URIs that exists within the Metrics API.

list_all_spark_post_metrics_benchmarks_inbox_rate

Inbox Rate. Provides daily inbox rate industry benchmarks of 25th, 50th (median), and 75th percentile. Note: The Inbox Rate Industry Benchmark endpoint is available to the SparkPost Deliverability Add-On customers only. Required: from.

list_all_spark_post_metrics_campaigns

Campaigns. Returns a list of campaigns that the Metrics API contains data on.

list_all_spark_post_metrics_deliverability

Metrics Summary. Provides high-level summary of aggregate metrics and lists the child endpoints that contain aggregate data, which can be used as "group by" qualifiers. Required: from, metrics.

list_all_spark_post_metrics_deliverability_attempt

Deliveries By Attempt. Provides aggregate count of deliveries grouped by the attempt number. This endpoint supports at most 3 entries in the results Array, attempts: 1, attempts: 2, and attempts: 3+. Required: from.

list_all_spark_post_metrics_deliverability_bounce_classification

Bounce Classification Metrics. Provides aggregate metrics, specific to bounce events, grouped by the bounce classification. (See Bounce Classification Codes.) Required: from, metrics.

list_all_spark_post_metrics_deliverability_bounce_reason

Bounce Reason Metrics. Provides aggregate metrics, specific to bounce events, grouped by the bounce reasons. Required: from, metrics.

list_all_spark_post_metrics_deliverability_bounce_reason_domain

Bounce Reason Metrics By Domain. Provides aggregate metrics, specific to bounce events, grouped by the domain and bounce reasons. Required: from, metrics.

list_all_spark_post_metrics_deliverability_campaign

Metrics by Campaign. Provides aggregate metrics grouped by campaign over the time window specified. With include=injection_dates , each result also has first_injected_at and last_injected_at : the campaign's first and last injection in the range. Both are UTC ISO 8601 strings, such as 2026-03-07T14:05:00Z . timezone does not apply to them. Their precision matches the data the range reads: minute for recent data, hour or day for longer ranges. Both are null when the campaign has no injections in the range, or when me Required: from, metrics.

list_all_spark_post_metrics_deliverability_delay_reason

Delay Reason Metrics. Provides aggregate metrics, specific to delay events, grouped by the delay reasons. Required: from.

list_all_spark_post_metrics_deliverability_delay_reason_domain

Delay Reason Metrics By Domain. Provides aggregagte metrics, specific to delay events, grouped by the domain and delay reasons. Required: from.

list_all_spark_post_metrics_deliverability_domain

Metrics by Recipient Domain. Provides aggregate metrics grouped by domain over the time window specified. Required: from, metrics.

list_all_spark_post_metrics_deliverability_ip_pool

Metrics by IP Pool. Provides aggregate metrics grouped by IP pool over the time window specified. Required: from, metrics.

list_all_spark_post_metrics_deliverability_link_name

Engagement Details. Provides deliverability metrics, specific to engagement events (clicks/opens), grouped by the link name (or URL if no link name exists). To name the links in your messages, read about the data-msys-link-name HTML attribute here. Required: from, metrics.

list_all_spark_post_metrics_deliverability_mailbox_provider

Metrics by Mailbox Provider. Provides aggregate metrics grouped by mailbox provider over the time window specified. Required: from, metrics.

list_all_metrics_deliverability_mailbox_provider_region

Metrics by Mailbox Provider Region. Provides aggregate metrics grouped by mailbox provider region over the time window specified. Required: from, metrics.

list_all_spark_post_metrics_deliverability_query_filters_schema

Advanced Query JSON Schema. Retrieves the JSON schema for validating the query_filters JSON value.

list_all_spark_post_metrics_deliverability_rejection_reason

Rejection Reason Metrics. Provides aggregate metrics, specific to rejection events, grouped by the rejection reasons. Required: from.

list_all_metrics_deliverability_rejection_reason_domain

Rejection Reason Metrics By Domain. Provides aggregate metrics, specific to rejection events, grouped by the domain and rejection reasons. Required: from.

list_all_spark_post_metrics_deliverability_sending_domain

Metrics by Sending Domain. Provides aggregate metrics grouped by sending domain over the time window specified. Required: from, metrics.

list_all_spark_post_metrics_deliverability_sending_ip

Metrics by Sending IP. Provides aggregate metrics grouped by sending IP over the time window specified. Required: from, metrics.

list_all_spark_post_metrics_deliverability_subaccount

Metrics by Subaccount. Provides aggregate metrics grouped by subaccount over the time window specified. Please note that primary account events will be returned grouped by the subaccount_id field containing the value 0 . Required: from, metrics.

list_all_spark_post_metrics_deliverability_subject_campaign

Metrics by Subject Campaign. Note: Only available to SparkPost Deliverability Add-On customers Provides aggregate metrics grouped by deliverability add-on subject campaign over the time window specified. Required: from, metrics.

list_all_spark_post_metrics_deliverability_template

Metrics by Template. Provides aggregate metrics grouped by template over the time window specified. Required: from, metrics.

list_all_spark_post_metrics_deliverability_time_series

Time-Series Metrics. Provides aggregate metrics ordered by a precision of time. Required: from, metrics.

list_all_spark_post_metrics_deliverability_watched_domain

Metrics by Watched Domain. Provides aggregate metrics grouped by watched domain over the time window specified. The difference between domain and watched domain is that watched domains are comprised of the top 99% domains in the world. Required: from, metrics.

list_all_spark_post_metrics_domains

Domains. Returns a list of domains that the Metrics API contains data on.

list_all_spark_post_metrics_ip_pools

IP Pools. Returns a list of IP pools that the Metrics API contains data on.

list_all_spark_post_metrics_mailbox_provider_regions

Mailbox Provider Regions. Returns a list of mailbox provider regions that the Metrics API contains data on.

list_all_spark_post_metrics_mailbox_providers

Mailbox Providers. Returns a list of mailbox providers that the Metrics API contains data on.

list_all_spark_post_metrics_sending_domains

Sending Domains. Returns a list of sending domains that the Metrics API contains data on.

list_all_spark_post_metrics_sending_ips

Sending IPs. Returns a list of sending IPs that the Metrics API contains data on.

list_all_spark_post_metrics_subject_campaigns

Subject Campaigns. Returns a list of deliverability add-on subject campaigns that the Metrics API contains data on.

list_all_spark_post_metrics_templates

Templates. Returns a list of templates that the Metrics API contains data on.

create_a_spark_post_recipient_list

Create a Recipient List. At a minimum, the recipients array is required, which must contain a valid address. Use the num_rcpt_errors parameter to limit the number of recipient errors returned. Required: recipients.

delete_a_spark_post_recipient_list_by_id

Delete a Recipient List. If a transmission contains a recipient list, the recipient list cannot be deleted if the transmission is submitted or generating. Required: id.

get_single_spark_post_recipient_list_by_id

Retrieve a Recipient List. Retrieve details about a specified recipient list by specifying its id in the URI path. To retrieve the recipients contained in a list, the list must be specified and the show_recipients parameter must be set to true. Required: id.

list_all_spark_post_recipient_lists

List all Recipient Lists. Returns an array of abbreviated recipient list objects. The recipients for each list are not included in the results. Retrieve a single list to get a list the recipients.

update_a_spark_post_recipient_list_by_id

Update a Recipient List. If a recipients array is provided in the update request, it will replace the current recipients. This means that if you're adding, updating, or removing a single recipient, the recipients array must contain all current recipients, regardless they are being changed or not. Limitations If a transmission using the recipient list has a state of "submitted" or "generating", the list cannot be updated. Also, if the transmission is scheduled and is within 10 minutes of the scheduled time, the list won' Required: id.

get_single_spark_post_recipient_validation_single_by_id

Email Address Validation. Validate a single email address. The response will contain whether the address is valid , neutral , risky , undeliverable or typo along with additional metadata about the address. If the email address is undeliverable, a reason will also be provided. Use UTF-8 encoding for special characters like / . Required: id.

create_a_spark_post_relay_webhook

Create a Relay Webhook. Create a relay webhook by providing a relay webhooks object as the POST request body. Required: target, match.

delete_a_spark_post_relay_webhook_by_id

Delete a Relay Webhook. Delete a relay webhook by specifying the webhook ID in the URI path. Required: id.

get_single_spark_post_relay_webhook_by_id

Retrieve a Relay Webhook. Retrieve a specific relay webhook by specifying the webhook ID in the URI path. Required: id.

list_all_spark_post_relay_webhooks

List all Relay Webhooks. List all your relay webhooks.

update_a_spark_post_relay_webhook_by_id

Update a Relay Webhook. Update a relay webhook by specifying the webhook ID in the URI path. Required: id.

create_a_spark_post_relay_webhooks_validate

Validate a Relay Webhook. The validation request sends an example batch to the target URL, validates that the target responds with HTTP 200, and returns information on the response received from the target. Example batch Required: relay_webhook_id.

list_all_spark_post_seeds

Retrieve Seed List. In order for a primary account to specify retrieval of a subaccount, the X-MSYS-SUBACCOUNT header must be set with the desired subaccount id. A primary or subaccount retrieving its own seed list does not need to explicitly set this. We recommend that you cache the seed list and update it when our Seed List Update Notification service sends out an email with the latest seed list.

create_a_spark_post_sending_domain

Create a Sending Domain. Creates a new sending domain. Each domain and its subdomains can only be added to a single account. Note : When adding a sending domain to your account, the domain must be verified within two weeks or it will be removed from your account. Returns the domain and a success message. If generate_dkim was true, the dkim object is also returned. In case the sending domain gets blocked due to compliance validations, an HTTP 400 response is returned along with the error code, description and message wit Required: domain.

delete_a_spark_post_sending_domain_by_id

Delete a Sending Domain. Warning : Before deleting a sending domain please ensure you are no longer using it. After deleting a sending domain, any new transmissions that use it will result in a rejection. This includes any transmissions that are in progress, scheduled for the future, or use a stored template referencing the sending domain. Required: id.

get_single_spark_post_sending_domain_by_id

Retrieve a Sending Domain. Returns the full sending domain object, except the domain field. Required: id.

list_all_spark_post_sending_domains

List all Sending Domains. Returns an array with all the sending domains in your account. Use the query parameters to filter on the various status options.

update_a_spark_post_sending_domain_by_id

Update a Sending Domain. Required: id.

create_a_spark_post_sending_domains_dkim_key

Create a DKIM Key. Creates a new DKIM key. The system generates the keypair automatically unless you provide your own. When providing your own keys, all three fields ( private , public , selector ) must be provided together. - Data Structure - id (string, required) - Unique identifier. 1-64 characters, alphanumeric plus hyphen/underscore, must start with alphanumeric. - signing_domain (string) - Domain for DKIM signature. Defaults to the sending domain. - headers (string) - Colon-separated headers to sign. - Defau Required: domain.

delete_a_spark_post_sending_domains_dkim_key_by_id

Delete a DKIM Key. Deletes a DKIM key. The default key cannot be deleted. Required: domain, id.

get_single_spark_post_sending_domains_dkim_key_by_id

Retrieve a DKIM Key. Retrieves a specific DKIM key by ID. Using key_id of "default" returns the domain's primary DKIM key. The default key has is_default: true and no created_at / updated_at fields. Required: domain, id.

list_all_spark_post_sending_domains_dkim_keys

List DKIM Keys. Retrieves all DKIM keys for a domain, including the default key. The default key is always first in the list and does not have created_at or updated_at fields. The dns object is not included in list responses. Required: domain.

update_a_spark_post_sending_domains_dkim_key_by_id

Update a DKIM Key. Updates an existing DKIM key. Only headers and signing_domain can be updated individually. To replace keys, all three ( private , public , selector ) must be provided together. The default key cannot be updated via this endpoint. Use the Update a Sending Domain endpoint instead. Changing signing_domain or key fields resets dkim_status to unverified . - Data Structure - signing_domain (string) - New signing domain. - headers (string) - New headers to sign. - private (string) - New private key. Re Required: domain, id.

create_a_spark_post_sending_domains_dkim_keys_verify

Verify a DKIM Key. Initiates DNS verification for a specific DKIM key. The default key cannot be verified via this endpoint. Use the Verify a Sending Domain endpoint with dkim_verify: true instead. Required: domain, key_id.

create_a_spark_post_sending_domains_verify

Verify a Sending Domain. Enterprise accounts: Depending on your setup, sending domains might be verified automatically when they are created, and can be used to send immediately. In that case, there is no need separately verify sending domains. To find out if this applies to you, ask your TAM. Verify via DNS To verify your DKIM or CNAME, include dkim_verify or cname_verify in the request. SparkPost will check against and verify the associated DNS record type for the specified sending domain. The request will return an e Required: domain.

get_single_spark_post_sending_ip_by_id

Retrieve a Sending IP. Retrieves a specific sending IP. Required: id.

list_all_spark_post_sending_ips

List all sending IPs. Returns a list of all sending IPs.

update_a_spark_post_sending_ip_by_id

Update a Sending IP. Updates which IP Pool holds the sending IP. Required: id.

create_a_spark_post_snippet

Create a Snippet. Required: id, content, shared_with_subaccounts.

delete_a_spark_post_snippet_by_id

Delete a Snippet. Required: id.

get_single_spark_post_snippet_by_id

Retrieve a Snippet. Required: id.

list_all_spark_post_snippets

List all Snippets. Returns an array with all your Snippets.

update_a_spark_post_snippet_by_id

Update a Snippet. Unlike the Templates API, if a content object is provided in the update request, it only needs to include the fields that are being updated. Fields that are not included will keep their current values. To remove a content field that was specified previously, simply set that field to an empty string in the update request. Required: id.

create_a_spark_post_subaccount

Create a Subaccount. Creates a new subaccount and an initial subaccount API key. Subaccount API keys are only allowed very specific grants. Subaccounts are allowed to send mail using the SMTP protocol or Transmissions API, retrieve sending statistics via the Message Events API, manage their Sending Domains, manage their Suppression List, and manage their Templates. Returns the subaccount's ID, along with the API key and API key label, if one was created. Stored recipients lists and stored templates are currently not Required: name.

get_single_spark_post_subaccount_by_id

Retrieve a Subaccount. This endpoint only returns information about the subaccount, not the resources associated with it. Required: id.

list_all_spark_post_subaccounts

List Subaccounts. Returns a list of your subaccounts. Passing certain query parameters will cause results to be paginated.

update_a_spark_post_subaccount_by_id

Update a subaccount. Required: id.

list_all_spark_post_subaccounts_summary

Retrieve Subaccounts Summary. Returns the total number of subaccounts.

spark_post_suppression_list_bulk_update

Bulk Create or Update Suppressions. Bulk create or update entries in the suppression list. If a recipient was added by our compliance system, it cannot be updated. Please note that in the unlikely scenario where your receive a HTTP 5xx level error response while bulk loading, only some of your suppression entries may have been successfully created or updated. If this occurs, please re-submit your original request again for processing. Required: recipients, recipient, type.

delete_a_spark_post_suppression_list_by_id

Delete a Suppression. Deleting from subaccounts If your account has subaccounts, please provide the X-MSYS-SUBACCOUNT header when deleting from a specific subaccount suppression list. - Omit the header to delete from the primary account suppression list. - Use the subaccount's ID to delete from a specific subaccount suppression list. Deleting from mailing lists Use the list_id query parameter to control which suppression entries are deleted: - Use ?list_id=newsletter-weekly.example1.com to delete the suppression from Required: id.

get_single_spark_post_suppression_list_by_id

Retrieve a Suppression. Return all suppression entries for a recipient. If the recipient is not in the suppression list, an HTTP status of 404 is returned. Searching with Subaccounts If your account has subaccounts, please provide the X-MSYS-SUBACCOUNT header when performing a lookup on a specific suppression list. - Use a value of 0 to only search against the primary account suppression list. - Use the subaccount's ID to perform a lookup on a specific subaccount suppression list. If the X-MSYS-SUBACCOUNT header is not Required: id.

list_all_spark_post_suppression_list

Search Suppressions. Perform a filtered search for entries in your suppression list. Returns an array of suppression objects. Use the list_id query parameter to control which suppression entries are returned: - Use ?list_id=newsletter-weekly.example1.com to return only suppressions for that specific mailing list. - Use ?list_id= (empty value) to return only account-level suppression entries (not bound to any mailing list). - Omit the parameter to return all suppression entries (account-level and all list-specific).

update_a_spark_post_suppression_list_by_id

Create or Update a Suppression. If the recipient was added by our compliance system, it cannot be updated. Required: id, type.

list_all_spark_post_suppression_list_summary

Retrieve Summary. Returns the total number of suppressions for your account, as well as a break down of suppressions by source.

create_a_spark_post_template

Create a Template. Templates are created as drafts. Required: content.

delete_a_spark_post_template_by_id

Delete a Template. Deletes both published and draft versions of a template. If a transmission uses a template, the template cannot be deleted if the transmission is submitted or generating. Required: id.

get_single_spark_post_template_by_id

Retrieve a Template. Use the draft query parameter to specify the draft or published version of the template. Required: id.

list_all_spark_post_templates

List all Templates. Returns an array containing up to your first 50,000 templates.

update_a_spark_post_template_by_id

Update a Draft. Updates the draft version of a template. If a content object is provided in the request body, it must contain all relevant content fields whether they are being changed or not. The new content will completely overwrite the existing content. Required: id.

create_a_spark_post_templates_preview

Preview a Template. The template's content will be expanded using the substitution data provided and returned in the response. Use the draft query parameter to specify a draft or published version. See Template Language for more information. Required: template_id.

create_a_spark_post_tracking_domain

Create a Tracking Domain. Required: domain.

delete_a_spark_post_tracking_domain_by_id

Delete a Tracking Domain. Delete an existing tracking domain. Required: id.

get_single_spark_post_tracking_domain_by_id

Retrieve a Tracking Domain. Retrieve an existing tracking domain. Required: id.

list_all_spark_post_tracking_domains

List All Tracking Domains. Returns an array with all tracking domains. Each item in the array is a full tracking domain object.

update_a_spark_post_tracking_domain_by_id

Update a Tracking Domain. Update the attributes of an existing tracking domain. The primary account and each subaccount can only have one default tracking domain. Setting a new default automatically unsets the current relevant default, if it exists. Required: id.

create_a_spark_post_tracking_domains_certificate_check

Check Certificate Eligibility. Check if a tracking domain is eligible for managed TLS certificates. This is a read-only operation that queries Let's Encrypt to determine if the domain can be used with SparkPost's managed HTTPS feature. Unlike the enable endpoint, this check can be performed on unverified domains and does not modify the tracking domain configuration. Use this endpoint before enabling managed certificates to confirm eligibility and avoid potential failures. For more information, see the Managed HTTPS guide . Required: domain.

create_a_spark_post_tracking_domains_certificate_enable

Enable Managed Certificate. Enable managed TLS certificate for an existing tracking domain. This initiates the certificate issuance process using Let's Encrypt. The domain must be verified and point to a V2 endpoint ( v2.spgo.io or eu.v2.spgo.io ) before enabling managed certificates. Once enabled, SparkPost will automatically issue and renew TLS certificates for the domain. After receiving a successful response, monitor the domain's status.tls_status field to track the certificate issuance progress. The TLS status will ch Required: domain.

create_a_spark_post_tracking_domains_verify

Verify a Tracking Domain. Initiate a check against the configured redirect for the specified tracking domain. The domain's status object is returned on success. Required: domain.

spark_post_transmissions_bulk_delete

Delete Scheduled Transmissions By Campaign ID. Delete all transmissions in a campaign. This Request is rate limited and will return a 429 when this occurs. Please see Rate Limiting Please note that this endpoint immediately returns a 204 response and the deletion process happens in the background. When a message is deleted, you will receive a bounce event with a reason of "554 5.7.1 [internal] Campaign cancelled". You can consume these events via the Events API and Event Webhooks. You can also view statistics about these events via the Metri Required: campaign_id.

create_a_spark_post_transmission

Send Inline Content. The template language is supported in from , subject , text , html , amp_html , reply_to , and headers . The following attributes are used when specifying inline content in the transmission's content object: Header Notes - Headers such as Content-Type and Content-Transfer-Encoding are not allowed, as they are auto-generated upon construction of the email. - The To header should not be specified, since it is generated from each recipient's address field. - Each header value is expected in the UTF Required: from, subject, name, type, data.

delete_a_spark_post_transmission_by_id

Delete a Scheduled Transmission. Deprecation Notice : This feature has been deprecated. Please use the delete by campaign ID feature instead. Only transmissions which are scheduled for future generation may be deleted. Scheduled transmissions cannot be deleted if the transmission is within 10 minutes of the scheduled generation time. Required: id.

get_single_spark_post_transmission_by_id

Retrieve a Scheduled Transmission. Deprecation Notice : This feature has been deprecated. Returns details about a scheduled transmission. The response for a transmission using an inline content will include "template_id":"inline" . Inline content cannot be specifically queried. Required: id.

list_all_spark_post_usage

Retrieve Usage. Gets customer usage across all products

delete_a_spark_post_user_by_id

Delete a User. Deletes a user from your account. Required: id.

get_single_spark_post_user_by_id

Retrieve a User. Returns one user by username, in the User object shape. Required: id.

list_all_spark_post_users

List Users. Returns the users on your account, each in the User object shape.

update_a_spark_post_user_by_id

Update a User's Role. Changes a primary-account user's role, and the access policies that go with a custom role. No other field on a user can be changed through the API. Required: id.

create_a_spark_post_users_invite

Invite a User. Creates an invite and emails a registration link to the address you supply. The invitee follows the link, sets their own password, and gets the role you set in access_level . The response carries the invite id , which you use to list and revoke the invite. Send access_level to invite a primary-account user, or subaccounts to invite a subaccount-scoped one. On an account with SAML single sign-on enabled, there is no password to set, so this endpoint skips the invite and creates the user immediate Required: email.

delete_a_spark_post_users_pending_invite_by_id

Revoke a Pending Invite. Revokes a pending invite. Its registration link stops working immediately. Required: id.

list_all_spark_post_users_pending_invites

List Pending Invites. Returns the invites on your account that nobody has accepted yet, each in the Invite object shape. Expired invites do not appear.

create_a_spark_post_users_subaccount

Grant Subaccount Access. Grants a user access to a subaccount with the role you set. If the user already has access to that subaccount, the call changes their role instead. The user must already have access to at least one subaccount. This endpoint returns 400 for a primary-account user. To give a new person subaccount access, invite them with a subaccounts array. Required: username, subaccount_id, access_level.

delete_a_spark_post_users_subaccount_by_id

Revoke Subaccount Access. Removes a user's access to a subaccount. A subaccount-scoped user must keep access to at least one subaccount. Revoking the last one returns 400 . To remove the user from the account entirely, delete the user. Required: username, id.

create_a_spark_post_utils_content_previewer

Preview an inline Template. Requests to this endpoint must include the "substitution_data" and "content" fields. The content will be expanded using the substitution data and returned in the response. See the Templates API section for the definition of the content object. See Template Language for more information. - Data Structure - substitution_data (object) - Data passed to the template engine. - content (object) - Inline template content fields.

create_a_spark_post_webhook

Create a Webhook. When a webhook is created, a test POST request is sent to the target URL. If this request does not receive an HTTP 200 response, your request to the Webhook API will fail with HTTP 400 and the webhook will not be created. If created successfully, the webhook will begin to receive event data after 1 minute. Webhooks only support standard ports, port 80 for HTTP traffic and port 443 for HTTPS traffic. You will not be able to create a webhook using a non-standard port. Required: name, target, events.

delete_a_spark_post_webhook_by_id

Delete a Webhook. This will not affect any webhook batches that are already queued for delivery. Required: id.

get_single_spark_post_webhook_by_id

Retrieve a Webhook. Required: id.

list_all_spark_post_webhooks

List all Webhooks. Returns a list of all your webhooks.

update_a_spark_post_webhook_by_id

Update a Webhook. If you change to the target URL, a test POST request will be sent. If this request does not receive an HTTP 200 response, your request to the Webhooks API will fail with HTTP 400, and the webhook will not be updated. Any batches already queued for delivery to this webhook will not be affected. For example, if you change the webhook's target URL, batches already queued for delivery will still be POSTed to the previous URL. Required: id.

list_all_spark_post_webhooks_batch_status

Retrieve Batch Status Information. When SparkPost does not get a 200 response from your webhook consumer endpoint then the batch is failed and SparkPost will retry the batch multiple times for a period of 8 hours. Status information is provided on any failed batches and those that successed on retry. Batch status is available in the UI and API for 24 hours. Required: webhook_id.

list_all_spark_post_webhooks_events_documentation

Events Documentation. Returns a list of descriptions of the events, event types, and event fields that could be included in a webhooks batches to your target URL.

list_all_spark_post_webhooks_events_samples

Event Samples. Returns an example of the event data that will be posted by a webhook for the specified events. The data that will arrive at your target URL during normal operation (as opposed to calls to this endpoint) will not contain the top level results key shown in the example response.

create_a_spark_post_webhooks_validate

Validate a Webhook. The validation request sends an example message event batch the target URL, validates that the target responds with HTTP 200, and returns information on the response received from the target. Sample Batch [ { "msys": {} } ] Required: webhook_id.

Why Truto

Why use Truto’s MCP server for SparkPost

Other MCP servers give you a static tool list for one app. Truto gives you a managed, multi-tenant MCP infrastructure across 1200+ integrations.

01

Auto-generated, always up to date

Tools are dynamically generated from curated documentation — not hand-coded. As integrations evolve, tools stay current without manual maintenance.

02

Fine-grained access control

Scope each MCP server to read-only, write-only, specific methods, or tagged tool groups. Expose only what your AI agent needs — nothing more.

03

Multi-tenant by design

Each MCP server is scoped to a single connected account with its own credentials. The URL itself is the auth token — no shared secrets, no credential leaking across tenants.

04

Works with every MCP client

Standard JSON-RPC 2.0 protocol. Paste the URL into Claude, ChatGPT, Cursor, or any MCP-compatible agent framework — tools are discovered automatically.

05

Built-in auth, rate limits, and error handling

Tool calls execute through Truto’s proxy layer with automatic OAuth refresh, rate-limit handling, and normalized error responses. No raw API plumbing in your agent.

06

Expiring and auditable servers

Create time-limited MCP servers for contractors or automated workflows. Optional dual-auth requires both the URL and a Truto API token for high-security environments.

How It Works

From zero to integrated

Start with SparkPost in a free sandbox, usually ready within one business day. No boilerplate, no maintenance burden.

01

Link your customer’s SparkPost account

Use Truto’s frontend SDK to connect your customer’s SparkPost account. We handle all OAuth and API key flows — you don’t need to create the OAuth app.

02

We handle authentication

Don’t spend time refreshing access tokens or figuring out secure storage. We handle it and inject credentials into every API request.

03

Call our API, we call SparkPost

Truto’s Proxy API is a 1-to-1 mapping of the SparkPost API. You call us, we call SparkPost, and pass the response back in the same cycle.

04

Unified response format

Every response follows a single format across all integrations. We translate SparkPost’s pagination into unified cursor-based pagination. Data is always in the result attribute.

FAQs

Common questions about SparkPost on Truto

Authentication, rate limits, data freshness, and everything else you need to know before you integrate.

How does authentication to SparkPost work through Truto?

SparkPost uses API key authentication. Truto manages secure storage and injection of each end user's API key, so your app never has to handle credentials directly. You can support both the main account key and subaccount-scoped keys depending on your integration pattern.

Does the integration support SparkPost subaccounts for multi-tenant sending?

Yes. Tools are available to create, list, update, and fetch subaccounts, and most sending, domain, suppression, and metrics endpoints can be scoped to a specific subaccount — making it suitable for white-labeled or BYOE architectures.

Can we send transactional and marketing emails through this integration?

Yes. The create_a_spark_post_transmission endpoint supports both transactional and non-transactional sends with dynamic substitution data, stored templates, recipient lists, A/B tests, and per-send tracking and suppression options.

How do we receive real-time events like opens, bounces, and spam complaints?

You can programmatically create SparkPost webhooks via create_a_spark_post_webhook and validate them before going live. SparkPost will then POST message and engagement events to your endpoint. The list_all_spark_post_events_message endpoint is also available for backfill or polling.

Can we automate DKIM, sending domain, and tracking domain setup for our customers?

Yes. The integration covers creating sending domains, generating and verifying DKIM keys, creating tracking domains, enabling TLS certificates, and triggering domain verification — so you can fully automate DNS onboarding inside your product.

What deliverability and analytics data can we pull?

Truto exposes the full SparkPost metrics surface: deliverability by domain, IP pool, mailbox provider, campaign, template, subaccount, and time series, plus bounce classifications, rejection reasons, delay reasons, and benchmarked inbox rates (where the Deliverability add-on is enabled on the end user's account).

Does the integration handle inbound email parsing?

Yes. You can create and manage inbound domains and relay webhooks, enabling use cases like reply-to-ticket threading in helpdesks or inbound lead capture in CRMs.

What about rate limits and pagination?

Truto handles SparkPost's pagination and retries transparently, and normalizes list responses across endpoints. If your customers hit SparkPost's per-account rate limits, Truto surfaces the errors so you can implement backoff or queueing in your app.

SparkPost

Get SparkPost integrated into your app

Our team understands what it takes to make a SparkPost integration successful. A short, crisp 30 minute call with folks who understand the problem.