LettermintLettermint
  • Knowledge base
  • Community
  • Changelog
  • Support
  • Documentation
  • Sending API
  • Team API
Getting started
Guides
Platform
    Projects & Routes
    Emails
    Domains
    Webhooks
    Teams
      Team API
        IntroductionQuickstartManage member accessReferenceUse Cases & Best PracticesTeam API tokens
      RolesTeam membersAccount and team security
      SSO
      SCIMSpend Limits
    Onboarding
Resources
Team API

Team API tokens

Overview

Team API tokens provide programmatic access to your Lettermint team resources at the team level. Unlike Project API tokens which are scoped to individual projects, Team API tokens can access multiple resources across your entire team based on their configured abilities.

Team API tokens are different from Project API tokens. Project API tokens (format: lm_xxx...) are used for sending emails, while Team API tokens provide broader access to manage team resources via the API.

Creating Team API tokens

Team API tokens are managed through explicit role permissions. A member needs Manage team API tokens to create or edit tokens.

Steps to create a token

  1. Navigate to Manage team in your dashboard
  2. Go to the API Tokens tab
  3. Click the Create token button
  4. Enter a descriptive name for your token (e.g., "CI/CD Pipeline", "Analytics Integration")
  5. Select the abilities you want to grant to this token
  6. Click Create to generate your token
Create team API token form showing name and abilities selection.

After creating a token, make sure to copy it immediately. For security reasons, you won't be able to see the full token again. Store it securely in your environment variables or secrets manager.

Managing Team API tokens

Viewing your tokens

All active team API tokens are listed in the API Tokens tab under Manage team. Each token displays:

  • Name: The descriptive name you provided
  • Restriction: Whether the token has an IP allowlist
  • Last changed: When and who created or rotated the token
  • Last used: When the token was last used to make an API request
  • Last IP: The last IP address which used the token
List of team API tokens with their names, and usage information.

Regenerating tokens

If you suspect a token has been compromised, you can regenerate it:

  1. Click the 3-dots menu next to the token
  2. Select Regenerate
  3. Confirm the regeneration
  4. Copy your new token immediately

Regenerating a token will immediately invalidate the old token. Any integrations using the old token will stop working until you update them with the new token.

Revoking tokens

To remove a token you no longer need:

  1. Click the 3-dots menu next to the token
  2. Select Revoke
  3. Confirm the deletion

The token will be immediately revoked and can no longer be used to access your team.

Restrict a token by IP address

Use an IP allowlist when an automation or integration calls the Team API from stable outbound IP addresses. Open the token actions menu, choose Edit, and add entries under Allowed IP addresses and CIDR ranges.

You can add IPv4 addresses, IPv6 addresses, and CIDR ranges:

  • 203.0.113.10
  • 203.0.113.0/24
  • 2001:db8::/32

Leave the list empty for No restriction. A token with no restriction can be used from any IP address.

IP allowlists apply to Team API requests authenticated with Authorization: Bearer. Requests from outside the allowlist fail with an authentication error and appear in the token logs.

Token abilities

Team API tokens use a granular permission system based on abilities. When creating a token, you can select which abilities to grant.

Read vs write scopes

Abilities are organized into read and write scopes:

Read abilities allow tokens to:

  • View team information and settings
  • List team members
  • View projects, routes, and domains
  • Access message data and statistics
  • View webhooks and suppression lists

Write abilities allow tokens to:

  • Update team settings
  • Create, update, and delete projects
  • Assign non-Owner roles and project access when explicitly enabled by an Owner
  • Manage domains and DNS records
  • Create and configure routes
  • Manage webhooks
  • Add or remove suppression list entries

Write abilities do not automatically grant read abilities. Select each ability the integration needs.

Available abilities

The following abilities can be granted to team API tokens:

AbilityScopeDescription
*Full accessFull access to all Team API resources. Avoid unless an integration truly needs every ability.
read:teamReadView team information and settings
write:teamWriteUpdate team settings
read:membersReadView team members and their roles
write:member_assignmentsSensitiveAssign non-Owner roles and project access. Requires read:members and explicit Owner approval.
read:projectsReadList and view all team projects
write:projectsWriteCreate, update, and delete projects
read:routesReadView email routes
write:routesWriteCreate, update, and delete routes
read:domainsReadView team domains
write:domainsWriteAdd, update, and delete domains
read:messagesReadView message data and delivery statistics
write:messagesWriteReserved for future message write operations
read:webhooksReadView webhook configurations
write:webhooksWriteCreate, update, and delete webhooks
read:suppressionsReadView suppression lists
write:suppressionsWriteAdd or remove email addresses from suppression lists

You can select multiple abilities when creating a token. Choose only the abilities your integration needs to follow the principle of least privilege. If a workflow lists resources before updating them, grant both the relevant read and write abilities.

write:member_assignments can change another member's effective access. Only an Owner can add it to a token. It is never implied by *; a full-access assignment integration needs both * and write:member_assignments.

Using team API tokens

Team API tokens are used to authenticate requests to the Lettermint API. Include your token in the Authorization header:

TerminalCode
curl -X "GET" "https://api.lettermint.co/v1/team" \ -H 'Accept: application/json' \ -H 'Authorization: Bearer YOUR_TEAM_TOKEN'

For a complete API usage guide with detailed examples and common workflows, see the Team API documentation.

To automate roles and project access, see Manage member access with the Team API.

Best practices

Security recommendations

  • Never commit tokens to version control: Store tokens in environment variables or secrets managers
  • Use descriptive names: Name tokens based on their purpose (e.g., "Production CI/CD", "Monitoring Dashboard")
  • Grant minimal abilities: Only give tokens the explicit read and write abilities they need to function
  • Restrict stable integrations by IP address: Add an IP allowlist for long-lived automation tokens that use known outbound IPs
  • Rotate tokens regularly: Regenerate tokens periodically, especially for long-running integrations
  • Delete unused tokens: Remove tokens that are no longer needed
  • Monitor token usage: Check the "Last used" timestamp to identify inactive or potentially compromised tokens

Token management tips

  • One token per integration: Create separate tokens for each service or integration
  • Document token usage: Keep a record of which tokens are used where
  • Set up alerting: Monitor failed authentication attempts in your logs

Team API tokens have broad access to your team resources. Treat them with the same care as passwords and never expose them in client-side code or public repositories.

Permissions required

Dashboard access to Team API tokens is controlled separately from the abilities granted to each token:

ActionRole permission
List and inspect tokensView team API tokens
Create or edit tokensManage team API tokens
Regenerate tokensRotate team API tokens
Revoke tokensRevoke team API tokens

These are team-wide permissions. They are not restricted by a member's project access, and they are not included in the Member system role. Grant only the actions a member needs.

See Roles for role permissions and delegation rules.

Last modified on July 21, 2026
Use Cases & Best PracticesRoles
On this page
  • Overview
  • Creating Team API tokens
    • Steps to create a token
  • Managing Team API tokens
    • Viewing your tokens
    • Regenerating tokens
    • Revoking tokens
  • Restrict a token by IP address
  • Token abilities
    • Read vs write scopes
    • Available abilities
  • Using team API tokens
  • Best practices
    • Security recommendations
    • Token management tips
  • Permissions required