Create a campaign

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Request URI for Sub Account

POST /accounts/40505/campaigns

Request Format

{
  "type": "ab",
  "urls": [
    {
      "type": "url",
      "value": "http://wingify.com"
    }
  ],
  "primaryUrl": "http://wingify.com",
  "goals": [
    {
      "name": "New goal",
      "type": "visitPage",
      "urls": [
        {
          "type": "url",
          "value": "http://wingify.com"
        }
      ]
    }
  ]
}

Create a campaign

🚧

Warning

Note:

If stats are not provided, default value for stats (same as given in this request) are used for the campaign created.

🚧

Warning

Note:

For split campaign creation, two or more variations must be present in the request with urls for which the split campaign needs to be run.

🚧

Warning

Note:

The "globalCode" section allows you to add Pre/Post-Campaign JS/CSS snippets within the editor. This globalCode block is optional and can be omitted if not needed.

Path Params
string
required
Defaults to current

Use 'current' keyword to refer to the Main Workspace or the Integer Workspace Id

Body Params
string
required
Defaults to ab
urls
array of objects
required
urls*
string
required
Defaults to http://wingify.com
goals
array of objects
required
goals*
Response

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json