### [Error: SMTP2GO E_ApiResponseCodes: ENDPOINT_PERMISSION_DENIED](https://wpmailsmtp.com/docs/error-smtp2go-e_apiresponsecodes-endpoint_permission_denied/)

**Published:** September 16, 2024
**Author:** David Ozokoye

**Content:**

### Overview

The ‘SMTP2GO E\_ApiResponseCodes.ENDPOINT\_PERMISSION\_DENIED’ error typically occurs when sending emails through the [SMTP2GO](https://wpmailsmtp.com/docs/how-to-set-up-the-smtp2go-mailer-in-wp-mail-smtp/) email service. It indicates the API key you configured doesn’t have permission to send emails.

### Causes

The primary cause of this error is using an API key that doesn’t have the correct permissions to send emails on your behalf.

### Solution

To resolve the error, you’ll need to update the permission for your API key. To do so, log in to your [SMTP2GO](https://app.smtp2go.com/) account, then go to **Sending » API Keys**.

![Accessing the API keys section in SMTP2Go](https://wpmailsmtp.com/wp-content/uploads/2024/09/sending-api-keys.png)

Here, you’ll see all the API keys you’ve created. Go ahead and select the one you used to configure your SMTP plugin.

![Select API key](https://wpmailsmtp.com/wp-content/uploads/2024/09/select-api-key.png)

In the overlay that appears, navigate to the **Permissions** tab.

![Permissions tab](https://wpmailsmtp.com/wp-content/uploads/2024/09/permissions-tab.png)

Then, tick the **Emails** option to grant the API key access to send emails on your behalf.

![Emails permission in SMTP2GO](https://wpmailsmtp.com/wp-content/uploads/2024/09/emails-permission.png)

Once done, click the **Save** button to save your changes.

![Click the Save button](https://wpmailsmtp.com/wp-content/uploads/2024/09/save-changes.png)

That’s it! Now you know how to troubleshoot and fix the ‘SMTP2GO E\_ApiResponseCodes.ENDPOINT\_PERMISSION\_DENIED’ error.

Would you like to test your SMTP connection to ensure it works properly? Our guide to [sending a test email](https://wpmailsmtp.com/docs/how-to-send-a-test-email-in-wp-mail-smtp/) covers all the steps in detail.

**Categories:** Error Library

---

