Optimizely · Schema

Environments

A/B TestingContent ManagementCustomer DataE-CommerceExperimentationFeature FlagsMarketing

Properties

Name Type Description
count integer Number of Environments on the current page.
filter_url object Url template like '.../{?filter}'
first_url object Link to first page of Environments in a series.
items array
last_url object Link to the last page of Environments in a series.
next_url object List of links to next pages of Environments in a series. The first element in the array is the exact next page after the current record, etc.
page integer Number of the current page. 1-index based.
prev_url object List of links to previous pages of Environments in a series. The first element in the array is the exact previous page before the current record, etc.
reset_url object Link to the default pages of Environments
total_count integer Total number of Environments for this series.
total_pages integer Total number of pages for this series.
url object Link to self
View JSON Schema on GitHub

JSON Schema

optimizely-environments-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/optimizely/main/json-schema/optimizely-environments-schema.json",
  "title": "Environments",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/optimizely-environments-api-openapi.yml#/components/schemas/Environments",
  "properties": {
    "count": {
      "description": "Number of Environments on the current page.",
      "type": "integer"
    },
    "filter_url": {
      "allOf": [
        {
          "$ref": "#/$defs/UrlValue"
        }
      ],
      "description": "Url template like '.../{?filter}'"
    },
    "first_url": {
      "allOf": [
        {
          "$ref": "#/$defs/UrlValue"
        }
      ],
      "description": "Link to first page of Environments in a series."
    },
    "items": {
      "items": {
        "$ref": "#/$defs/Environment_2"
      },
      "type": "array"
    },
    "last_url": {
      "allOf": [
        {
          "$ref": "#/$defs/UrlValue"
        }
      ],
      "description": "Link to the last page of Environments in a series."
    },
    "next_url": {
      "allOf": [
        {
          "$ref": "#/$defs/UrlList"
        }
      ],
      "description": "List of links to next pages of Environments in a series.\n\n The first element in the array is the exact next page after the current record, etc.\n"
    },
    "page": {
      "description": "Number of the current page. 1-index based.",
      "type": "integer"
    },
    "prev_url": {
      "allOf": [
        {
          "$ref": "#/$defs/UrlList"
        }
      ],
      "description": "List of links to previous pages of Environments in a series.\n\nThe first element in the array is the exact previous page before the current record, etc.\n"
    },
    "reset_url": {
      "allOf": [
        {
          "$ref": "#/$defs/UrlValue"
        }
      ],
      "description": "Link to the default pages of Environments"
    },
    "total_count": {
      "description": "Total number of Environments for this series.",
      "type": "integer"
    },
    "total_pages": {
      "description": "Total number of pages for this series.",
      "type": "integer"
    },
    "url": {
      "allOf": [
        {
          "$ref": "#/$defs/UrlValue"
        }
      ],
      "description": "Link to self"
    }
  },
  "required": [
    "url",
    "first_url",
    "last_url",
    "count",
    "page",
    "total_count",
    "total_pages",
    "items"
  ],
  "type": "object",
  "$defs": {
    "Environment_2": {
      "properties": {
        "account_id": {
          "description": "The ID of the Account",
          "format": "int64",
          "readOnly": true,
          "type": "integer"
        },
        "archived": {
          "type": "boolean"
        },
        "id": {
          "description": "The ID of the Environment",
          "format": "int64",
          "readOnly": true,
          "type": "integer"
        },
        "key": {
          "description": "User-facing key to identify this Environment.",
          "maxLength": 64,
          "pattern": "^[a-zA-Z0-9_\\-]+$",
          "type": "string"
        },
        "name": {
          "description": "Name of the Environment.",
          "type": "string"
        },
        "priority": {
          "description": "Integer representing the priority of the Environment. This is used for ordering in the UI.",
          "type": "integer"
        },
        "project_id": {
          "description": "The ID of the Project this Flag belongs to",
          "format": "int64",
          "readOnly": true,
          "type": "integer"
        },
        "revision": {
          "description": "Revision number for tracking changes",
          "readOnly": true,
          "type": "integer"
        },
        "role": {
          "description": "Granular permission role",
          "readOnly": true,
          "type": "string"
        }
      },
      "required": [
        "key",
        "name",
        "archived",
        "priority",
        "project_id"
      ],
      "type": "object"
    },
    "UrlList": {
      "description": "A list of urls.",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "UrlValue": {
      "description": "A single url.",
      "type": "string"
    }
  }
}

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-environments"
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.