Messaging
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
- limitinteger
- offsetinteger
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
- 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
- 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. 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.
Required API key scopes
hog_flow:writePath parameters
- idstring
Request parameters
- from_integration_idinteger | null
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.
Required API key scopes
hog_flow:writePath parameters
- idstring
Request parameters
- tostring
- identifiers
- message_dataobject
Response
Example request
POST /api /projects /:project_id /messaging_templates /:id /send










