v4
latestOpenAPI 3.0.02026-08-04109113304.5 KBCampaigns
List Campaigns
Get a list of all the Campaigns in a Project
get/campaigns
Query parameters
per_pageinteger
Optional pagination argument that specifies the maximum number of objects to return per request
pageinteger
Optional pagination argument that specifies the page to return. If you have 140 objects and you choose to return 100 objects per page you will be able to access the last 40 objects on page 2. The default value is 1.
project_idinteger required
The Project ID of the Project you would like to list all Campaigns for
for_journeyboolean
Filter campaigns by journey status
archivedboolean
Filter campaigns by archived status
Response
Return all Campaigns
Example response
[
{
"changes": [
{
"dependencies": [
"993fd09c-b64a-4c13-95a9-13b3ed2c454e",
"95cf0144-fb63-431d-829b-193fe55ada18"
],
"name": "Setting button text",
"selector": "head",
"value": "window.someGlobalFunction();"
}
],
"description": "Tailor the landing page hero element for specific audiences",
"holdback": 500,
"id": 2000,
"name": "Landing Page Optimization",
"project_id": 1000,
"url_targeting": {
"activation_code": "function callbackFn(activate, options) { activate(); }",
"activation_type": "callback",
"conditions": "[\"and\", {\"type\": \"url\", \"match_type\": \"substring\", \"value\": \"optimize\"}]",
"edit_url": "https://www.optimizely.com",
"key": "home_page",
"page_id": 6700
}
}
]