Inkit has partnered with Leanplum, the leader in helping mobile teams orchestrate multi-channel campaigns. From messaging to the in-app experience and now direct mail, Leanplum does it all from a single mobile marketing platform. With this integration, Leanplum enables Inkit to seamlessly send direct mailers to your users. The Inkit webhook can be built as long as you have a pre-existing Leanplum account set up.

The steps to get Leanplum up and running are as follows:

  1. Grab your API key and Template ID from the Inkit dashboard. Your API key is located here. The Template ID can be found within the URL for each template- for example:
  2. In the Leanplum Messaging dashboard, click Create Message and select Webhook as the message type
  3. Fill in the webhook with the following details:


Add a HTTP Header for the Authorization key value pair, with your API key from Inkit.

Add the following mandatory fields to specify the recipient, using built-in and custom properties in your platform, and the template which should be sent out:

User Profile Fields

api_token (Your Inkit API key)
template_id (Template ID from Inkit’s end)
company (optional)
unit (optional)
state (must be a 2 character code, e.g. CA)
country (must be a 2 character code, e.g. US)

Custom Data Fields
Custom data fields can be added into any request. Simply add the field name into the request and we'll add that key: value pair into that contact.

Example Webhook Request:

    "api_token": "xc02a5f2fbxc4db3a9xdx2axb396159x",
    "template_id": "8x4dx69x6xeex1d6x25x84cx4x1x1x9x",
    "first_name": "Richard",
    "last_name": "Hendricks",
    "company": "Pied Piper",
    "email": "[email protected]",
    "street": "101 Unicorn Lane",
    "unit": "",
    "city": "San Francisco",
    "state": "CA",
    "zip": "94016",
    "country": "US",
    "promo_code": "HAPPY2019",
    "likes": "Tabs"

As you can see, promo_code and likes are extra fields added into the request. These fields can be used on your templates to dynamically deliver customized direct mail to your customers.

And that’s it! Now you’re ready to start automating direct mail through your connected platform based on any actions or events you like.

Did this answer your question?