logo
Knowledge Base
General1 min read

Mailgun's incorrect credentials error

Error: Cannot create the permanentfailwebhook, reason: Your credentials are incorrect. Reason The error message "Cannot create the permanentfail webhook: Your credentials are incor...

Error: Cannot create the permanent_fail_webhook, reason: Your credentials are incorrect.

Reason

The error message "Cannot create the permanent_fail webhook: Your credentials are incorrect" may appear when you try to add a Mailgun delivery server in Deploia. This error usually arises during the validation of your Mailgun delivery server, and an incorrect API key is usually the root cause. This is an explanation of the cause of the problem and how to fix it.

This error appears because the wrong API key has been entered during the validation process. In most cases, users mistakenly input the API key generated from the Domain Settings > Sending API Keys section in Mailgun, which leads to this issue.

The fix

To resolve the error, you need to use the correct API key found in "https://app.mailgun.com/settings/api_security". Here’s how to get the correct API key:

  • Click on the arrow next to your name in the top-right corner of the Mailgun dashboard to access a dropdown menu. Select API Security from the list.

  • Generate a new API key by clicking "Add new key".

  • Use this new API key in your delivery server

Related articles

General7 min read

Domain Auth SPF, DKIM, DMARC, MX

Note: This guide only helps with email authentication for the emails (Eg. Email notifications) sent using OUR delivery server we configured for you. It DOES NOT apply if you are us...

Read article
General2 min read

Using Stripo email template builder

Step 1 Go to the 'Email templates' menu from the left and click on 'Create new'. Step 2 Once loaded, click on the 'Show email builder' link in the top right corner of the WYSIWYG e...

Read article
General3 min read

Email campaigns paused - 'pending-sending'

You ran out of your monthly allowance We enforce limits from the backend. Our system automatically disables once your customers have used up their sending allowance. The counter ca...

Read article

Copyright © 2025 - Jonah and Associates Pty Ltd