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
RESPONSE
Create messaging templates
Required API key scopes
hog_flow:writeRequest parameters
- namestring
- descriptionstring
- content
- typestring
- message_categorystring | null
- deletedboolean
Response
Example request
POST /api /projects /:project_id /messaging_templatesExample response
Status 201
RESPONSE
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
RESPONSE
Update messaging templates
Required API key scopes
hog_flow:writePath parameters
- idstring
Request parameters
- namestring
- descriptionstring
- content
- typestring
- message_categorystring | null
- deletedboolean
Response
Example request
PATCH /api /projects /:project_id /messaging_templates /:idExample response
Status 200
RESPONSE
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
RESPONSE
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. 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
RESPONSE
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.
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 /sendExample response
Status 202 Email queued
RESPONSE











