Manage And Connect Using APIs

Create Campaign

Users can create campaigns using our API authentication token.

Request URL

XML/ JSON

XML : https://campaigns.zoho.com/api/xml/createcampaign

JSON : https://campaigns.zoho.com/api/json/createcampaign

Request Type: Post

Parameters:

Parameter

Data Type

Description

authtoken*
scope*

String
String

API Authentication Token
CampaignsAPI

version

String

This will fetch responses based on the current API version.

resfmt

String

XML (or) JSON

campaigninfo*

XML (or) JSON

It contains these internal params are campaignname,subject, etc.

* - Mandatory Parameters

Sample Request:

XML

https://campaigns.zoho.com/api/xml/createcampaign?authtoken=[API Authentication Token]&scope=CampaignsAPI&version=1&campaigninfo=<xml><fl val="campaignname">Sample</fl><fl val="subject">Sample</fl></xml>&resfmt=[XML/JSON]

JSON

https://campaigns.zoho.com/api/json/createcampaign?authtoken=[API Authentication Token]&scope=CampaignsAPI&version=1&resfmt=[XML/JSON]&campaigninfo={"campaignname":"Sample","subject":"Sample"}

 

Sample Response:

Our API response will let you know of the following be it in the XML or JSON format.

XML Format:

<response uri="/api/xml/createcampaign" version="1">

<code>0</code>

<status>success</status>

<campaignkey>34594177d382061bd5a096a51a333ac5</campaignkey>

</response>

JSON format:

{"status":"success","campaignkey":"34594177d382061bcaad523c87ecac22","code":"0","url":"/api/xml/createcampaign","version":"1"}

Top