Skip to main content
New to Corsair? See API access, authentication, and error handling.

Account

getBillingUsage

account.getBillingUsage Get billing usage against the account’s testing/sending/marketing plan limits Risk: read
Input: empty object Output

getPermissionResources

account.getPermissionResources Get every resource (inboxes, projects, domains, billing, account) the token has admin access to, nested by hierarchy Risk: read
Input: empty object Output: object[]

listAccounts

account.listAccounts List Mailtrap accounts the token can access Risk: read
Input: empty object Output: object[]

Contact Fields

create

contactFields.create Create a custom contact field Risk: write
Input Output

delete

contactFields.delete Permanently delete a custom contact field, dropping its stored values off every contact Risk: destructive
Input Output: empty object

get

contactFields.get Get a custom contact field by id Risk: read
Input Output

list

contactFields.list List custom contact fields Risk: read
Input: empty object Output: object[]

update

contactFields.update Update a custom contact field Risk: write
Input Output

Contact Lists

create

contactLists.create Create a contact list Risk: write
Input Output

delete

contactLists.delete Permanently delete a contact list Risk: destructive
Input Output: empty object

get

contactLists.get Get a contact list by id Risk: read
Input Output

list

contactLists.list List contact lists Risk: read
Input Output: object[]

update

contactLists.update Rename a contact list Risk: write
Input Output

Contacts

create

contacts.create Create a contact Risk: write
Input Output

createEvent

contacts.createEvent Record a custom event against a contact Risk: write
Input Output

createExport

contacts.createExport Start an async export of contacts matching a filter Risk: write
Input
Output

delete

contacts.delete Permanently delete a contact Risk: destructive
Input Output: empty object

get

contacts.get Get a contact by id or email Risk: read
Input Output

getExport

contacts.getExport Get the status/download URL of a contact export job Risk: read
Input Output

getImport

contacts.getImport Get the status of a contact import job Risk: read
Input Output

import

contacts.import Bulk-import contacts, upserting by email Risk: write
Input
Output

update

contacts.update Update a contact by id or email Risk: write
Input Output

Email Templates

create

emailTemplates.create Create an email template Risk: write
Input Output

delete

emailTemplates.delete Permanently delete an email template Risk: destructive
Input Output: empty object

get

emailTemplates.get Get an email template by id Risk: read
Input Output

list

emailTemplates.list List email templates Risk: read
Input: empty object Output: object[]

update

emailTemplates.update Update an email template Risk: write
Input Output

Inboxes

clean

inboxes.clean Delete every message in a sandbox inbox Risk: destructive
Input Output

get

inboxes.get Get an inbox’s attributes, including its SMTP credentials Risk: read
Input Output

list

inboxes.list List sandbox inboxes Risk: read
Input: empty object Output: object[]

markAsRead

inboxes.markAsRead Mark every message in a sandbox inbox as read Risk: write
Input Output

resetCredentials

inboxes.resetCredentials Reset an inbox’s SMTP credentials, invalidating the previous ones Risk: destructive
Input Output

update

inboxes.update Update an inbox’s name and/or email username Risk: write
Input Output

Messages

getHtml

messages.getHtml Get the formatted HTML body of a message Risk: read
Input Output

list

messages.list List messages in a sandbox inbox Risk: read
Input Output: object[]

Projects

delete

projects.delete Permanently delete a project and every inbox in it Risk: destructive
Input Output

get

projects.get Get a project and its inboxes by id Risk: read
Input Output

list

projects.list List projects and their sandbox inboxes Risk: read
Input: empty object Output: object[]

update

projects.update Rename a project Risk: write
Input Output

Sending Domains

create

sendingDomains.create Register a sending domain for DNS verification Risk: write
Input Output

delete

sendingDomains.delete Permanently remove a sending domain Risk: destructive
Input Output: empty object

get

sendingDomains.get Get a sending domain by id, including its DNS records Risk: read
Input Output

list

sendingDomains.list List sending domains Risk: read
Input: empty object Output: object[]

Stats

byCategories

stats.byCategories Get sending stats broken down by category Risk: read
Input Output: object[]

byDate

stats.byDate Get sending stats broken down by day Risk: read
Input Output: object[]

byDomains

stats.byDomains Get sending stats broken down by sending domain Risk: read
Input Output: object[]

byEsp

stats.byEsp Get sending stats broken down by recipient email service provider Risk: read
Input Output: object[]

get

stats.get Get aggregated sending stats for a date range Risk: read
Input Output

Suppressions

list

suppressions.list List (and optionally search) suppressed email addresses Risk: read
Input Output: object[]