Skip to main content
Connectors

Mailtrap connector

Set up the Mailtrap connector in Kaivo: authentication, configuration, the 7 BigQuery tables it syncs, and answers to common questions.

Written By Lauri Raivio

Last updated 15 days ago

Kaivo is a fully managed data platform that syncs your Mailtrap data into a Google BigQuery warehouse and keeps it up to date automatically. There is no pipeline to build and no infrastructure to run, so you can spend your time analysing your survey and email data instead of moving it.

What is the Mailtrap connector

Sync your Mailtrap email data into BigQuery with Kaivo to monitor deliverability and sending across domains.

CategorySurveys & Email
AuthenticationAPI key
SetupSelf-service

Getting started with the Mailtrap connector

  1. Sign up for Kaivo and create a workspace.
  2. Connect your Mailtrap account.
  3. Choose which tables to sync.
  4. Wait for the initial sync to finish.
  5. Query your data in BigQuery or your favourite AI or BI tool.

Authenticating Mailtrap

Authenticate with your API Token.

FieldDescription
API Token

API token to use. Find it at https://mailtrap.io/account

Tables and columns synced from Mailtrap

Kaivo syncs 7 tables from Mailtrap into a dedicated dataset in your BigQuery warehouse. Click any table to see its columns and types.

ColumnTypeDescription
_kaivo_idSTRINGPrimary key that uniquely identifies the row. Auto-generated by Kaivo.
idFLOAT64
nameSTRING
_kaivo_extracted_atTIMESTAMPTimestamp that shows when the row was extracted. Auto-generated by Kaivo.

Subtable: accounts__access_levels

ColumnTypeDescription
_kaivo_parent_idSTRINGForeign key referencing _kaivo_id in the parent table. Auto-generated by Kaivo.
_kaivo_idSTRINGPrimary key that uniquely identifies the row. Auto-generated by Kaivo.
valueFLOAT64
_kaivo_extracted_atTIMESTAMPTimestamp that shows when the row was extracted. Auto-generated by Kaivo.
ColumnTypeDescription
_kaivo_idSTRINGPrimary key that uniquely identifies the row. Auto-generated by Kaivo.
billing__cycle_endSTRING
billing__cycle_startSTRING
sending__plan__nameSTRING
sending__usage__sent_messages_count__currentFLOAT64
sending__usage__sent_messages_count__limitFLOAT64
testing__plan__nameSTRING
testing__usage__forwarded_messages_count__currentFLOAT64
testing__usage__forwarded_messages_count__limitFLOAT64
testing__usage__sent_messages_count__currentFLOAT64
testing__usage__sent_messages_count__limitFLOAT64
uuidSTRING
_kaivo_extracted_atTIMESTAMPTimestamp that shows when the row was extracted. Auto-generated by Kaivo.
ColumnTypeDescription
_kaivo_idSTRINGPrimary key that uniquely identifies the row. Auto-generated by Kaivo.
api_domainSTRING
domainSTRING
email_domainSTRING
email_usernameSTRING
email_username_enabledBOOL
emails_countFLOAT64
emails_unread_countFLOAT64
forward_from_email_addressSTRING
forwarded_messages_countFLOAT64
idFLOAT64
max_message_sizeFLOAT64
max_sizeFLOAT64
nameSTRING
passwordSTRING
permissions__can_destroyBOOL
permissions__can_leaveBOOL
permissions__can_readBOOL
permissions__can_updateBOOL
pop3_domainSTRING
project_idFLOAT64
sent_messages_countFLOAT64
statusSTRING
usedBOOL
usernameSTRING
_kaivo_extracted_atTIMESTAMPTimestamp that shows when the row was extracted. Auto-generated by Kaivo.

Subtable: inboxes__pop3_ports

ColumnTypeDescription
_kaivo_parent_idSTRINGForeign key referencing _kaivo_id in the parent table. Auto-generated by Kaivo.
_kaivo_idSTRINGPrimary key that uniquely identifies the row. Auto-generated by Kaivo.
valueFLOAT64
_kaivo_extracted_atTIMESTAMPTimestamp that shows when the row was extracted. Auto-generated by Kaivo.

Subtable: inboxes__smtp_ports

ColumnTypeDescription
_kaivo_parent_idSTRINGForeign key referencing _kaivo_id in the parent table. Auto-generated by Kaivo.
_kaivo_idSTRINGPrimary key that uniquely identifies the row. Auto-generated by Kaivo.
valueFLOAT64
_kaivo_extracted_atTIMESTAMPTimestamp that shows when the row was extracted. Auto-generated by Kaivo.
ColumnTypeDescription
_kaivo_idSTRINGPrimary key that uniquely identifies the row. Auto-generated by Kaivo.
blacklists_report_info__domainSTRING
blacklists_report_info__ipSTRING
blacklists_report_info__resultSTRING
created_atSTRING
download_pathSTRING
email_sizeFLOAT64
from_emailSTRING
from_nameSTRING
html_body_sizeFLOAT64
html_pathSTRING
html_source_pathSTRING
human_sizeSTRING
idFLOAT64
inbox_idFLOAT64
is_readBOOL
raw_pathSTRING
sent_atSTRING
smtp_information__okBOOL
subjectSTRING
text_body_sizeFLOAT64
to_emailSTRING
to_nameSTRING
txt_pathSTRING
updated_atSTRING
_kaivo_extracted_atTIMESTAMPTimestamp that shows when the row was extracted. Auto-generated by Kaivo.

Subtable: messages__blacklists_report_info__report

ColumnTypeDescription
_kaivo_parent_idSTRINGForeign key referencing _kaivo_id in the parent table. Auto-generated by Kaivo.
_kaivo_idSTRINGPrimary key that uniquely identifies the row. Auto-generated by Kaivo.
in_black_listBOOL
nameSTRING
urlSTRING
_kaivo_extracted_atTIMESTAMPTimestamp that shows when the row was extracted. Auto-generated by Kaivo.
ColumnTypeDescription
_kaivo_idSTRINGPrimary key that uniquely identifies the row. Auto-generated by Kaivo.
idFLOAT64
nameSTRING
permissions__can_destroyBOOL
permissions__can_leaveBOOL
permissions__can_readBOOL
permissions__can_updateBOOL
share_links__adminSTRING
share_links__viewerSTRING
_kaivo_extracted_atTIMESTAMPTimestamp that shows when the row was extracted. Auto-generated by Kaivo.

Subtable: projects__inboxes

ColumnTypeDescription
_kaivo_parent_idSTRINGForeign key referencing _kaivo_id in the parent table. Auto-generated by Kaivo.
_kaivo_idSTRINGPrimary key that uniquely identifies the row. Auto-generated by Kaivo.
api_domainSTRING
domainSTRING
email_domainSTRING
email_usernameSTRING
email_username_enabledBOOL
emails_countFLOAT64
emails_unread_countFLOAT64
forward_from_email_addressSTRING
forwarded_messages_countFLOAT64
idFLOAT64
last_message_sent_atSTRING
max_message_sizeFLOAT64
max_sizeFLOAT64
nameSTRING
passwordSTRING
permissions__can_destroyBOOL
permissions__can_leaveBOOL
permissions__can_readBOOL
permissions__can_updateBOOL
pop3_domainSTRING
project_idFLOAT64
sent_messages_countFLOAT64
statusSTRING
usedBOOL
usernameSTRING
_kaivo_extracted_atTIMESTAMPTimestamp that shows when the row was extracted. Auto-generated by Kaivo.

Subtable: projects__inboxes__pop3_ports

ColumnTypeDescription
_kaivo_parent_idSTRINGForeign key referencing _kaivo_id in the parent table. Auto-generated by Kaivo.
_kaivo_idSTRINGPrimary key that uniquely identifies the row. Auto-generated by Kaivo.
valueFLOAT64
_kaivo_extracted_atTIMESTAMPTimestamp that shows when the row was extracted. Auto-generated by Kaivo.

Subtable: projects__inboxes__smtp_ports

ColumnTypeDescription
_kaivo_parent_idSTRINGForeign key referencing _kaivo_id in the parent table. Auto-generated by Kaivo.
_kaivo_idSTRINGPrimary key that uniquely identifies the row. Auto-generated by Kaivo.
valueFLOAT64
_kaivo_extracted_atTIMESTAMPTimestamp that shows when the row was extracted. Auto-generated by Kaivo.
ColumnTypeDescription
_kaivo_idSTRINGPrimary key that uniquely identifies the row. Auto-generated by Kaivo.
typeSTRING
access_levelFLOAT64
idFLOAT64
nameSTRING
_kaivo_extracted_atTIMESTAMPTimestamp that shows when the row was extracted. Auto-generated by Kaivo.

Subtable: resources__resources

ColumnTypeDescription
_kaivo_parent_idSTRINGForeign key referencing _kaivo_id in the parent table. Auto-generated by Kaivo.
_kaivo_idSTRINGPrimary key that uniquely identifies the row. Auto-generated by Kaivo.
typeSTRING
access_levelFLOAT64
idFLOAT64
nameSTRING
_kaivo_extracted_atTIMESTAMPTimestamp that shows when the row was extracted. Auto-generated by Kaivo.

Subtable: resources__resources__resources

ColumnTypeDescription
_kaivo_parent_idSTRINGForeign key referencing _kaivo_id in the parent table. Auto-generated by Kaivo.
_kaivo_idSTRINGPrimary key that uniquely identifies the row. Auto-generated by Kaivo.
typeSTRING
access_levelFLOAT64
idFLOAT64
nameSTRING
_kaivo_extracted_atTIMESTAMPTimestamp that shows when the row was extracted. Auto-generated by Kaivo.

Subtable: resources__resources__resources__resources

ColumnTypeDescription
_kaivo_parent_idSTRINGForeign key referencing _kaivo_id in the parent table. Auto-generated by Kaivo.
_kaivo_idSTRINGPrimary key that uniquely identifies the row. Auto-generated by Kaivo.
valueJSON
_kaivo_extracted_atTIMESTAMPTimestamp that shows when the row was extracted. Auto-generated by Kaivo.
ColumnTypeDescription
_kaivo_idSTRINGPrimary key that uniquely identifies the row. Auto-generated by Kaivo.
auto_unsubscribe_link_enabledBOOL
click_tracking_enabledBOOL
compliance_statusSTRING
critical_alerts_enabledBOOL
custom_domain_tracking_enabledBOOL
demoBOOL
dns_verifiedBOOL
domain_nameSTRING
health_alerts_enabledBOOL
idFLOAT64
open_tracking_enabledBOOL
permissions__can_destroyBOOL
permissions__can_readBOOL
permissions__can_updateBOOL
tracking_domain_nameSTRING
_kaivo_extracted_atTIMESTAMPTimestamp that shows when the row was extracted. Auto-generated by Kaivo.

Subtable: sending_domains__auto_bcc_config__emails

ColumnTypeDescription
_kaivo_parent_idSTRINGForeign key referencing _kaivo_id in the parent table. Auto-generated by Kaivo.
_kaivo_idSTRINGPrimary key that uniquely identifies the row. Auto-generated by Kaivo.
valueJSON
_kaivo_extracted_atTIMESTAMPTimestamp that shows when the row was extracted. Auto-generated by Kaivo.

Subtable: sending_domains__auto_bcc_config__headers

ColumnTypeDescription
_kaivo_parent_idSTRINGForeign key referencing _kaivo_id in the parent table. Auto-generated by Kaivo.
_kaivo_idSTRINGPrimary key that uniquely identifies the row. Auto-generated by Kaivo.
valueJSON
_kaivo_extracted_atTIMESTAMPTimestamp that shows when the row was extracted. Auto-generated by Kaivo.

Subtable: sending_domains__dns_records

ColumnTypeDescription
_kaivo_parent_idSTRINGForeign key referencing _kaivo_id in the parent table. Auto-generated by Kaivo.
_kaivo_idSTRINGPrimary key that uniquely identifies the row. Auto-generated by Kaivo.
typeSTRING
domainSTRING
keySTRING
nameSTRING
statusSTRING
valueSTRING
_kaivo_extracted_atTIMESTAMPTimestamp that shows when the row was extracted. Auto-generated by Kaivo.

How the Mailtrap sync works

After the first load, Kaivo keeps your BigQuery warehouse up to date for you. Where Mailtrap supports it, each sync pulls only new and changed records so it stays fast; otherwise it refreshes the whole table. Every record keeps its original ID, so you won't get duplicate rows.

Frequently asked questions

How long does the initial sync take for Mailtrap?

It depends on how much history is in your Mailtrap account. Most initial syncs finish within minutes, while large accounts can take a few hours. After that, syncs only fetch new and changed records, so they're much faster.

Can I sync only some tables or columns?

Yes. You pick which tables to sync when you set up the connection and can change the selection later. Tables you don't select are never copied to your warehouse.

What happens when Mailtrap's schema changes?

New fields are never added automatically. You choose which fields to sync, so data you haven't selected (sensitive personal data, for example) never lands in your warehouse. When a new field appears, it becomes available for you to add. What happens to removed or renamed fields depends on a table's sync mode: full-refresh tables always match what's currently in Mailtrap, so dropped fields disappear, while incremental tables keep their existing columns and history, so an old field stays and newly added fields fill in over time.

How do I handle GDPR or data deletion requests?

Your data lives in your own Kaivo-managed BigQuery warehouse, so the most direct option is to delete or anonymise specific records right in BigQuery. If you delete data in Mailtrap instead, full-refresh tables drop it on the next sync, while incremental tables keep it, so you would remove the row in BigQuery or ask us to run a full refresh. To remove everything, delete the Mailtrap connector in Kaivo and all of its synced data is deleted with it.

Common use cases for Mailtrap data

Deliverability monitoring

Use messages and sending_domains to track delivery across domains.

Usage tracking

Use billing_usage to monitor sending volume and cost over time.

Project view

Join projects with inboxes to organise testing and sending.

Use Mailtrap data in your AI and BI tools

Once Mailtrap data lands in your Kaivo-managed BigQuery warehouse, you can explore it with AI tools or any BI tool that connects to BigQuery. Here's how the most common destinations work with Mailtrap data.

Claude

Use Kaivo's MCP server to give Claude secure, workspace-scoped access to your data. Setup guide →

Power BI

Microsoft's BI tool with a native BigQuery connector. Supports direct query and scheduled refresh. Setup guide →

Data Studio

Free Google BI tool with native BigQuery support. One-click connection to your Kaivo warehouse; great for SMB teams on Google Workspace. Setup guide →

Tableau

The premium analytics standard, with native BigQuery integration. Setup guide →

Google Sheets

Use Connected Sheets to query BigQuery directly from a spreadsheet, with no SQL. Setup guide →

Excel

Connect via Power Query's BigQuery connector. Setup guide →

Metabase

Open-source BI tool with strong BigQuery support. Setup guide →

See our pricing page for Mailtrap connector pricing and plan details.

Was this helpful?

Still need help? Share an idea