Email templates
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
GET | |
POST | |
GET | |
PATCH | |
DELETE | |
PATCH | |
POST | |
POST |
List all messaging templates
Required API key scopes
hog_flow:readQuery parameters
- basicbooleanDefault:
false - created_byinteger
- limitinteger
- offsetinteger
- searchstringDefault:
- tagsarray
- transactionalboolean | null
Response
Example request
GET /api /projects /:project_id /messaging_templatesExample response
Status 200
Create messaging templates
Required API key scopes
hog_flow:writeRequest parameters
- namestring
- descriptionstring
- tagsarray
- content
- typestring
- message_categorystring | null
- deletedboolean
- sensitiveboolean
- click_tracking_enabledboolean | null
- draft_content
Response
Example request
POST /api /projects /:project_id /messaging_templatesExample response
Status 201
Retrieve messaging templates
Required API key scopes
hog_flow:readPath parameters
- idstring
Response
Example request
GET /api /projects /:project_id /messaging_templates /:idExample response
Status 200
Update messaging templates
Required API key scopes
hog_flow:writePath parameters
- idstring
Request parameters
- namestring
- descriptionstring
- tagsarray
- content
- typestring
- message_categorystring | null
- deletedboolean
- sensitiveboolean
- click_tracking_enabledboolean | null
- draft_content
Response
Example request
PATCH /api /projects /:project_id /messaging_templates /:idExample response
Status 200
Delete messaging templates
Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true
Required API key scopes
hog_flow:writePath parameters
- idstring
Example request
DELETE /api /projects /:project_id /messaging_templates /:idExample response
Status 405 No response body
Update messaging templates design
Required API key scopes
hog_flow:writePath parameters
- idstring
Request parameters
- operationsarray
Response
Example request
PATCH /api /projects /:project_id /messaging_templates /:id /designExample response
Status 200
Create messaging templates make transactional
Make this template sendable over the transactional email API, or the transactional push API for a push template. This creates the workflow that sends it, with its own metrics, run history and versions. This can't be undone: the template stays transactional. Transactional sends ignore marketing opt-outs. Calling it again on a transactional template changes nothing. Needs the transactional_email:write scope, the same scope as sending. A key with hog_flow:write also works, but that scope reaches the rest of Workflows too. Without hog_flow:read, the response leaves out content and draft_content.
Required API key scopes
transactional_email:writePath parameters
- idstring
Request parameters
- from_integration_idinteger | null
- expected_type
Response
Example request
POST /api /projects /:project_id /messaging_templates /:id /make_transactionalExample response
Status 200 The transactional template
Status 400 The template can't be sent, or there is no verified sender
Status 404 Template not found
Create messaging templates send
Send one transactional email from this template to one recipient. The template must be made transactional first. message_data fills the template's {{ variables.* }} placeholders. Transactional emails skip opt-outs and frequency caps. Send an Idempotency-Key header to retry safely without sending the email twice. Needs the transactional_email:write scope. A key with hog_flow:write also works, but that scope reaches the rest of Workflows too.
Required API key scopes
transactional_email:writePath parameters
- idstring
Request parameters
- tostring
- message_dataobject
- identifiers
Response
Example request
POST /api /projects /:project_id /messaging_templates /:id /send




