Marketing
Common Guides
API Reference
- Templates
- Email
- In App
- SMS
- Omni-Channel
- Push
- Campaigns
- Content Blocks
Email
Create Email Templates
POST
/
unified
/
marketing
/
templates
/
email
Copy
Ask AI
curl --request POST \
--url https://api.stackone.com/unified/marketing/templates/email \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--header 'x-account-id: <x-account-id>' \
--data '{
"name": "<string>",
"tags": [
"<string>"
],
"messages": [
{
"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3",
"remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3",
"name": "<string>",
"message_type": {
"value": "email",
"source_value": "Email"
},
"message_content": {
"subject": "<string>",
"body": "<string>",
"from": "<string>",
"reply-to": "<string>",
"preheader": "<string>"
}
}
],
"passthrough": {
"other_known_names": "John Doe"
}
}'
Copy
Ask AI
{
"statusCode": 201,
"message": "Record created successfully.",
"timestamp": "2021-01-01T01:01:01.000Z",
"data": {
"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3",
"remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3"
}
}
Authorizations
Basic authentication header of the form Basic <encoded-value>
, where <encoded-value>
is the base64-encoded string username:password
.
Headers
The account identifier
Body
application/json
Response
201
application/json
Record created successfully.
The response is of type object
.
Was this page helpful?
Copy
Ask AI
curl --request POST \
--url https://api.stackone.com/unified/marketing/templates/email \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--header 'x-account-id: <x-account-id>' \
--data '{
"name": "<string>",
"tags": [
"<string>"
],
"messages": [
{
"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3",
"remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3",
"name": "<string>",
"message_type": {
"value": "email",
"source_value": "Email"
},
"message_content": {
"subject": "<string>",
"body": "<string>",
"from": "<string>",
"reply-to": "<string>",
"preheader": "<string>"
}
}
],
"passthrough": {
"other_known_names": "John Doe"
}
}'
Copy
Ask AI
{
"statusCode": 201,
"message": "Record created successfully.",
"timestamp": "2021-01-01T01:01:01.000Z",
"data": {
"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3",
"remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3"
}
}
Assistant
Responses are generated using AI and may contain mistakes.