Inkpact allows brands to send personalised, handwritten notes to customers.
You can send contact data (e.g. name, address) from Ometria to Inkpact via webhook.
You'll need to create a webhook in Ometria for each of your Inkpact campaigns.
Creating the webhook connection
Before creating your webhook connection, you'll need the following:
- A public key from Inkpact
- A secret key from Inkpact
Follow these steps to create a webhook in Ometria.
Complete the following fields:
| Field | Description |
| Connection title |
Use a clear, descriptive name. Your title must be unique for each Inkpact campaign. |
| Webhook endpoint URL |
Enter the following endpoint:
|
| Headers (JSON) |
The header must include the public key and secret key from Inkpact. Use the following format exactly: {
"Authorization": "Basic pkey={PUBLIC_KEY}&&skey={SECRET_KEY}"
}
|
| Template |
The request body must be defined using Jinja and Ometria merge tags. The template must align with the supported payload structure and mandatory field requirements described below. |
Payload structure
Once a campaign is live, the payload structure must remain consistent.
Any changes to field names, nesting, or data types must be reviewed carefully, as they could break downstream processing.
campaign_id must match the Inkpact campaign this webhook is configured for.
Mandatory fields
The following fields are mandatory for all payloads sent to Inkpact:
first_nameaddress_line_1postcode
Payloads missing any of these fields might fail processing or result in incomplete records.
They must not be empty.
Supported payload fields
{
"campaign_id": "13254",
"data": [
{
"title": "Mr.",
"first_name": "Andrew",
"last_name": "Martin",
"position": "Founder",
"company": "Inkpact",
"address_line_1": "Tintangel House",
"address_line_2": "92 Albert Embankment",
"town": "London",
"county": "Greater London",
"postcode": "SE1 7TY",
"attribute_a": "Ink10",
"attribute_b": "",
"note": "",
"crm_ref": "#145561"
}
]
}Example template
{
"campaign_id": "ID HERE",
"data": [
{
"town": "{{profile.properties.city}}",
"attribute_a": "{{ profile.date_of_first_order }}",
"county": "{{profile.properties.county}}",
"postcode": "{{profile.properties.postcode}}",
"last_name": "{{ profile.lastname }}",
"first_name": "{{ profile.firstname }}",
"address_line_1": "{{profile.properties.address_1}}",
"address_line_2":"{{profile.properties.address_2}}",
"country":"{{profile.properties.country}}"
}
]
}
Comments
0 comments
Article is closed for comments.