Configuring a Smart Campaign in Marketo to Automatically Send a Thnks
This guide walks you through automatically triggering the sending of a Thnks as part of a Marketo Smart Campaign.Prerequisites
- Access to the Thnks API.
- Thnks API Key (Authorization Token).
- URL for Thnks API endpoint.
Setup
Prepare Webhook Data
Before setting up the webhook, ensure you have the following details:
Data (JSON format)
Here’s an example of the JSON payload you will need to include in the request. You’ll need to replace the placeholders with the appropriate tokens from your Marketo leads:
-
Replace
<GIFT_ID>with the Thnks ID of the gift you want to send. -
Use Marketo tokens (e.g.,
{{lead.Email Address}}) to populate dynamic lead information.
Create a Webhook in Marketo
Click New Webhook to create a new webhook
-
Webhook Name: Give your webhook a meaningful name, e.g.,
Thnks_Welcome_Program_CA. -
URL: Use the Thnks API URL:
https://api.thnks.com/api/v1/gift_requests -
Request Type: Set this to
POST. - Template: Copy the JSON template mentioned above and adjust as needed with the correct tokens for dynamic data population.
- Request Token Encoding: None.
-
Response Type: Set to
JSON.
Best Practices