Merge fields a message body may use
Permission
messages:readRate limit readsA flat list of the merge fields a message body or subject may use, written as {{key}} or {{key|default}}. Each entry has key, name (a label) and group: standard, profile, commerce, community, custom (this project's contact fields, which also carry their type) or service (unsubscribe_url).
Authorization
ESTAGE-API-KeystringheaderrequiredA project key, est_live_…, from Settings → API keys. Call from server code only.
RequestcURL
curl --request GET \ --url 'https://api.estage.com/v1/merge-fields' \ --header 'ESTAGE-API-Key: est_live_your-api-key'
OK
{
"data": [
{
"key": "first_name",
"name": "First name",
"group": "standard"
},
{
"key": "email",
"name": "Email",
"group": "standard"
},
{
"key": "city",
"name": "City",
"group": "profile"
},
{
"key": "lifetime_value",
"name": "Lifetime value",
"group": "commerce"
},
{
"key": "points",
"name": "Community points",
"group": "community"
},
{
"key": "company_size",
"name": "Company size",
"group": "custom",
"type": "text"
},
{
"key": "unsubscribe_url",
"name": "Unsubscribe link",
"group": "service"
}
]
}Example. Errors are
{ error: { code, message, details } }.