Sparkpost sub-accounts

Sparkpost sub-accounts

When creating a delivery server of type SparkPost web Api in AppMail, you do it by generating an API key for a SparkPost master account, and for that API key you allow to create webhooks automatically, and this means that AppMail can create the webhooks need for you automatically.

However, when creating a new SparkPost API key for sub-accounts, you don’t have the option to allow that sub-account to also create webhooks, therefore AppMail will not be able to create the webhooks automatically for you.

Up until AppMail version 1.3.8.5, if you were to create a delivery server of type SparkPost web Api in AppMail and the API key belongs to a sub-account, then you would get an error (Forbidden!) and you wouldn’t be able to properly validate the delivery server, so you’d be forced to use a master account.

Starting with AppMail 1.3.8.6, we don’t show an error anymore when the webhook creation fails, that is, so you can also be able to use SparkPost sub-accounts.
This also means that if you are using SparkPost sub-accounts, you have to add the webhook manually in your SparkPost account, like shown in this image:

Please make sure your webhook uses same events as shown in the above image and for the target URL field, you can take that from your delivery server settings, when you edit it, click the info icon from the right side of the screen:

    • Related Articles

    • Using Sparkpost, I get a “Forbidden” error message when I try to validate the delivery server

      The error message can look like: Cannot send the confirmation email using the data you provided. Here is a transcript of the error message: Forbidden. This happens because when you have created the SparkPost Api key, you haven’t checked all the ...
    • Delivery servers

      Delivery servers are needed in order to send out all the emails from the application. Even if it’s about sending a confirmation email, an email campaign, a test email, you need a delivery server to actually make the delivery. AppMail comes with ...
    • Understanding the application structure

      In order to make things easier to manage, AppMail is divided into several small sub-apps, like the backend, customer, Api, console and frontend app. The backend app is used for administrative tasks and here only the system users have access. The ...
    • What folders have to be writable by the web server?

      Note: we use 0777 for permissions because this is what works on most hosting accounts. The data that you create in the web interface has to also be available in the command line as well and vice-versa, and often the user/group under which the web ...
    • Use 2FA in AppMail

      Two-factor authentication (2FA), sometimes referred to as two-step verification or dual-factor authentication, is a security process in which users provide two different authentication factors to verify themselves. This process is done to better ...