Optimizely · Schema

CampaignResponse

A/B TestingContent ManagementCustomer DataE-CommerceExperimentationFeature FlagsMarketing

Properties

Name Type Description
id string Unique identifier of the campaign
title string Title of the campaign
description stringnull Description of the campaign
start_date stringnull Start date of the campaign in ISO 8601 format: `YYYY-MM-DD`
end_date stringnull End date of the campaign in ISO 8601 format: `YYYY-MM-DD`
created_at string Creation date and time of the campaign, in ISO 8601 UTC format (`2035-02-10T10:40:45Z`)
is_hidden boolean Whether the campaign is hidden or not
status string Status of the campaign
reference_id string Reference identifier of the campaign
budget objectnull
labels array Labels associated to the campaign
links object Meta links
View JSON Schema on GitHub

JSON Schema

optimizely-campaign-response-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/optimizely/main/json-schema/optimizely-campaign-response-schema.json",
  "title": "CampaignResponse",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/optimizely-campaigns-api-openapi.yml#/components/schemas/CampaignResponse",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique identifier of the campaign"
    },
    "title": {
      "type": "string",
      "description": "Title of the campaign"
    },
    "description": {
      "type": [
        "string",
        "null"
      ],
      "description": "Description of the campaign"
    },
    "start_date": {
      "type": [
        "string",
        "null"
      ],
      "description": "Start date of the campaign in ISO 8601 format: `YYYY-MM-DD`"
    },
    "end_date": {
      "type": [
        "string",
        "null"
      ],
      "description": "End date of the campaign in ISO 8601 format: `YYYY-MM-DD`"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "Creation date and time of the campaign,  in ISO 8601 UTC format (`2035-02-10T10:40:45Z`)"
    },
    "is_hidden": {
      "type": "boolean",
      "description": "Whether the campaign is hidden or not"
    },
    "status": {
      "type": "string",
      "description": "Status of the campaign",
      "enum": [
        "Not Started",
        "Off Track",
        "On Track",
        "Complete",
        "At Risk"
      ]
    },
    "reference_id": {
      "type": "string",
      "description": "Reference identifier of the campaign"
    },
    "budget": {
      "type": [
        "object",
        "null"
      ],
      "allOf": [
        {
          "$ref": "#/$defs/BudgetResponse"
        }
      ]
    },
    "labels": {
      "type": "array",
      "description": "Labels associated to the campaign",
      "items": {
        "$ref": "#/$defs/ResourceLabelResponse"
      }
    },
    "links": {
      "type": "object",
      "additionalProperties": false,
      "description": "Meta links",
      "properties": {
        "self": {
          "type": "string",
          "description": "URL of the campaign"
        },
        "brief": {
          "type": [
            "string",
            "null"
          ],
          "description": "URL of the campaign brief"
        },
        "owner": {
          "type": [
            "string",
            "null"
          ],
          "description": "URL of the campaign owner"
        },
        "parent_campaign": {
          "type": [
            "string",
            "null"
          ],
          "description": "URL of the parent campaign"
        },
        "child_campaigns": {
          "type": "array",
          "description": "URLs of the child campaigns",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "self",
        "brief",
        "owner",
        "parent_campaign",
        "child_campaigns"
      ]
    }
  },
  "required": [
    "id",
    "title",
    "description",
    "start_date",
    "end_date",
    "created_at",
    "is_hidden",
    "status",
    "reference_id",
    "budget",
    "labels",
    "links"
  ],
  "$defs": {
    "BudgetResponse": {
      "type": "object",
      "additionalProperties": false,
      "description": "Budget of the campaign",
      "properties": {
        "currency_code": {
          "type": "string",
          "description": "Currency code of the budget"
        },
        "budgeted_amount": {
          "type": "string",
          "description": "Planned amount for the campaign"
        }
      },
      "required": [
        "currency_code",
        "budgeted_amount"
      ]
    },
    "ResourceLabelResponse": {
      "description": "Label associated to a fetched resource",
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "group": {
          "description": "Label group",
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "id": {
              "type": "string",
              "description": "Identifier of the label group"
            },
            "name": {
              "type": "string",
              "description": "Name of the label group"
            }
          },
          "required": [
            "id",
            "name"
          ]
        },
        "values": {
          "type": "array",
          "description": "List of values of the label",
          "items": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "id": {
                "type": "string",
                "description": "Identifier of the label value"
              },
              "name": {
                "type": "string",
                "description": "Name of the label value"
              }
            },
            "required": [
              "id",
              "name"
            ]
          }
        }
      },
      "required": [
        "group",
        "values"
      ]
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/optimizely-campaign-response"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.