---
title: How to Obtain Your WildDuck Access Token
description: "Do the following to obtain your [WildDuck](https://wildduck.email/) access token: 1. SSH to your server as a root user. 2. Open the *api.toml* file in WildDuck's installation folder using your favorite editor. In the following command, we use *nano* editor. *nano…"
url: "https://wpemailmanager.com/docs/how-to-obtain-your-wildduck-access-token/"
updated: "2023-05-17"
category: Email Servers / WildDuck
---

# How to Obtain Your WildDuck Access Token

Do the following to obtain your [WildDuck](https://wildduck.email/) access token:

1. SSH to your server as a root user.
2. Open the *api.toml* file in WildDuck's installation folder using your favorite editor. In the following command, we use *nano* editor.

   *nano /etc/wildduck/api.toml*
3. Ensure that the API is enabled by setting *enabled = true*in the api.toml file.
   ![](https://wpemailmanager.com/wp-content/uploads/2023/05/wildduck-api-toml-enabled.jpg)
4. Set the access token in the *accessToken = 'someSecretValue'* setting. Enter a value that is hard to guess. This is the access token that you will use to configure the plugin in the [general settings](https://wpemailmanager.com/documentation/settings/general-settings/) section.

   ![](https://wpemailmanager.com/wp-content/uploads/2023/05/wildduck-api-toml-access-token.jpg)
5. Save your changes and restart the WildDuck service or server.

If you use [Ploi's](https://ploi.io) WildDuck email server, learn how to get access token [here](https://wpemailmanager.com/documentation/ploi/how-to-obtain-your-ploi-access-token/).
