v1
latestOpenAPI 3.0.22026-07-12121135.6 KBTemplates
getVariableContext
Get full variable context
Calls Entity API, User API, Brand API and others to construct full context object used for template variable replace
post/v1/template-variables:context
Request body
Example request
{
"parameters": {
"main_entity_id": "63753437-c9e2-4e83-82bb-b1c666514561",
"brand_id": 123451,
"user_id": "50001",
"user_org_id": "729224",
"custom_variables": [
{
"variable": "{{craftsmen.invitation_link}}",
"value": "https://partner.epilot.cloud/activate-account?user_name=htny.pct%2Btet%40gmail.com&confirmation_code=EdXPRW19"
}
],
"variables_version": "2"
}
}Response
ok
Example response
{
"unsubscribe_url": "https://consent.sls.epilot.io/v1/unsubscribe?token=abc123",
"main": {
"_id": "03be777b-3cf8-4bff-bb0c-253fd1128479",
"_title": "Example Customer",
"customer_number": 123,
"first_name": "Example",
"last_name": "Customer",
"title": "Prof.",
"salutation": "Ms. / Mrs.",
"birthdate": "2018-03-03",
"email": [
{
"email": "contact.primary@domain.com",
"_tags": [
"primary"
]
},
{
"email": "sale@domain.com"
}
],
"phone": [
{
"phone": "+49123456789",
"_tags": [
"primary",
"support"
]
},
{
"phone": "+49504305025"
}
],
"address": [
{
"_tags": [
"primary",
"delivery"
],
"country": "Germany",
"city": "Köln",
"postal_code": "50825",
"street": "Im Mediapark",
"street_number": "8a",
"additional_info": "11th floor"
},
{
"_tags": [
"billing"
],
"country": "Finland",
"city": "Köln",
"postal_code": "50670",
"street": "Im Mediapark",
"street_number": "8a",
"additional_info": ""
}
],
"account": [
{
"status": "Active",
"_id": "c8d20ff6-df7a-465a-a26e-e5d28c2a3f79",
"tax_id": "123abc",
"name": "name",
"email": [
{
"email": "account.primary@domain.com",
"_tags": [
"primary"
]
},
{
"email": "account.sale@domain.com"
}
],
"phone": [
{
"phone": "+49123456789",
"_tags": [
"primary",
"support"
]
},
{
"phone": "+49504305025"
}
],
"address": [
{
"_tags": [
"primary",
"delivery"
],
"country": "Germany",
"city": "Köln",
"postal_code": "50825",
"street": "Im Mediapark",
"street_number": "8a",
"additional_info": "11th floor"
}
]
}
]
},
"contact": {
"_id": "03be777b-3cf8-4bff-bb0c-253fd1128479",
"_title": "Example Customer",
"customer_number": 123,
"first_name": "Example",
"last_name": "Customer",
"title": "Prof.",
"salutation": "Ms. / Mrs.",
"birthdate": "2018-03-03",
"email": [
{
"email": "contact.primary@domain.com",
"_tags": [
"primary"
]
},
{
"email": "sale@domain.com"
}
],
"phone": [
{
"phone": "+49123456789",
"_tags": [
"primary",
"support"
]
},
{
"phone": "+49504305025"
}
],
"address": [
{
"_tags": [
"primary",
"delivery"
],
"country": "Germany",
"city": "Köln",
"postal_code": "50825",
"street": "Im Mediapark",
"street_number": "8a",
"additional_info": "11th floor"
},
{
"_tags": [
"billing"
],
"country": "Finland",
"city": "Köln",
"postal_code": "50670",
"street": "Im Mediapark",
"street_number": "8a",
"additional_info": ""
}
],
"account": [
{
"status": "Active",
"_id": "c8d20ff6-df7a-465a-a26e-e5d28c2a3f79",
"tax_id": "123abc",
"name": "name",
"email": [
{
"email": "account.primary@domain.com",
"_tags": [
"primary"
]
},
{
"email": "account.sale@domain.com"
}
],
"phone": [
{
"phone": "+49123456789",
"_tags": [
"primary",
"support"
]
},
{
"phone": "+49504305025"
}
],
"address": [
{
"_tags": [
"primary",
"delivery"
],
"country": "Germany",
"city": "KölnSS",
"postal_code": "50825",
"street": "Im Mediapark",
"street_number": "8a",
"additional_info": "11th floor"
}
]
}
]
},
"brand": {
"id": 123453,
"name": "Brand name",
"signature": "Signature"
}
}