Recent Campaigns
Using this API, you can see the details of the five most recent campaigns that has been created in your organization.
Request Type:
- GET/POST
Scope required
- ZohoCampaigns.campaign.READ
Other alternative scopes
- ZohoCampaigns.campaign.ALL (CREATE + UPDATE + DELETE + READ)
Header:
Authorization: Zoho-oauthtoken <access_token>
Request URL
https://campaigns.zoho.com/api/v1.1/recentcampaigns
API Limit
- Duration: 5 mins
- Number of Calls: 500
- Lock Period: 30 mins
You can send 500 API calls per 5 minutes. If you hit this limit, you can't use this API for the next 30 minutes due to security reasons, but you can still use other APIs if their lock period hasn’t been reached.
List of Parameters: -- Version 1.1
Parameter | Data Type | Description |
resfmt | String | XML (or) JSON |
sort | String | asc/desc |
fromindex
| number | Default value: 1 |
range
| number | number |
status | String | all|all campaigns|drafts|scheduled|inprogress|sent|stopped| canceled|tobereviewed|reviewed|paused|intesting |
* - Mandatory Parameters
Possible error cases
Error code | Description |
6601 | Insufficient privilege to perform this action. |
6101 | No campaign available in this view. |
If your error code is not listed above, click here.
Sample XML Request
Copiedhttps://campaigns.zoho.com/api/v1.1/recentcampaigns?sort=[asc/desc]&fromindex=[number]&range=[number]&status=[all|all campaigns|drafts|scheduled|inprogress|sent|stopped|canceled|tobereviewed|reviewed|paused|intesting]
Sample Response
Copied<response uri="https://campaigns.zoho.com/api/recentcampaigns" version="1.1">
<status>success</status>
<code>0</code>
<range>5</range>
<status>All</status>
<fromindex>1</fromindex>
<recent-campaigns>
<campaign no="1">
<fl val="campaign_key">f70c4878c4a47169407e63917ad24497</fl>
<fl val="campaign_name">1222</fl>
<fl val="created_date_string">19 Aug 2013, 11:26 AM</fl>
<fl val="campaign_status">Draft</fl>
<fl val="created_time">1376920587000</fl>
<fl val="campaign_preview">
campaigns.zoho.com/EmailDisplayAction.do?&campaignId=303000023454038
</fl>
</campaign>
<campaign no="2">
<fl val="campaign_key">f70c4878c4a47169cff121e4406fc65f</fl>
<fl val="campaign_name">4654</fl>
<fl val="created_date_string">16 Aug 2013, 08:03 PM</fl>
<fl val="campaign_status">Draft</fl>
<fl val="created_time">1376692411000</fl>
<fl val="campaign_preview">
campaigns.zoho.com/EmailDisplayAction.do?&campaignId=303000023454002
</fl>
</campaign>
<campaign no="3">
<fl val="campaign_key">f70c4878c4a4716956b069688d2a58be</fl>
<fl val="campaign_name">outlok</fl>
<fl val="created_date_string">16 Aug 2013, 09:23 PM</fl>
<fl val="campaign_status">Draft</fl>
<fl val="created_time">1376697194000</fl>
<fl val="campaign_preview">
campaigns.zoho.com/EmailDisplayAction.do?&campaignId=303000023453108
</fl>
</campaign>
<campaign no="4">
<fl val="campaign_key">f70c4878c4a4716978fcc0ef91b933a3</fl>
<fl val="campaign_name">t1</fl>
<fl val="created_date_string">16 Aug 2013, 09:12 PM</fl>
<fl val="campaign_status">Draft</fl>
<fl val="created_time">1376696522000</fl>
<fl val="campaign_preview">
campaigns.zoho.com/EmailDisplayAction.do?&campaignId=303000023453086
</fl>
</campaign>
<campaign no="5">
<fl val="campaign_key">f70c4878c4a47169613e476aed11106d</fl>
<fl val="campaign_name">21313</fl>
<fl val="created_date_string">16 Aug 2013, 09:04 PM</fl>
<fl val="campaign_status">Draft</fl>
<fl val="created_time">1376696048000</fl>
<fl val="campaign_preview">
campaigns.zoho.com/EmailDisplayAction.do?&campaignId=303000023453072
</fl>
</campaign>
</recent-campaigns>
</response>
Sample JSON Request
Copiedhttps://campaigns.zoho.com/api/v1.1/recentcampaigns?sort=[asc/desc]&fromindex=[number]&range=[number]&status=[all|all campaigns|drafts|scheduled|inprogress|sent|stopped|canceled|tobereviewed|reviewed|paused|intesting]
Sample Response
Copied{
"requestdetails": "{range=5, status=All, fromindex=1}",
"status": "success",
"recent_campaigns": [
{
"campaign_key": "f70c4878c4a47169407e63917ad24497",
"campaign_name": "1222",
"created_date_string": "19 Aug 2013, 11:26 AM",
"campaign_status": "Draft",
"created_time": "1376920587000",
"campaign_preview": "campaigns.zoho.com/EmailDisplayAction.do?&campaignId=303000023454038"
},
{
"campaign_key": "f70c4878c4a47169cff121e4406fc65f",
"campaign_name": "4654",
"created_date_string": "16 Aug 2013, 08:03 PM",
"campaign_status": "Draft",
"created_time": "1376692411000",
"campaign_preview": "campaigns.zoho.com/EmailDisplayAction.do?&campaignId=303000023454002"
},
{
"campaign_key": "f70c4878c4a4716956b069688d2a58be",
"campaign_name": "outlok",
"created_date_string": "16 Aug 2013, 09:23 PM",
"campaign_status": "Draft",
"created_time": "1376697194000",
"campaign_preview": "campaigns.zoho.com/EmailDisplayAction.do?&campaignId=303000023453108"
},
{
"campaign_key": "f70c4878c4a4716978fcc0ef91b933a3",
"campaign_name": "t1",
"created_date_string": "16 Aug 2013, 09:12 PM",
"campaign_status": "Draft",
"created_time": "1376696522000",
"campaign_preview": "campaigns.zoho.com/EmailDisplayAction.do?&campaignId=303000023453086"
},
{
"campaign_key": "f70c4878c4a47169613e476aed11106d",
"campaign_name": "21313",
"created_date_string": "16 Aug 2013, 09:04 PM",
"campaign_status": "Draft",
"created_time": "1376696048000",
"campaign_preview": "campaigns.zoho.com/EmailDisplayAction.do?&campaignId=303000023453072"
}
],
"code": "0",
"uri": "/api/v1.1/recentcampaigns",
"version": "1.1"
}