Campaigns
This section shows the available routes related to AcyMailing campaigns
Last updated
This section shows the available routes related to AcyMailing campaigns
Last updated
GET
https://www.example.com/index.php?page=acymailing_front&option=com_acym&ctrl=api&task=getCampaigns
Get a collection of campaigns
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
GET
https://www.example.com/index.php?page=acymailing_front&option=com_acym&ctrl=api&task=getCampaignById&campaignId={id}
Get a campaign by id
Name | Type | Description |
---|---|---|
POST
https://www.example.com/index.php?page=acymailing_front&option=com_acym&ctrl=api&task=createOrUpdateCampaign
Example of JSON body:
If you want to create a simple campaign which will be sent when you call the send endpoint:
If you want to create a campaign and schedule it for later:
If you want to create an automatic campaign which will be trigger every cron:
If you want to create an automatic campaign that will trigger every X hour, day, week or month:
5. If you want to update a campaign you need to add the campaignId in the body:
You can only create automatic campaign with 2 type of triggers with the API: On every cron or every X hour, day, week or month.
POST
https://www.example.com/index.php?page=acymailing_front&option=com_acym&ctrl=api&task=sendCampaign
Send a campaign by ID
DELETE
https://www.example.com/index.php?page=acymailing_front&option=com_acym&ctrl=api&task=deleteCampaign&campaignId={id}
Delete a campaign by ID
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
offset
Int
From which element in the database you would like to start getting campaign, by default it's set to 0
limit
Int
The number of campaigns you would like to get in your request, by default it's set to 100
filters[]
Array
Filter with any column in the campaign table and the columns name and subject of the mail table
Api-Key*
String
The API key of a valid AcyMailing license used in the AcyMailing configuration page, tab "License".
campaignId*
Int
The ID of the campaign to get
Api-Key*
String
The API key of a valid AcyMailing license used in the AcyMailing configuration page, tab "License".
Api-Key*
String
The API key of a valid AcyMailing license used in the AcyMailing configuration page, tab "License".
Content-Type*
String
application/json
campaignId*
String
ID of the campaign you want to send
Api-Key*
String
The API key of a valid AcyMailing license used in the AcyMailing configuration page, tab "License".
Content-Type*
String
application-json
campaignId*
Int
The ID of the campaign to delete
Api-Key*
String
The API key of a valid AcyMailing license used in the AcyMailing configuration page, tab "License".