Add ability to programmatically generate API keys via API
Hello. We have released an update that allows users to programmatically create API keys via a Keys API endpoint. Admin user is the only role to have Write capability for API key management via API. We have also made public our Credentials API and IP Whitelist API. For information on public API endpoints and access levels per role, please visit https://documentation.mailgun.com/docs/mailgun/user-manual/mg_security/#rbac-api-key-permissions-based-on-role.
-
Guillaume Khayat commented
Nice to see this is now planned :)
-
Andri Janusson commented
This is a critical feature and you already have this functionality in your internal API (by posting to https://app.eu.mailgun.com/sending-keys). Can we get an update on this?
-
Jeremy Pockey commented
Currently sending API keys can only be created through our control panel. Some customers would like to be able to create these sending keys programmatically via our API.
-
Jonathan Jäkel commented
> In order to create a sending API key:
> * Click on the Sending drawer on the left-hand side of the Mailgun dashboard
> * Click on Domains, select the domain in which you wish to add a sending key to
> * Click on Domain Settings and navigate to the Sending API keys tab
> * Click on Add Sending Key
> * Give your key a suitable description (such as the name of the application or client you’re creating the key for) and click Create Sending Key
> * Copy your sending API key and keep it in a safe place. For security purposes, we will not be able to show you the key again. If you lose your key, you will need to create a new key.https://documentation.mailgun.com/en/latest/api-intro.html#authentication
I want to do that via API using primary account API key.