Send email to campaign using v1 API

I am using v1 api to send email to campaign.
https://xxxx.api-us1.com/admin/api.php?api_key=xxxx&api_action=campaign_send&api_output=json&campaignid=1&email=mail@domain.in&messageid=0&action=send

However i get the following

{
“result_code”: 0,
“result_message”: “Please send this campaign through the web interface to continue.”,
“result_output”: “json”
}

Can you suggest how to make it work?

Regarding the params campaignid i retrieved from api using fetch_campaign

https://xxx.api-us1.com/admin/api.php?api_key=xxxx&api_action=campaign_list&api_output=json&ids=1

message id i took from basemessageid coming in response to campaign_list call.

1 Like