API Documentation
Template ¶
Overview
Rechat’s Marketing Center and promotional collaterals revolve around the concept of “Templates”. So Templates are the original copies provided by Rechat.
Each time a user saves a template for himself, we call that copy a Template Instance.
Create a template ¶
Create a templatePOST/templates
This endpoint adds a new template to the system so users can use it. If you want to save and endpoint for users and render them, look at instantiation.
Example URI
Body
{
"name": "Test Template",
"variant": "Test Variant",
"template_type": "JustListed",
"medium": "Email",
"mjml": false,
"title": "Template Title",
"description": "Template Description",
"tags": [
"rechat",
"test"
],
"html": "HTML {{ user.first_name }} {{ listing.property.address.state }}",
"brands": [
"26b4af0d-7ea3-4e96-a0d7-cb4317c3afca"
]
}
200
Body
{
"code": "OK",
"data": {
"id": "cd1d724a-3512-4461-8139-e81c1c4de360",
"name": "Test Template",
"title": "Template Title",
"description": "Template Description",
"template_type": "JustListed",
"medium": "Email",
"variant": "Test Variant",
"inputs": [
"listing"
],
"mjml": false,
"video": false,
"url": "https://test.cloudfront.net/marketing/templates/Test Template/07f362f0-a934-11f0-bdea-d5cf17ea076e/Test Variant",
"is_shared": false,
"variables": [
"user.first_name",
"listing.property.address.state",
"user",
"listing"
],
"tags": [
"rechat",
"test"
],
"deleted_at": null,
"type": "template",
"created_at": 1760470138.538822,
"updated_at": 1760470138.538822
}
}
Update an existing template ¶
Update an existing templatePUT/templates/:id
Example URI
- id
string
(required) Example: cd1d724a-3512-4461-8139-e81c1c4de360
Body
{
"html": "Updated HTML {{ user.first_name }} {{ listing.property.address.state }}",
"name": "Test Template",
"variant": "Test Variant",
"template_type": "JustListed",
"medium": "Email",
"mjml": false,
"title": "Updated Title",
"description": "Updated Description",
"tags": [
"rechat",
"test"
]
}
200
Body
{
"code": "OK",
"data": {
"id": "cd1d724a-3512-4461-8139-e81c1c4de360",
"name": "Test Template",
"title": "Updated Title",
"description": "Updated Description",
"template_type": "JustListed",
"medium": "Email",
"variant": "Test Variant",
"inputs": [
"listing"
],
"mjml": false,
"video": false,
"url": "https://test.cloudfront.net/marketing/templates/Test Template/095feb40-a934-11f0-bdea-d5cf17ea076e/Test Variant",
"is_shared": false,
"variables": [
"user.first_name",
"listing.property.address.state",
"user",
"listing"
],
"tags": [
"rechat",
"test"
],
"deleted_at": null,
"type": "template",
"created_at": 1760470138.538822,
"updated_at": 1760470138.538822
}
}
Get a template ¶
Get a templateGET/brands/:brand/templates/:id
brand
(uuid) ID of the brand
id
(uuid) ID of the template
Example URI
- brand
string
(required) Example: 26b4af0d-7ea3-4e96-a0d7-cb4317c3afca- id
string
(required) Example: cd1d724a-3512-4461-8139-e81c1c4de360
200
Body
{
"code": "OK",
"data": {
"id": "cd1d724a-3512-4461-8139-e81c1c4de360",
"name": "Test Template",
"title": "Template Title",
"description": "Template Description",
"template_type": "JustListed",
"medium": "Email",
"variant": "Test Variant",
"inputs": [
"listing"
],
"mjml": false,
"video": false,
"url": "https://test.cloudfront.net/marketing/templates/Test Template/07f362f0-a934-11f0-bdea-d5cf17ea076e/Test Variant",
"is_shared": false,
"variables": [
"user.first_name",
"listing.property.address.state",
"user",
"listing"
],
"tags": [
"rechat",
"test",
"newtag"
],
"deleted_at": null,
"type": "template",
"created_at": 1760470138.538822,
"updated_at": 1760470138.538822
}
}
Get all templates ¶
Get all templatesGET/brands/:brand/templates
brand
(uuid) ID of the brand
medium
(Array) Applicable mediums
type
(Array) Applicable template types
Example URI
- brand
string
(required) Example: 26b4af0d-7ea3-4e96-a0d7-cb4317c3afca- types
string
(required) Example: JustListed- mediums
string
(required) Example: Email
200
Body
{
"code": "OK",
"data": [
{
"id": "bc77d880-08a5-4e8c-a0d7-98d4218bad24",
"template": {
"id": "cd1d724a-3512-4461-8139-e81c1c4de360",
"name": "Test Template",
"title": "Template Title",
"description": "Template Description",
"template_type": "JustListed",
"medium": "Email",
"variant": "Test Variant",
"inputs": [
"listing"
],
"mjml": false,
"video": false,
"url": "https://test.cloudfront.net/marketing/templates/Test Template/07f362f0-a934-11f0-bdea-d5cf17ea076e/Test Variant",
"is_shared": false,
"variables": [
"user.first_name",
"listing.property.address.state",
"user",
"listing"
],
"tags": [
"rechat",
"test"
],
"deleted_at": null,
"type": "template",
"created_at": 1760470138.538822,
"updated_at": 1760470138.538822
},
"brand": "26b4af0d-7ea3-4e96-a0d7-cb4317c3afca",
"thumbnail_requested_at": "2025-10-14T19:28:55.885Z",
"thumbnail": null,
"preview": null,
"thumbnail_rendered_at": null,
"is_thumbnail_ready": false,
"created_at": 1760470138.538822,
"updated_at": 1760470138.538822,
"type": "brand_template"
}
],
"info": {
"count": 1,
"total": 0
}
}
Get all categories ¶
Get all categoriesGET/templates/categories
Example URI
200
Body
{
"code": "OK",
"data": [
{
"template_type": "Agent",
"label": "Agent",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "AsSeenIn",
"label": "As Seen In",
"section": "Properties",
"type": "template_category"
},
{
"template_type": "BackToSchool",
"label": "Back To School",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "Birthday",
"label": "Birthday",
"section": "Celebrations",
"type": "template_category"
},
{
"template_type": "Blank",
"label": "Build Your Own",
"section": "Newsletters",
"type": "template_category"
},
{
"template_type": "Blog",
"label": "Blog Content",
"section": "Newsletters",
"type": "template_category"
},
{
"template_type": "BoxingDay",
"label": "Boxing Day",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "Brand",
"label": "Brand Campaigns",
"section": "Brand",
"type": "template_category"
},
{
"template_type": "ChineseNewYear",
"label": "Lunar New Year",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "Christmas",
"label": "Christmas",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "CMA",
"label": "CMA",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "ColumbusDay",
"label": "Columbus Day",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "ComingSoon",
"label": "Coming Soon",
"section": "Properties",
"type": "template_category"
},
{
"template_type": "Contact",
"label": "Contact",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "CrmOpenHouse",
"label": "Open House Registration",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "DaylightSaving",
"label": "Daylight Saving",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "Diwali",
"label": "Diwali",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "Easter",
"label": "Easter",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "EidalFitr",
"label": "Eid al-Fitr",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "Event",
"label": "Events",
"section": "Newsletters",
"type": "template_category"
},
{
"template_type": "FathersDay",
"label": "Father's Day",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "FourthOfJuly",
"label": "Fourth of July",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "Halloween",
"label": "Halloween",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "Hanukkah",
"label": "Hanukkah",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "HomeAnniversary",
"label": "Home Anniversary",
"section": "Celebrations",
"type": "template_category"
},
{
"template_type": "IndependenceDay",
"label": "Independence Day",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "JustListed",
"label": "Just Listed",
"section": "Properties",
"type": "template_category"
},
{
"template_type": "JustSold",
"label": "Just Sold",
"section": "Properties",
"type": "template_category"
},
{
"template_type": "JustRented",
"label": "Just Rented",
"section": "Properties",
"type": "template_category"
},
{
"template_type": "ForRent",
"label": "For Rent",
"section": "Properties",
"type": "template_category"
},
{
"template_type": "Kwanzaa",
"label": "Kwanzaa",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "LaborDay",
"label": "Labor Day",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "Layout",
"label": "Layout",
"section": "Blank Layouts",
"type": "template_category"
},
{
"template_type": "Listing",
"label": " Listing Website",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "ListingLayout",
"label": "Blank Listing Layouts",
"section": "Blank Layouts",
"type": "template_category"
},
{
"template_type": "Listings",
"label": "Multi Properties",
"section": "Properties",
"type": "template_category"
},
{
"template_type": "MarketReport",
"label": "Market Reports",
"section": "Market Reports",
"type": "template_category"
},
{
"template_type": "MemorialDay",
"label": "Memorial Day",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "MLKDay",
"label": "Martin Luther King Jr. Day",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "MothersDay",
"label": "Mother's Day",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "NewAgent",
"label": "New Agent",
"section": "Brand",
"type": "template_category"
},
{
"template_type": "Recruiting",
"label": "Recruiting",
"section": "Brand",
"type": "template_category"
},
{
"template_type": "News",
"label": "Brand News",
"section": "Brand",
"type": "template_category"
},
{
"template_type": "Newsletter",
"label": "Newsletters",
"section": "Newsletters",
"type": "template_category"
},
{
"template_type": "NewYear",
"label": "New Year",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "OpenHouse",
"label": "Open House",
"section": "Properties",
"type": "template_category"
},
{
"template_type": "OtherHoliday",
"label": "Others",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "Passover",
"label": "Passover",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "PatriotsDay",
"label": "Patriots' Day",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "PriceImprovement",
"label": "New Price",
"section": "Properties",
"type": "template_category"
},
{
"template_type": "Ramadan",
"label": "Ramadan",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "Recruitment",
"label": "Recruitment",
"section": "Newsletters",
"type": "template_category"
},
{
"template_type": "RoshHashanah",
"label": "Rosh Hashanah",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "September11",
"label": "September 11",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "StPatrick",
"label": "St. Patrick's Day",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "Thanksgiving",
"label": "Thanksgiving",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "Testimonial",
"label": "Testimonial",
"section": "Brand",
"type": "template_category"
},
{
"template_type": "UnderContract",
"label": "Under Contract",
"section": "Properties",
"type": "template_category"
},
{
"template_type": "NewDevelopment",
"label": "New Development",
"section": "Properties",
"type": "template_category"
},
{
"template_type": "Valentines",
"label": "Valentine's Day",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "VeteransDay",
"label": "Veterans Day",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "WeddingAnniversary",
"label": "Wedding Anniversary",
"section": "Celebrations",
"type": "template_category"
},
{
"template_type": "WomansDay",
"label": "International Women's Day",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "JuneTeenth",
"label": "JuneTeenth",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "FirstDayOfSummer",
"label": "Summer",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "Pride",
"label": "Pride",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "AsianAmericanAndPacificIslanderHeritageMonth",
"label": "Asian American & Pacific Islander Heritage Month",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "BlackHistoryMonth",
"label": "Black History Month",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "EarthDay",
"label": "Earth Day",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "FirstDayOfSpring",
"label": "Spring",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "CincoDeMayo",
"label": "Cinco De Mayo",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "FirstDayOfFall",
"label": "Fall",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "FirstDayOfWinter",
"label": "Winter",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "YomKippur",
"label": "Yom Kippur",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "Announcements",
"label": "Announcements",
"section": "Brand",
"type": "template_category"
},
{
"template_type": "DonutDay",
"label": "Donut Day",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "EmojiDay",
"label": "Emoji Day",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "GetToKnowYourCustomersDay",
"label": "Get to know your Customers day",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "SMoresDay",
"label": "S'mores Day",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "HomeMatchMaker",
"label": "Home Match Maker",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "NationalIceCreamDay",
"label": "National Ice cream day",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "NationalBubbleBathDay",
"label": "National Bubble Bath Day",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "NationalCleanOffYourDeskDay",
"label": "National Clean Off Your Desk Day",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "NationalHouseplantAppreciationDay",
"label": "National Houseplant Appreciation Day",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "NationalStickerDay",
"label": "National Sticker Day",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "OrganizeYourHomeDay",
"label": "Organize Your Home Day",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "NationalPizzaDay",
"label": "National Pizza Day",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "InventorsDay",
"label": "Inventors Day",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "ActsOfKindnessDay",
"label": "Acts of Kindness Day",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "NationalLoveYourPetDay",
"label": "National Love Your Pet Day",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "WomenHistoryMonth",
"label": "Women's History Month",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "AwkwardMomentsDay",
"label": "Awkward Moments Day",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "InternationalDayOfHappiness",
"label": "International Day of Happiness",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "NationalPetDay",
"label": "National Pet Day",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "NationalGardeningDay",
"label": "National Gardening Day",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "NationalTaxDay",
"label": "National Tax Day",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "MilitaryAppreciationMonth",
"label": "Military Appreciation Month",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "NationalLoyaltyDay",
"label": "National Loyalty Day",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "NewHomeownersDay",
"label": "New Homeowners Day",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "StarWarsDay",
"label": "Star Wars Day",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "ApplePieDay",
"label": "Apple Pie Day",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "NationalHomeOwnershipMonth",
"label": "National Homeownership Month",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "GreatOutdoorsMonth",
"label": "Great Outdoors Month",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "SummerSolstice",
"label": "Summer Solstice",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "SocialMediaDay",
"label": "Social Media Day",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "InternationalHappinessMonth",
"label": "International Happiness Month",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "911RemembranceDay",
"label": "911 Remembrance Day",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "HispanicHeritageMonth",
"label": "Hispanic Heritage Month",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "WorldGratitudeDay",
"label": "World Gratitude Day",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "AskAStupidQuestionDay",
"label": "Ask a Stupid Question Day",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "NationalGoodNeighborDay",
"label": "National Good Neighbor Day",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "NationalFamilyDay",
"label": "National Family Day",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "BreastCancerAwarenessMonth",
"label": "Breast Cancer Awareness Month",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "NationalCoffeeDay",
"label": "National Coffee Day",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "WorldSmileDay",
"label": "World Smile Day",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "NationalMakeADifferenceDay",
"label": "National Make a Difference Day",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "NationalNachoDay",
"label": "National Nacho Day",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "NationalPickleDay",
"label": "National Pickle Day",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "CleanOutYourRefrigeratorDay",
"label": "Clean Out Your Refrigerator Day",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "TakeHikeDay",
"label": "Take a Hike Day",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "NationalBrownieDay",
"label": "National Brownie Day",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "NationalSalespersonDay",
"label": "National Salesperson Day",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "NationalPoinsettiaDay",
"label": "National Poinsettia Day",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "GingerbreadHouseDay",
"label": "Gingerbread House Day",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "NationalUnderdogDay",
"label": "National Underdog Day",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "DeviceAppreciationDay",
"label": "Device Appreciation Day",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "WinterSolstice",
"label": "Winter Solstice",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "CrosswordPuzzleDay",
"label": "Crossword Puzzle Day",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "PrivateExclusive",
"label": "Private Exclusive",
"section": "Properties",
"type": "template_category"
},
{
"template_type": "Awards",
"label": "Awards",
"section": "Celebrations",
"type": "template_category"
},
{
"template_type": "CanadaDay",
"label": "Canada Day",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "BCDay",
"label": "BC Day",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "FamilyDay",
"label": "Family Day",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "VictoriaDay",
"label": "Victoria Day",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "RemembranceDay",
"label": "Remembrance Day",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "TruthAndReconciliation",
"label": "Truth and Reconciliation",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "WomenEntrepreneurshipDay",
"label": "Women Entrepreneurship Day",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "LabourDay",
"label": "Labour Day",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "ThanksgivingCA",
"label": "Thanksgiving (Canada)",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "BackToSchoolCA",
"label": "Back To School",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "IndigenousPeoples",
"label": "Indigenous Peoples Day",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "InEscrow",
"label": "In Escrow",
"section": "Properties",
"type": "template_category"
},
{
"template_type": "ForSale",
"label": "For Sale",
"section": "Properties",
"type": "template_category"
},
{
"template_type": "AgentTemplates",
"label": "Agent Templates",
"section": "Brand",
"type": "template_category"
},
{
"template_type": "BrandCollateral",
"label": "Brand Collateral",
"section": "Brand",
"type": "template_category"
},
{
"template_type": "PresidentDay",
"label": "Presidents' Day",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "MentalHealthAwarenessDay",
"label": "Mental Health Awareness Day",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "DiaDeLosMuertos",
"label": "Dia De Los Muertos",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "HappyHolidays",
"label": "Happy Holidays",
"section": "Holidays",
"type": "template_category"
},
{
"template_type": "FairHousingMonth",
"label": "Fair Housing Month",
"section": "Holidays",
"type": "template_category"
}
],
"info": {
"count": 150,
"total": 0
}
}
Get available categories for brand ¶
Get available categories for brandGET/brands/:brand/templates/categories{?mediums}
brand
(uuid) ID of the brand
mediums
(Array) Applicable mediums
types
(Array) Applicable template types
filter
(string) template | asset | undefined
tags
(string[]) optional filter by tags
term
(string) optional filter by name or description
Example URI
- brand
string
(required) Example: 26b4af0d-7ea3-4e96-a0d7-cb4317c3afca- mediums
string
(required) Example: Email- filter
string
(required) Example: template
200
Body
{
"code": "OK",
"data": [
{
"template_type": "JustListed",
"label": "Just Listed",
"section": "Properties",
"type": "template_type",
"medium_stats": {
"Email": 1
}
}
],
"info": {
"count": 1,
"total": 0
}
}
Get template instance stats ¶
Get template instance statsGET/templates/instances/stats
brand
(uuid) listing ID
Example URI
200
Body
{
"type": "template_instance_stats",
"Email": 2
}
Save a template ¶
Save a templatePOST/templates
Use this endpoint to save a user-edited template and get it rendered
Example URI
- id
string
(required) Example: cd1d724a-3512-4461-8139-e81c1c4de360
Body
{
"html": "SOME HTML",
"deals": [
"a1055242-10e4-41ff-b96e-40d9a7bd7be1"
],
"listings": [
"edb5195a-f7ec-11e4-bc76-0a95648eeb58"
],
"contacts": []
}
200
Body
{
"code": "OK",
"data": {
"id": "6a721259-e355-4bb7-af2d-167442725ab6",
"created_at": 1760470135.885342,
"html": "SOME HTML",
"file": {
"id": "7f7dc095-4744-48fe-afc8-c2bc9debe2d3",
"created_at": 1760470139.14768,
"updated_at": 1760470139.147681,
"deleted_at": null,
"created_by": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
"path": "templates/instances/0851af90-a934-11f0-bdea-d5cf17ea076e.png",
"name": "image.png",
"public": true,
"type": "file",
"url": "https://test.cloudfront.net/templates/instances/0851af90-a934-11f0-bdea-d5cf17ea076e.png",
"preview_url": "https://test.cloudfront.net/templates/instances/0851af90-a934-11f0-bdea-d5cf17ea076e.png",
"mime": "image/png"
},
"created_by": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
"branch": "http://mock-branch-url",
"updated_at": 1760470135.885342,
"deleted_at": null,
"type": "template_instance"
}
}
Delete a saved instance ¶
Delete a saved instanceDELETE/templates/instances/:instance
Example URI
- instance
string
(required) Example: 6a721259-e355-4bb7-af2d-167442725ab6
204
History ¶
HistoryGET/templates/instances
Returns a collection of instances that my user has saved before
Example URI
200
Body
{
"code": "OK",
"data": [
{
"id": "6a721259-e355-4bb7-af2d-167442725ab6",
"created_at": 1760470135.885342,
"html": "SOME HTML",
"file": {
"id": "7f7dc095-4744-48fe-afc8-c2bc9debe2d3",
"created_at": 1760470139.14768,
"updated_at": 1760470139.147681,
"deleted_at": null,
"created_by": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
"path": "templates/instances/0851af90-a934-11f0-bdea-d5cf17ea076e.png",
"name": "image.png",
"public": true,
"type": "file",
"url": "https://test.cloudfront.net/templates/instances/0851af90-a934-11f0-bdea-d5cf17ea076e.png",
"preview_url": "https://test.cloudfront.net/templates/instances/0851af90-a934-11f0-bdea-d5cf17ea076e.png",
"mime": "image/png"
},
"created_by": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
"branch": "http://mock-branch-url",
"updated_at": 1760470135.885342,
"deleted_at": null,
"type": "template_instance"
}
],
"info": {
"count": 1,
"total": 1
}
}
Upload as asset ¶
Upload as assetPOST/templates/assets
Upload a template asset
This is a multipart endpont. file that must be uploaded should be posted to this along with:
-
'template' (required)
ID of the template -
'listing' (optional)
ID of the listing -
'contact' (optional)
ID of the contact
Example URI
200
Body
{
"code": "OK",
"data": {
"id": "9f2574d2-1ce6-41a2-bc45-7f9806c64d31",
"created_at": 1760470135.885342,
"template": "cd1d724a-3512-4461-8139-e81c1c4de360",
"created_by": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
"listing": "edb5195a-f7ec-11e4-bc76-0a95648eeb58",
"contact": null,
"file": {
"id": "9f4ebb01-05e5-41cf-8f24-13a2458d8072",
"created_at": 1760470141.029626,
"updated_at": 1760470141.029626,
"deleted_at": null,
"created_by": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
"path": "templates/assets/096ff0d0-a934-11f0-bdea-d5cf17ea076e.png",
"name": "logo.png",
"public": true,
"type": "file",
"url": "https://test.cloudfront.net/templates/assets/096ff0d0-a934-11f0-bdea-d5cf17ea076e.png",
"preview_url": "https://test.cloudfront.net/templates/assets/096ff0d0-a934-11f0-bdea-d5cf17ea076e.png",
"mime": "image/png"
},
"type": "template_asset",
"updated_at": 1760470135.885342
}
}