mailtrap.api.* operation is listed below with parameter shapes and return types from the plugin Zod schemas.
Account
getBillingUsage
account.getBillingUsage
Get billing usage against the account’s testing/sending/marketing plan limits
Risk: read
billing full type
billing full type
testing full type
testing full type
sending full type
sending full type
marketing full type
marketing full type
getPermissionResources
account.getPermissionResources
Get every resource (inboxes, projects, domains, billing, account) the token has admin access to, nested by hierarchy
Risk: read
lazy[]
listAccounts
account.listAccounts
List Mailtrap accounts the token can access
Risk: read
object[]
Output full type
Output full type
Contact Fields
create
contactFields.create
Create a custom contact field
Risk: write
delete
contactFields.delete
Permanently delete a custom contact field, dropping its stored values off every contact [DESTRUCTIVE]
Risk: destructive
get
contactFields.get
Get a custom contact field by id
Risk: read
list
contactFields.list
List custom contact fields
Risk: read
object[]
Output full type
Output full type
update
contactFields.update
Update a custom contact field
Risk: write
Contact Lists
create
contactLists.create
Create a contact list
Risk: write
delete
contactLists.delete
Permanently delete a contact list [DESTRUCTIVE]
Risk: destructive
get
contactLists.get
Get a contact list by id
Risk: read
list
contactLists.list
List contact lists
Risk: read
object[]
Output full type
Output full type
update
contactLists.update
Rename a contact list
Risk: write
Contacts
create
contacts.create
Create a contact
Risk: write
fields full type
fields full type
fields full type
fields full type
createEvent
contacts.createEvent
Record a custom event against a contact
Risk: write
params full type
params full type
params full type
params full type
createExport
contacts.createExport
Start an async export of contacts matching a filter
Risk: write
filters full type
filters full type
delete
contacts.delete
Permanently delete a contact [DESTRUCTIVE]
Risk: destructive
get
contacts.get
Get a contact by id or email
Risk: read
fields full type
fields full type
getExport
contacts.getExport
Get the status/download URL of a contact export job
Risk: read
getImport
contacts.getImport
Get the status of a contact import job
Risk: read
import
contacts.import
Bulk-import contacts, upserting by email
Risk: write
contacts full type
contacts full type
update
contacts.update
Update a contact by id or email
Risk: write
fields full type
fields full type
fields full type
fields full type
Email Templates
create
emailTemplates.create
Create an email template
Risk: write
delete
emailTemplates.delete
Permanently delete an email template [DESTRUCTIVE]
Risk: destructive
get
emailTemplates.get
Get an email template by id
Risk: read
list
emailTemplates.list
List email templates
Risk: read
object[]
Output full type
Output full type
update
emailTemplates.update
Update an email template
Risk: write
Inboxes
clean
inboxes.clean
Delete every message in a sandbox inbox [DESTRUCTIVE]
Risk: destructive
permissions full type
permissions full type
get
inboxes.get
Get an inbox’s attributes, including its SMTP credentials
Risk: read
permissions full type
permissions full type
list
inboxes.list
List sandbox inboxes
Risk: read
object[]
Output full type
Output full type
markAsRead
inboxes.markAsRead
Mark every message in a sandbox inbox as read
Risk: write
permissions full type
permissions full type
resetCredentials
inboxes.resetCredentials
Reset an inbox’s SMTP credentials, invalidating the previous ones [DESTRUCTIVE]
Risk: destructive
permissions full type
permissions full type
update
inboxes.update
Update an inbox’s name and/or email username
Risk: write
permissions full type
permissions full type
Messages
getHtml
messages.getHtml
Get the formatted HTML body of a message
Risk: read
list
messages.list
List messages in a sandbox inbox
Risk: read
object[]
Output full type
Output full type
Projects
delete
projects.delete
Permanently delete a project and every inbox in it [DESTRUCTIVE]
Risk: destructive
get
projects.get
Get a project and its inboxes by id
Risk: read
inboxes full type
inboxes full type
permissions full type
permissions full type
list
projects.list
List projects and their sandbox inboxes
Risk: read
object[]
Output full type
Output full type
update
projects.update
Rename a project
Risk: write
inboxes full type
inboxes full type
permissions full type
permissions full type
Sending Domains
create
sendingDomains.create
Register a sending domain for DNS verification
Risk: write
dns_records full type
dns_records full type
delete
sendingDomains.delete
Permanently remove a sending domain [DESTRUCTIVE]
Risk: destructive
get
sendingDomains.get
Get a sending domain by id, including its DNS records
Risk: read
dns_records full type
dns_records full type
list
sendingDomains.list
List sending domains
Risk: read
object[]
Output full type
Output full type
Stats
byCategories
stats.byCategories
Get sending stats broken down by category
Risk: read
object[]
Output full type
Output full type
byDate
stats.byDate
Get sending stats broken down by day
Risk: read
object[]
Output full type
Output full type
byDomains
stats.byDomains
Get sending stats broken down by sending domain
Risk: read
object[]
Output full type
Output full type
byEsp
stats.byEsp
Get sending stats broken down by recipient email service provider
Risk: read
object[]
Output full type
Output full type
get
stats.get
Get aggregated sending stats for a date range
Risk: read
Suppressions
list
suppressions.list
List (and optionally search) suppressed email addresses
Risk: read
object[]
Output full type
Output full type