---
title: "Team API now available in our SDKs"
description: "Our SDKs have been updated to v2 and now support the Team API. Manage domains and projects and retrieve stats right from your code."
url: "https://lettermint.co/changelog/team-api-now-available-in-our-sdks"
published: "2026-06-08"
last_updated: "2026-06-08"
---

# Team API now available in our SDKs

> Our SDKs have been updated to v2 and now support the Team API. Manage domains and projects and retrieve stats right from your code.

Our [SDKs](https://lettermint.co/integrations) used to do one
thing: send email. The recently launched v2 adds the
[Team API](https://lettermint.co/changelog/team-api-now-in-preview-manage-your-account-via-api).
Manage domains, projects and webhooks right from your **Node.js**,
**PHP**, **Python**, **Go** or **Java** code.

## How it works

Sending email through our SDKs works the same as before. Check the
`UPGRADE.md` of the SDK you use to see if anything changed in how you pass
your project API token. Since our SDKs now also support the Team API, you
can provide both a project API token and a team API token.

Depending on your setup, update the SDK to version 2. Then create a team
API token in your [team settings](https://app.lettermint.co/team/api-tokens).
This token gives you access to the same functionality as the
[Team API](https://lettermint.co/docs/api-reference/) from within the SDK.

Here's an example with the Node.js SDK where we create a new project and
send an email:

```javascript
import { Lettermint } from 'lettermint';

const email = Lettermint.email('your-project-api-token');
const api = Lettermint.api('your-team-api-token');

// List domains
const domains = await lettermint.domains.list();

// Create a new project
const project = await lettermint.projects.create({ name: 'Production' });

// Send an email
const response = await lettermint.email
    .from('sender@acme.com')
    .to('recipient@acme.com')
    .subject('Hello from Lettermint')
    .text('This is a test email sent using the Lettermint Node.js SDK.')
    .send();
```

Want to check the stats on your sent emails? Here's how:

```javascript
import { Lettermint } from 'lettermint';

const api = Lettermint.api('your-team-api-token');

const stats = await api.stats.retrieve({
    start: '2026-01-01',
    end: '2026-01-31',
    project_id: 'XXX',
});
```

For more examples, check out our documentation at
[lettermint.co/docs](https://lettermint.co/docs).
