Connecting Lexer and Cordial

Cordial is a marketing and data platform that allows marketers to create, scale, and optimize personalized experiences across email and mobile. Lexer supports connecting to both the Cordial API and SFTP. This allows us to both pull and push data between the two systems respectively.

In this article, we explain how to establish an API connection that lets you consume campaign engagement data from Cordial, as well as connecting Lexer to your Cordial SFTP, which enables the activating of Lexer Segments into Cordial for campaign segmentation and personalization.

Benefits of a Cordial integration

Integrating your Cordial account with Lexer provides a number of benefits, such as:

  • Importing your contacts as enriched profiles.
  • Creating attributes that can be used for customer segmentation and analysis

Integration in a nutshell

Here's a summary of how Cordial integrates with Lexer:

What direction does the data flow?
✅ Data in: enriched customer profiles.
✅ Data out: Enriched customer segments ready for activation.
Lexer’s integration with this product allows you to pull data into the hub from these sources.
✅ Email
⬜️ SMS
Source method
How the system connects with Lexer.
✅ File (S3)
Destination method
How Lexer connects with the system.
✅ File (SFTP)
Is this integration live and working?
✅ Full release
Lexer product compatibility
What Lexer products is the integration compatible with?
✅ Compare
✅ Segment
✅ Track
⬜️ Activate
⬜️ Listen
⬜️ Respond
⬜️ Serve

Connecting to the Cordial API

Connecting to the Cordial API requires you to create an API key within Cordial's UI. Cordial have this helpful guide that explains the process.

When creating an API Key in Cordial you must whitelist IP addresses. This ensures that only Lexer's servers can communicate with your Cordial data. Make sure you add all 9 IP addresses below:



Once your key has been generated, navigate to Integrations via Manage within Lexer.

  1. Find the Cordial tile and click on it.
  2. Click Integrate Cordial.
  3. Name the integration appropriately if you are connecting more than one account so you can easily differentiate.
  4. Paste in your API key.
  5. Click Save Integration.


The final step

Once you've added your Cordial account credentials to the Cordial tile in the Hub, please contact your Success Manager, or Lexer Support ([email protected]) to complete your Cordial set up and configuration.

You've now successfully connected your Cordial account to Lexer via the Cordial API. Lexer can now start consuming your campaign engagement data, enriching your CDP profiles.

Connecting your Cordial SFTP

You can link your Cordial and Lexer hubs via SFTP to enable sending of customer profiles from Lexer, into Cordial. This allows the enrichment of Cordial data, as well as the adding of new records.

To connect both hubs, you first need to have your Cordial SFTP whitelisted by Lexer. This involves generating a Public Key in Cordial's UI, and then sending that to Lexer Support or your Success Manager. You will also need to provide the three IP addresses below;


Creating a Public Key in Cordial

You will first need to login to your Cordial account to create a Public Key. Once logged in:

  1. Under your username, in the top right hand corner, navigate to Account Settings.
  2. On the left hand side of screen, click on Secrets Vault.
  3. Create a new "secret" (key) by clicking the New button, and giving it a name, and description.
  4. After you save it, a pop up will appear with a long string of numbers, letters and symbols. You will need to send this to Lexer Support or your Success Manager.

From here, our team will ensure your key and the IP addresses above are whitelisted against your Lexer SFTP. Once we've notified you that this has been done, you will be able to start transferring CSV files containing records from Lexer into Cordial.

Using a FIXED VALUE field to make audiences "segment ready" in Cordial

To ensure you can recreate your Segment in Cordial, you will need to use the FIXED ATTRIBUTE VALUE field. Given we are effectively sending across a CSV of customer data, this is simply adding a column to that CSV file.

Create a new Segment in the hub to determine the target audience you intend to activate to Cordial. To learn more about how to create a segment, click here.

Navigate to Engage > Activate.

  1. Click on New Activation.
  2. Open your activation account, in this example we have opened, “Cordial Test”.
  3. Find the segment you created earlier in the process. In this example we have included the Zero Profile Segment.
  4. Give the activation a name. Make sure you record this name, this will become the name of the file once it arrives in Cordial. For example, if your activation name is 210112 High Value customers, it will be. 210112_High_Value_customers.csv in Cordial
  5. Add any attributes you want to send to Cordial. In our example, the default attributes have been included, Email and First name. You can add more if you would like.
  6. Now, click Create New Fixed Value.
    1. Set the field value to "1".
    2. Add a name to the segment column (Note: Any spaces will be converted into underscores).
    3. If you are just making a single segment, one fixed value will suffice.
    4. If you also wanted to add a group level coupon code, you could do that here.
  7. Determine whether you would like to Append activation name to included profiles. In most cases, you'll want this ticked.
  8. Determine whether you would like to split your audience. The default setting is Don't Split.
  9. Agree to the terms.
  10. Click Run Activation.

Sending records to Cordial

  1. Determine the segment you would like to send to Cordial.
  2. Navigate to Cordial and login.
  3. Navigate to Contacts > Import Contacts.
  4. Select the SFTP option, and enter the details as displayed in the table below. If you are unsure about any of these please contact Lexer Support ([email protected]).
  5. Next to Authentication select Saved Key and drop the drop down select your previously saved public key.
  6. You can elect to have your file imported instantly or on a schedule, if you want to maintain the audience in Cordial select schedule.
  7. Click Continue and follow the prompts to import your data and name your import.

Server Domain (AU customers)
Server Domain (US customers)
Username eg Lexer would be lexer


Connecting your Cordial account with Lexer

Congratulations, your Cordial account should now be integrated and activated in Lexer. We've gone through what Cordial is, the type of integration it is, its benefits, and how to integrate and activate it. There's a lot of steps to follow here and if you feel stuck or confused please don't hesitate to reach out to Lexer Support ([email protected]) if you need any help.