Managing API Tokens - MailerSend

Knowledge base

Managing API tokens

API tokens are used for authentication when sending emails or accessing server-specific endpoints. They’re the preferred alternative to using a username and password, as you can revoke an API token at any time and use different permissions.

MailerSend API tokens are not restricted to specific domains and can be used across all or multiple domains. You can view and manage all API tokens from the API tokens page, which is accessible from the Developer Tools section, and then API tokens .

Creating API tokens

There are two ways to generate an API token, depending on whether you're working within a specific domain or managing tokens account-wide.

Option 1: From Domains

Go to Emails and then Domains .

Select the domain you want to generate a token for and click Manage .

Find the API token section and click Generate new token .

Option 2: From Developer Tools

This is the easiest way to view and manage all your API tokens in one place, regardless of domain.

Go to Developer Tools .

Click API tokens .

Click Create new token .

Set a name for your token. You're free to use any name you want, as long as it’s clear to you

Select the domain you want to use the API token for

If you want, you can set an expiration date for your API token to improve your API token management and security.

Remember:

If you do not set an expiration date, by default, the API token will expire in 24 hours.

Choose the permissions for your token

API tokens can have different permissions. At MailerSend, you can choose between Sending access, Full access and Custom access permissions.

Sending access allows only sending emails, ideal for email-related tasks without broader permissions.

Full access allows the API token to access GET, PUT, DELETE and POST endpoints for all parts of your account. It's the most powerful access option, so use it carefully.

Custom access allows you to choose which access to provide for the token.

Endpoint Available access permissions
Email The main API endpoint for sending emails through MailerSend. No access, Full access
Domains You can access all domains that belong to your account. No access, Read only, Full access
Activity Obtain activity logs of your domain. No access, Read only, Full access
Analytics Obtain accumulated data of your sendings. No access, Read only, Full access
API tokens Create, update or delete API tokens. No access, Full access
Webhooks Create and manage webhooks for listening to events and triggering actions. No access, Full access
Templates Fetch and delete templates created on MailerSend. No access, Full access
Suppressions Manage recipients on a suppressions list. No access, Read only, Full access
SMS Send text messages through MailerSend No access, Read only, Full access
Email verification Verify an email address or a list of email addresses No access, Read only, Full access
Inbound routing View and manage inbound routes No access, Full access
Recipients View and manage recipients No access, Read only, Full access
Sender Identities View and manage sender identities No access, Read only, Full access
SMTP users View and manage SMTP users No access, Read only, Full access
Users View and manage users, roles, permissions, and invitations No access, Read only, Full access

Once you have set the permissions, click on the Generate token button.

Remember:

For security reasons, you will only be shown your API token one time, so please copy or download it and save it somewhere safe.

Managing API tokens

Once you have created your token, you can manage it from the Developer Tools -> API tokens section.

There are a few available options to manage your token:

Manage. You can rename the token if you need to at any point. Click Manage to open the pop-up, enter the new name and click Save . In the same pop-up, you can also see what permissions are given for this token. If you want to change the permissions, you need to delete the existing token and create a new one.

Pause. If you want to pause the token, click the drop-down arrow next to Manage and click Pause . This action pauses your access token immediately—all of the applications or users won't be able to use it (access your account) until you resume it by clicking the Resume button.

Delete. In order to delete the token, click the drop-down arrow next to Manage and choose Delete . Before deleting the token you need to confirm it in the pop-up window.

Need more info?

Please feel free to contact us at support@mailersend.com and a member of our support team will gladly assist you.

Getting started: Sending your first email Navigating the app interface

Email Add and verify a sending domain How to merge multiple SPF records Start sending transactional emails SMTP relay Testing email sending with blackhole recipients Email Activity Analytics Bulk email sending Custom headers Custom unsubscribe headers Sending domains Domain reputation Domain tracking options Personalization in emails Sender identities Split Testing Surveys Tagging emails Templates How to translate email templates automatically How to configure SMTP connections correctly (421: Service not available error) How to enable Google Email Actions & Highlights How transactional emails work The difference between transactional emails and marketing emails

SMS Purchase an SMS phone number Start sending SMS SMS: How to handle opt-in and opt-out SMS verification and usage limits

WhatsApp Getting started with WhatsApp How to connect and use the WhatsApp sandbox Managing WhatsApp Business phone numbers How to create and manage WhatsApp templates WhatsApp message activity WhatsApp inbound messaging: How it works and how to set it up

Developer tools Managing API tokens Webhooks API & SMTP request logs REST API response codes

Deliverability Blocklist monitoring DMARC monitoring How to verify an email list Deferred emails Suppressions On Hold blocklist Spam complaints 403, 422, & 429 errors What are hard and soft bounces? Improve email deliverability Reduce unsubscribe rates Account reputation statuses

Account, billing & add-ons Plans, features and limits Plan add-ons User management Change password Two-factor authentication Switch accounts How to whitelist IPs How to add a domain space to your account How to request a dedicated IP How to set a billing limit on your account How to change your payment method How to change or cancel your plan Delete account VAT Collection for EU Customers VAT Collection for UK Customers GST Collection for Customers in India GST Collection for Customers in Canada VAT (IVA) Collection for Customers in Chile Sandbox mode and the Professional trial Sales Tax Collection for Customers in New York

Integrations How to integrate MailerSend with Zapier How to integrate MailerSend with Supabase How to integrate MailerSend with Airtable How to integrate MailerSend with Slack for email event notifications WordPress WooCommerce How to configure MailerSend on Google Cloud How to connect MailerSend's MCP with your AI tools

Agency guides Creating sub-accounts for clients Sending emails for clients: domains vs. sender identities

API reference ↗

Creating API tokens

Managing API tokens

Knowledge base

Email

Domains

Activity

Analytics

API tokens

Webhooks

Templates

Suppressions

SMS

Email verification

Inbound routing

Recipients

Sender Identities

SMTP users

Users

Getting started: Sending your first email

Navigating the app interface

Email

Add and verify a sending domain

How to merge multiple SPF records

Start sending transactional emails

SMTP relay

Testing email sending with blackhole recipients

Email Activity

Analytics

Bulk email sending

Custom headers

Custom unsubscribe headers

Sending domains

Domain reputation

Domain tracking options

Personalization in emails

Sender identities

Split Testing

Surveys

Tagging emails

Templates

How to translate email templates automatically

How to configure SMTP connections correctly (421: Service not available error)

How to enable Google Email Actions & Highlights

How transactional emails work

The difference between transactional emails and marketing emails

SMS

Purchase an SMS phone number

Start sending SMS

SMS: How to handle opt-in and opt-out

SMS verification and usage limits

WhatsApp

Getting started with WhatsApp

How to connect and use the WhatsApp sandbox

Managing WhatsApp Business phone numbers

How to create and manage WhatsApp templates

WhatsApp message activity

WhatsApp inbound messaging: How it works and how to set it up

Developer tools

Managing API tokens

Webhooks

API & SMTP request logs

REST API response codes

Deliverability

Blocklist monitoring

DMARC monitoring

How to verify an email list

Deferred emails

Suppressions

On Hold blocklist

Spam complaints

403, 422, & 429 errors

What are hard and soft bounces?

Improve email deliverability

Reduce unsubscribe rates

Account reputation statuses

Account, billing & add-ons

Plans, features and limits

Plan add-ons

User management

Change password

Two-factor authentication

Switch accounts

How to whitelist IPs

How to add a domain space to your account

How to request a dedicated IP

How to set a billing limit on your account

How to change your payment method

How to change or cancel your plan

Delete account

VAT Collection for EU Customers

VAT Collection for UK Customers

GST Collection for Customers in India

GST Collection for Customers in Canada

VAT (IVA) Collection for Customers in Chile

Sandbox mode and the Professional trial

Sales Tax Collection for Customers in New York

Integrations

How to integrate MailerSend with Zapier

How to integrate MailerSend with Supabase

How to integrate MailerSend with Airtable

How to integrate MailerSend with Slack for email event notifications

WordPress

WooCommerce

How to configure MailerSend on Google Cloud

How to connect MailerSend's MCP with your AI tools

Agency guides

Creating sub-accounts for clients

Sending emails for clients: domains vs. sender identities

API reference ↗

Creating API tokens

Managing API tokens