curl --request POST \
--url https://services.leadconnectorhq.com/emails/builder \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Version: <version>' \
--data '
{
"locationId": "ve9EPM428h8vShlRW1KT",
"type": "html",
"importProvider": "mailchimp",
"title": "template title",
"updatedBy": "zYy3YOUuHxgomU1uYJty",
"builderVersion": "2",
"name": "Template1",
"parentId": "zYy3YOUuHxgomU1uYJty",
"templateDataUrl": "",
"importURL": "https://tplshare.com/fhYJ3Mi",
"templateSource": "template_library",
"isPlainText": false,
"subjectLine": "Email Subject",
"fromName": "Name of sender",
"fromEmail": "test@abc.com",
"previewText": "preview text"
}
'{
"redirect": "66e811229245fc098765590",
"traceId": "0c52e980-41f6-4be7-8c4b-e2c5a13dc3c2"
}Create a new template
curl --request POST \
--url https://services.leadconnectorhq.com/emails/builder \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Version: <version>' \
--data '
{
"locationId": "ve9EPM428h8vShlRW1KT",
"type": "html",
"importProvider": "mailchimp",
"title": "template title",
"updatedBy": "zYy3YOUuHxgomU1uYJty",
"builderVersion": "2",
"name": "Template1",
"parentId": "zYy3YOUuHxgomU1uYJty",
"templateDataUrl": "",
"importURL": "https://tplshare.com/fhYJ3Mi",
"templateSource": "template_library",
"isPlainText": false,
"subjectLine": "Email Subject",
"fromName": "Name of sender",
"fromEmail": "test@abc.com",
"previewText": "preview text"
}
'{
"redirect": "66e811229245fc098765590",
"traceId": "0c52e980-41f6-4be7-8c4b-e2c5a13dc3c2"
}Use the Access Token generated with user type as Sub-Account (OR) Private Integration Token of Sub-Account.
API Version
2021-07-28 "2021-07-28"
"ve9EPM428h8vShlRW1KT"
html, folder, import, builder, blank, ai_template mailchimp, active_campaign, kajabi, other "template title"
"zYy3YOUuHxgomU1uYJty"
1, 2 "Template1"
"zYy3YOUuHxgomU1uYJty"
""
"https://tplshare.com/fhYJ3Mi"
"template_library"
false
"Email Subject"
"Name of sender"
"test@abc.com"
"preview text"
Was this page helpful?