POST https://api.actonsoftware.com/api/1/message
This endpoint allows you to create a template or a draft message in the account.
Customers wanting to access our API via our gateway in the EU can use this link:
POST https://api-eu.actonsoftware.com/api/1/message
Parameters
Name | Parameter Type |
Allow Multiple |
Required/ Optional |
Data Type | Description |
---|---|---|---|---|---|
Authorization: | Header | False | Required | String | Insert your generated access token. ("Bearer {access token}") |
type | Form | False | Required | String | Type is either draft or template. |
subject | Form | False | Required | String | Specify a subject for the message. |
title | Form | False | Optional | String | Specify the title of the message. |
htmlbody | Form | False | Optional | String | Specify the HTML for the message. |
textbody | Form | False | Optional | String | Specify the TEXT body for the message. |
foldername | Form | False | Optional | String | Specify the folder name to store the message. |
sendername | Form | False | Optional | String | Specify the verified sender email name. |
senderemail | Form | False | Optional | String | Specify the verified sender email address |
headerid | Form | False | Optional | String | Specify the header ID for the message. |
footerid | Form | False | Optional | String | Specify the footer ID for the message. |
logoid | Form | False | Optional | String | Specify the logo ID for the message. |
Parameter Notes
htmlbody
Adding a custom htmlbody is equivalent to adding a custom content block to an Act-On email.
Response
{ "status": "success", "message": "Message created", "id": "d-0004" }
Code Examples
cURL
curl -X POST https://api.actonsoftware.com/api/1/message -H "Authorization: Bearer 12345678-9abc-defg-hijk-lmnopqrs" -d 'type=draft&subject=subjecthere&title=titlehere&htmlbody=htmlhere&textbody=texthere'