# Get & change your API token

> Find your API token in the Mail Niaga console, copy it for an integration, and make a new token if the old token leaks.
>
> Source: https://docs.mailniaga.com/api-tokens/

An API token is a key that lets other systems use the Mail Niaga API for your account. Examples are Pabbly Connect, Make, Zapier or code that your developer writes. You can copy this token on the **API** page in the Mail Niaga console. Keep this token as safe as your password.

## Find & copy your API token

Do these steps after you log in to the Mail Niaga console.

1. In the sidebar, click **API**. This item is at the bottom, below **Connect AI**.

   *(Screenshot: The API item at the bottom of the Mail Niaga console sidebar)*

   You can also open the same page from the menu with your name at the bottom of the sidebar: click **Account**, then **API** in the left menu.

2. In the **Your API token** section, click **Copy**. The token goes to the clipboard.

   *(Screenshot: The Your API token section with the Copy button)*

3. Paste the token in your integration, in the field that asks for an API token or an API key.

The same page also shows the **API endpoint** and sample requests. For these details, see [Use the Mail Niaga API](https://docs.mailniaga.com/api/).

> **Caution**
> Any person who has this token can get access to the data of your account. Do not send the token through WhatsApp or email. Do not take a screenshot of the **API** page or the **API Documentation** page. Both pages show your token.

## Make a new token

Make a new token if your token leaks, or if a person who had the token no longer works with you. All the integrations that use the old token will stop. Make a list of those integrations first.

1. In the sidebar, click **API**.
2. In the **Your API token** section, click **Regenerate token**.
3. The console asks **Are you sure?** and warns that the integrations with the current token will stop. Click **Regenerate token** to continue, or **Cancel** to stop.

   *(Screenshot: The Are you sure? dialog for Regenerate token)*

4. The console shows the message **API token regenerated successfully.** and loads the page again with the new token.
5. Click **Copy**, then update the token in each integration.

## Tips

This advice helps you keep your API token safe:

- **Keep a list of the integrations that use your token.** When you make a new token, you know each place that you must update.
- **Make a new token when a staff member who had the token leaves.** The old token stays valid until you make a new token.

## Common issues

### Where can I find my token if the API menu is not in my sidebar?

Click your name at the bottom of the sidebar, then click Account. The Account Settings page opens. In the left menu, click API. The same page opens.

### Why does my integration not work after I clicked Regenerate token?

The old token is not valid after you make a new token. Copy the new token from the Your API token section, then paste it in each integration that used the old token, for example Pabbly Connect, Make or Zapier.

### Do the members of my team use the same API token?

No. Each user has their own API token. The token that you see on the API page is the token for your login.
