Skip to main content

Get your Primary API Key and Secret Key

Your Mailjet API Key and Secret Key act as the username and password for the API. Both are found in the Primary API Key section of the API Key Management page.

1

Sign in to Mailjet

Sign in to your Mailjet account.

  • Expand API in the left sidebar.
  • Click API Key Management.
2

Copy your API Key

On the API Key Management page, find the Primary API Key section.

  • Copy the API Key value — this is the public key used as the username.
3

Generate your Secret Key

The Secret Key is the private key used as the password. It is displayed only once, at the time it is generated.

  • In the Primary API Key section, click Generate a Secret Key.
  • Copy the Secret Key and store it securely for use later.
  • If you lose the Secret Key, click the settings (gear) icon on the right of the key row and select Reset Secret Key to generate a new one. The API Key stays the same.

Create a Subaccount API Key (optional)

Instead of the primary key, you can use a dedicated subaccount key with its own API Key and Secret Key. Create it from the same API Key Management page; it then appears under the Subaccount API Keys section.

  • Click Create subaccount (API KEY) in the top right corner of the page.
  • Enter a name for the API Key, then click Create.
  • A new API Key and Secret Key are generated for the subaccount. Copy both and store them securely.
  • As with the primary key, if you lose the subaccount Secret Key, click the settings (gear) icon on the right of its row and select Reset Secret Key to generate a new one. The API Key stays the same.
  • Note: the Free and Essential plans allow only one subaccount; higher plans allow more.

Linking the Account from the Hub

1

Navigate to the Hub

Use one of the three Linking Account Methods to access the Hub.
2

Fill out the fields

Fill out the following fields using details from your provider:
  • API Key
  • Secret Key
3

Connect

  • Click Connect
  • If applicable, the provider will redirect you to a sign-in or authorization page. Complete the provider’s authorization flow.
  • Once authorization is successful, you will see a confirmation popup

If the account linking is successful, you will see the newly linked account in your Accounts page.