VWO

App · 25 actions

Create, rename and start or stop VWO campaigns, manage their goals and labels, read variations and the activity timeline, turn feature flags on or off, and follow new campaigns and status changes.

Actions

ActionWhat it does
Add labels to campaignLabel a campaign with existing labels, new ones, or both.
Change campaign statusStart, pause, stop, trash or restore campaigns.
Create campaignCreate a campaign on a page with one goal.
Create goalAdd a goal to a campaign, such as a page visit, a form submission or a click.
Delete goalRemove a goal from a campaign.
Get campaignGet a campaign with its URLs, variations, goals, traffic and status.
Get campaign share linkGet a link that shows a campaign's report to people without a VWO login.
Get feature flagGet a feature flag's key, type, variables, variations and rule count.
Get goalGet a campaign goal's name, type and URLs.
Get variationGet a campaign variation's name, traffic split and screenshot.
Get websiteGet a website's domain, platform and status.
Get workspaceGet the connected workspace's name, time zone and company details.
List activityList the workspace's timeline: campaigns created, started, paused and changed, newest first, with who did it.
List campaignsList the workspace's campaigns (tests, heatmaps, surveys and more), optionally of one type, platform or label.
List feature flagsList the workspace's feature flags (VWO Feature Experimentation).
List goalsList a campaign's goals, the conversions it measures.
List labelsList the labels the workspace uses to organize campaigns.
List usersList the workspace's users with their permission level.
List variationsList a campaign's variations with their traffic split.
List websitesList the websites set up in the workspace and whether VWO's code is found on each.
List workspacesList the account's other workspaces (sub-accounts).
Remove label from campaignTake a label off a campaign.
Rename campaignChange a campaign's name.
Rename goalChange a campaign goal's name.
Turn feature flag on or offTurn a feature flag on or off in one environment.

Add labels to campaign

Label a campaign with existing labels, new ones, or both.

Inputs

Campaigncampaign_idnumberRequired
The campaign.At least 1.
Labelslabel_idslist
Existing labels to add.
New labelsnew_labelslist
Names of new labels to create and add.

Outputs

datalist
The response from VWO.
Example output
{
  "data": [
    {
      "id": 1,
      "name": "example"
    }
  ]
}

Change campaign status

Start, pause, stop, trash or restore campaigns.

Inputs

Campaignscampaign_idslistRequired
The campaigns to change.
Change tostatustextRequired
What to do with them.One of: RUNNING (Start or resume), PAUSED (Pause), STOPPED (Stop), TRASHED (Move to trash), RESTORED (Restore from trash).

Outputs

dataobject
The response from VWO.
Example output
{
  "data": {
    "ids": [
      1
    ],
    "status": "example"
  }
}

Create campaign

Create a campaign on a page with one goal. It starts as not started; add variations in VWO's editor and start it with Change campaign status.

Inputs

Typetypetext
The kind of campaign. Leave empty for an A/B test.One of: ab (A/B test), split (Split URL test), multivariate (Multivariate test), heatmap, conversion (Conversion tracking).
Page URLurltextRequired
The page the campaign runs on, such as https://example.com/pricing.
Goal namegoal_nametextRequired
The name of the campaign's goal, such as Visited checkout.
Goal typegoal_typetext
What counts as a conversion. Leave empty for visiting a page.One of: visitPage (Visits a page), engagement (Engages with a page), formSubmit (Submits a form), clickLink (Clicks a link), clickElement (Clicks an element), revenue (Tracks revenue), custom-conversion (Custom conversion).
Goal URLgoal_urltext
The page the goal is tracked on. Leave empty for the campaign's page.
URL matchurl_matchtext
How the goal's URL is matched. Leave empty for an exact match.One of: url (Is exactly), startsWith (Starts with), endsWith (Ends with), contains, pattern (Matches a wildcard pattern), regex (Matches a regular expression).

Outputs

dataobject
The response from VWO.
Example output
{
  "data": {
    "goals": [
      {
        "id": 1,
        "name": "example"
      }
    ],
    "id": 1,
    "status": "example"
  }
}

Create goal

Add a goal to a campaign, such as a page visit, a form submission or a click.

Inputs

Campaigncampaign_idnumberRequired
The campaign.At least 1.
NamenametextRequired
The goal's name.
TypetypetextRequired
What counts as a conversion.One of: visitPage (Visits a page), engagement (Engages with a page), formSubmit (Submits a form), clickLink (Clicks a link), clickElement (Clicks an element), revenue (Tracks revenue), custom-conversion (Custom conversion).
URLurltext
The page the goal is tracked on. Needed for every type except engaging with a page and clicking an element.
URL matchurl_matchtext
How the goal's URL is matched. Leave empty for an exact match.One of: url (Is exactly), startsWith (Starts with), endsWith (Ends with), contains, pattern (Matches a wildcard pattern), regex (Matches a regular expression).
CSS selectorcss_selectortext
For clicks an element: the element's CSS selector, such as #buy-now.

Outputs

dataobject
The response from VWO.
Example output
{
  "data": {
    "excludedUrls": [
      {
        "type": "example",
        "value": "example"
      }
    ],
    "id": 1,
    "isCreatedInEditor": true,
    "isPrimary": true,
    "name": "example",
    "type": "example",
    "urls": [
      {
        "type": "example",
        "value": "example"
      }
    ]
  }
}

Delete goal

Remove a goal from a campaign.

Inputs

Campaigncampaign_idnumberRequired
The campaign.At least 1.
Goalgoal_idnumberRequired
The goal.At least 1.

Outputs

dataobject
The response from VWO.
Example output
{
  "data": {}
}

Get campaign

Get a campaign with its URLs, variations, goals, traffic and status.

Inputs

Campaigncampaign_idnumberRequired
The campaign.At least 1.

Outputs

dataobject
The response from VWO.
Example output
{
  "data": {
    "createdBy": {
      "id": 1,
      "name": "example"
    },
    "createdOn": 1,
    "device": "example",
    "excludedUrls": [
      {
        "type": "example",
        "value": "example"
      }
    ],
    "goals": [
      {
        "excludedUrls": [
          {
            "type": "example",
            "value": "example"
          }
        ],
        "id": 1,
        "isCreatedInEditor": true,
        "isPrimary": true,
        "name": "example",
        "type": "example",
        "urls": [
          {
            "type": "example",
            "value": "example"
          }
        ]
      }
    ],
    "id": 1,
    "labels": [
      {
        "id": 1,
        "name": "example"
      }
    ],
    "name": "example",
    "percentTraffic": 1,
    "primaryUrl": "example",
    "status": "example",
    "thresholds": {
      "losingPercent": 1,
      "visitors": 1,
      "winningPercent": 1
    },
    "type": "example",
    "urls": [
      {
        "type": "example",
        "value": "example"
      }
    ],
    "variations": [
      {
        "id": 1,
        "isControl": true,
        "isDisabled": true,
        "name": "example",
        "percentSplit": 1,
        "screenshots": {
          "quick": "example"
        },
        "sectionId": 1
      }
    ]
  }
}

Get a link that shows a campaign's report to people without a VWO login.

Inputs

Campaigncampaign_idnumberRequired
The campaign.At least 1.

Outputs

dataobject
The response from VWO.
Example output
{
  "data": {
    "shareLink": "example"
  }
}

Get feature flag

Get a feature flag's key, type, variables, variations and rule count.

Inputs

Feature flagfeature_flagtextRequired
The feature flag.

Outputs

dataobject
The response from VWO.
Example output
{
  "data": {
    "description": "example",
    "featureKey": "example",
    "featureType": "example",
    "id": 1,
    "name": "example",
    "rulesCount": 1,
    "variables": [
      {}
    ],
    "variations": [
      {}
    ]
  }
}

Get goal

Get a campaign goal's name, type and URLs.

Inputs

Campaigncampaign_idnumberRequired
The campaign.At least 1.
Goalgoal_idnumberRequired
The goal.At least 1.

Outputs

dataobject
The response from VWO.
Example output
{
  "data": {
    "excludedUrls": [
      {
        "type": "example",
        "value": "example"
      }
    ],
    "id": 1,
    "isCreatedInEditor": true,
    "isPrimary": true,
    "name": "example",
    "type": "example",
    "urls": [
      {
        "type": "example",
        "value": "example"
      }
    ]
  }
}

Get variation

Get a campaign variation's name, traffic split and screenshot.

Inputs

Campaigncampaign_idnumberRequired
The campaign.At least 1.
Variationvariation_idtextRequired
The variation. For a multivariate campaign, the section ID and variation ID with a comma, such as 1,2.

Outputs

dataobject
The response from VWO.
Example output
{
  "data": {
    "id": 1,
    "isControl": true,
    "isDisabled": true,
    "name": "example",
    "percentSplit": 1,
    "screenshots": {
      "quick": "example"
    },
    "sectionId": 1
  }
}

Get website

Get a website's domain, platform and status.

Inputs

Websitewebsite_idnumberRequired
The website.At least 1.

Outputs

dataobject
The response from VWO.
Example output
{
  "data": {
    "accountId": 1,
    "createdAt": 1,
    "domain": "example",
    "id": 1,
    "isArchived": true,
    "isRegistered": true,
    "lastUpdatedAt": 1,
    "name": "example",
    "platform": "example",
    "status": "example"
  }
}

Get workspace

Get the connected workspace's name, time zone and company details.

Inputs

None.

Outputs

dataobject
The response from VWO.
Example output
{
  "data": {
    "company": {
      "name": "example",
      "size": "example",
      "website": "example"
    },
    "createdOn": 1,
    "enabled": true,
    "id": 1,
    "name": "example",
    "timezone": "example"
  }
}

List activity

List the workspace's timeline: campaigns created, started, paused and changed, newest first, with who did it.

Inputs

Fromstart_timedate and time
Only activity at or after this time.
Toend_timedate and time
Only activity at or before this time.
Entries to returnlimitnumber
How many entries to return, up to 100. Leave empty for 100.From 1 to 100.
Entries to skipoffsetnumber
How many entries to skip, for reading the next page.At least 0.

Outputs

datalist
The response from VWO.
Example output
{
  "data": [
    {
      "campaign": {
        "id": 1,
        "name": "example",
        "platform": "example",
        "type": "example"
      },
      "id": 1,
      "type": "example",
      "what": "example",
      "when": "example",
      "who": {
        "name": "example"
      }
    }
  ]
}

List campaigns

List the workspace's campaigns (tests, heatmaps, surveys and more), optionally of one type, platform or label.

Inputs

Typetypetext
Only campaigns of this type.One of: ab (A/B test), multivariate (Multivariate test), split (Split URL test), targeting (Personalization), heatmap, conversion (Conversion tracking), usability, survey, analysis, analyze-heatmap (Insights heatmap), and 7 more.
Platformplatformtext
Only campaigns on this platform.One of: website, full-stack (Full stack), mobile-app (Mobile app).
Labelslabelslist
Only campaigns with these labels.
Include detailsshow_detailed_infotrue/false
Also return each campaign's segmentation, schedules, variations and notes.
Records to returnlimitnumber
How many records to return. Leave empty for VWO's default.At least 1.
Records to skipoffsetnumber
How many records to skip, for reading the next page.At least 0.

Outputs

datalist
The response from VWO.
Example output
{
  "data": [
    {
      "createdBy": {
        "id": 1,
        "name": "example"
      },
      "createdOn": 1,
      "id": 1,
      "isDeleted": true,
      "labels": [
        {
          "id": 1,
          "name": "example"
        }
      ],
      "name": "example",
      "platform": "example",
      "primaryUrl": "example",
      "status": "example",
      "type": "example",
      "urls": [
        {
          "type": "example",
          "value": "example"
        }
      ]
    }
  ]
}

List feature flags

List the workspace's feature flags (VWO Feature Experimentation).

Inputs

Records to returnlimitnumber
How many records to return. Leave empty for VWO's default.At least 1.
Records to skipoffsetnumber
How many records to skip, for reading the next page.At least 0.

Outputs

datalist
The response from VWO.
Example output
{
  "data": [
    {
      "description": "example",
      "featureKey": "example",
      "featureType": "example",
      "id": 1,
      "name": "example",
      "rulesCount": 1,
      "variables": [
        {}
      ],
      "variations": [
        {}
      ]
    }
  ]
}

List goals

List a campaign's goals, the conversions it measures.

Inputs

Campaigncampaign_idnumberRequired
The campaign.At least 1.

Outputs

datalist
The response from VWO.
Example output
{
  "data": [
    {
      "excludedUrls": [
        {
          "type": "example",
          "value": "example"
        }
      ],
      "id": 1,
      "isCreatedInEditor": true,
      "isPrimary": true,
      "name": "example",
      "type": "example",
      "urls": [
        {
          "type": "example",
          "value": "example"
        }
      ]
    }
  ]
}

List labels

List the labels the workspace uses to organize campaigns.

Inputs

None.

Outputs

datalist
The response from VWO.
Example output
{
  "data": [
    {
      "id": 1,
      "name": "example"
    }
  ]
}

List users

List the workspace's users with their permission level.

Inputs

None.

Outputs

datalist
The response from VWO.
Example output
{
  "data": [
    {
      "account": 1,
      "country": "example",
      "createdOn": 1,
      "department": "example",
      "email": "example",
      "id": 1,
      "name": "example",
      "permission": "example",
      "title": "example"
    }
  ]
}

List variations

List a campaign's variations with their traffic split.

Inputs

Campaigncampaign_idnumberRequired
The campaign.At least 1.

Outputs

datalist
The response from VWO.
Example output
{
  "data": [
    {
      "id": 1,
      "isControl": true,
      "isDisabled": true,
      "name": "example",
      "percentSplit": 1,
      "screenshots": {
        "quick": "example"
      },
      "sectionId": 1
    }
  ]
}

List websites

List the websites set up in the workspace and whether VWO's code is found on each.

Inputs

None.

Outputs

datalist
The response from VWO.
Example output
{
  "data": [
    {
      "accountId": 1,
      "createdAt": 1,
      "domain": "example",
      "id": 1,
      "isArchived": true,
      "isRegistered": true,
      "lastUpdatedAt": 1,
      "name": "example",
      "platform": "example",
      "status": "example"
    }
  ]
}

List workspaces

List the account's other workspaces (sub-accounts).

Inputs

Include this workspaceinclude_currenttrue/false
Also list the workspace the token belongs to.
Statusstatustext
Only active or only disabled workspaces. Leave empty for all.One of: all, active, disabled.

Outputs

datalist
The response from VWO.
Example output
{
  "data": [
    {
      "company": {
        "name": "example",
        "size": "example",
        "website": "example"
      },
      "createdOn": 1,
      "enabled": true,
      "id": 1,
      "name": "example",
      "timezone": "example"
    }
  ]
}

Remove label from campaign

Take a label off a campaign. The label stays in the workspace.

Inputs

Campaigncampaign_idnumberRequired
The campaign.At least 1.
Labellabel_idnumberRequired
The label to remove.At least 1.

Outputs

dataobject
The response from VWO.
Example output
{
  "data": {}
}

Rename campaign

Change a campaign's name.

Inputs

Campaigncampaign_idnumberRequired
The campaign.At least 1.
NamenametextRequired
The campaign's new name.

Outputs

dataobject
The response from VWO.
Example output
{
  "data": {
    "createdBy": {
      "id": 1,
      "name": "example"
    },
    "createdOn": 1,
    "device": "example",
    "excludedUrls": [
      {
        "type": "example",
        "value": "example"
      }
    ],
    "goals": [
      {
        "excludedUrls": [
          {
            "type": "example",
            "value": "example"
          }
        ],
        "id": 1,
        "isCreatedInEditor": true,
        "isPrimary": true,
        "name": "example",
        "type": "example",
        "urls": [
          {
            "type": "example",
            "value": "example"
          }
        ]
      }
    ],
    "id": 1,
    "labels": [
      {
        "id": 1,
        "name": "example"
      }
    ],
    "name": "example",
    "percentTraffic": 1,
    "primaryUrl": "example",
    "status": "example",
    "thresholds": {
      "losingPercent": 1,
      "visitors": 1,
      "winningPercent": 1
    },
    "type": "example",
    "urls": [
      {
        "type": "example",
        "value": "example"
      }
    ],
    "variations": [
      {
        "id": 1,
        "isControl": true,
        "isDisabled": true,
        "name": "example",
        "percentSplit": 1,
        "screenshots": {
          "quick": "example"
        },
        "sectionId": 1
      }
    ]
  }
}

Rename goal

Change a campaign goal's name.

Inputs

Campaigncampaign_idnumberRequired
The campaign.At least 1.
Goalgoal_idnumberRequired
The goal.At least 1.
NamenametextRequired
The goal's new name.

Outputs

dataobject
The response from VWO.
Example output
{
  "data": {
    "excludedUrls": [
      {
        "type": "example",
        "value": "example"
      }
    ],
    "id": 1,
    "isCreatedInEditor": true,
    "isPrimary": true,
    "name": "example",
    "type": "example",
    "urls": [
      {
        "type": "example",
        "value": "example"
      }
    ]
  }
}

Turn feature flag on or off

Turn a feature flag on or off in one environment.

Inputs

Feature flagfeature_flagtextRequired
The feature flag.
EnvironmentenvironmenttextRequired
The environment's key or ID, such as production, from the flag's page in VWO.
Onis_enabledtrue/falseRequired
On to turn the flag on in the environment, off to turn it off.

Outputs

dataobject
The response from VWO.
Example output
{
  "data": {}
}

On this page