Set up the MoEngage Content API for Jacquard

Prev Next

For MoEngage admins and developers. Set up the Jacquard Content API once in your MoEngage workspace. Every Jacquard delivery uses it.

Placeholders: values in angle brackets are account-specific. Your Jacquard contact provides them.

Existing customers: keep your existing Jacquard Content API. Create this one only for new touchpoints.

Content API

  • One Content API serves all touchpoints. Nothing in it changes per campaign.

  • The delivery code from each touchpoint’s Delivery tab calls it and passes the touchpoint details.

1. Jacquard | Before you start

1.1 Connector

Connect MoEngage in Connectors. See Connect MoEngage to Jacquard.

1.2 Get the URL

  • In Jacquard, go to Connectors.

  • On the MoEngage tile, click Connection details.

  • Under Content API block, copy the Content API block URL.

2. MoEngage | Create the Content API

2.1 Open Content APIs

In MoEngage, go to Settings > Advanced Settings > Content API and add a Content API.

2.2 Name

Jacquard. Use exactly this name.

2.3 Method

GET.

2.4 URL

Paste the whole URL from Connection details. It looks like:

https://runtime-gw.platform.jacquard.com/api/v1/select/by-campaign/{{CampaignAttribute['_id']}}?recipient_id={{UserAttribute['ID']}}&selection_mode=auto
  • Don’t split it into URL parameter rows. A parameter row doesn’t vary per recipient, so every recipient gets the same cached copy.

  • Leave {{CampaignAttribute['_id']}} as it is. Replacing it with a real campaign ID ties the Content API to one campaign.

2.5 Headers

  • Key: x-api-key

  • Value: your jq_live_ security token.

2.6 Save

Save the Content API.

Reference

Troubleshooting

Every recipient gets the same copy

The URL was split into URL parameter rows. Paste it whole into the URL field.

Only one campaign works

The campaign token in the URL was replaced with a real ID. Restore {{CampaignAttribute['_id']}}.

Requests are refused

Check the header is x-api-key and the token is active with the Runtime selection permission.

Keys and tokens

  • Don’t share keys by email, chat, tickets or shared documents.

  • If a key is exposed: create a new one, update it everywhere, revoke the old one (Admin > API keys & webhooks).