Skip to main content

Introduction

Lob is an online service that allows you to send direct mail to your users.

Integration

The MoEngage and Lob integration leverages MoEngage connectors and the Lob APIs to send mail like letters, postcards, and checks through the mail.
Prerequisites
  1. Ensure you have access to your Lob dashboard.
  2. Ensure that you have your Lob API key. Your Lob API key can be found under the settings section under your name in the Lob dashboard.

Step 1: Select Lob endpoint

The HTTP URL to request in the connector is different for each action you can make to Lob. In the following example, we use the postcards API endpoint https://api.lob.com/v1/postcards. Visit the complete endpoint list to select the endpoint appropriate for your use case. lob_api_endpoint.png

Step 2: Create connector campaign on MoEngage

To create a connector campaign on MoEngage,
  1. Navigate to Create Campaign >> Connectors >> Custom
Screenshot_2022-02-21_at_10.48.46_PM.png
  1. On step 2 of the campaign, select -

a) URL details

Screenshot_2022-02-21_at_11.06.00_PM.png Key
KeyValueNotes
MethodPOST
Webhook URLhttps://your-lob-API-endpoint
URL paramsOptional; Needed only if your URL contains personalised values

b) Headers

Screenshot_2022-02-21_at_11.09.42_PM.png Add the following two headers
KeyValue
AuthorizationBasic <lob-API-key>
Content-Typeapplication/json

c) Request Body

The following is an example request body for the Lob postcards endpoint. While this request body is provided in the base Lob template, if you wish to use other endpoints, you must adjust your Liquid fields accordingly. Screenshot_2022-02-21_at_11.11.34_PM.png

Step 3: Test your configuration

At this point, your campaign should be ready to test and send. You can also test your connector configuration using the Test functionality available on Step 2 of Create Connector Campaign Screen_Shot_2022-02-22_at_11.12.42_AM.png Check the Lob dashboard once you test the configuration or trigger the campaign.