Latitude · Schema

CreateExperimentBody

CompanyArtificial IntelligenceObservabilityMonitoringPlatformAgents

Properties

Name Type Description
name string Human-readable name. Used to derive the slug.
description string Optional free-form description.
variants array Variant definitions. Omit to seed two default variants (`Variant A` baseline + `Variant B`); pass `[]` to create an empty experiment.
View JSON Schema on GitHub

JSON Schema

latitude-so-create-experiment-body-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/latitude-so/json-schema/latitude-so-create-experiment-body-schema.json",
  "title": "CreateExperimentBody",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/latitude-so-experiments-api-openapi.yml#/components/schemas/CreateExperimentBody",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "description": "Human-readable name. Used to derive the slug."
    },
    "description": {
      "type": "string",
      "maxLength": 2000,
      "description": "Optional free-form description."
    },
    "variants": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Existing variant id to preserve. Omit to mint a new variant."
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "description": "Variant name. Unique within the experiment."
          },
          "baseline": {
            "type": "boolean",
            "description": "`true` for the baseline variant. Exactly one variant must be the baseline."
          },
          "filterSet": {
            "allOf": [
              {
                "$ref": "#/$defs/FilterSet"
              },
              {
                "description": "Session filters selecting this variant's population."
              }
            ]
          },
          "query": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 500,
            "description": "Free-text / semantic search, or `null`."
          },
          "timeRange": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "enum": [
                      "relative"
                    ]
                  },
                  "seconds": {
                    "type": "integer",
                    "minimum": 0,
                    "exclusiveMinimum": true,
                    "description": "Length of the live window in seconds."
                  }
                },
                "required": [
                  "type",
                  "seconds"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "enum": [
                      "absolute"
                    ]
                  },
                  "fromIso": {
                    "type": "string",
                    "description": "ISO-8601 start of the window (inclusive)."
                  },
                  "toIso": {
                    "type": "string",
                    "description": "ISO-8601 end of the window (inclusive)."
                  }
                },
                "required": [
                  "type",
                  "fromIso",
                  "toIso"
                ]
              },
              {
                "nullable": true
              }
            ],
            "description": "Time window, or `null` for the default last-30-days window."
          }
        },
        "required": [
          "name",
          "baseline",
          "filterSet",
          "query",
          "timeRange"
        ]
      },
      "maxItems": 10,
      "description": "Variant definitions. Omit to seed two default variants (`Variant A` baseline + `Variant B`); pass `[]` to create an empty experiment."
    }
  },
  "required": [
    "name"
  ],
  "$defs": {
    "FilterCondition": {
      "type": "object",
      "properties": {
        "op": {
          "type": "string",
          "enum": [
            "eq",
            "neq",
            "gt",
            "gte",
            "lt",
            "lte",
            "in",
            "notIn",
            "contains",
            "notContains",
            "gtePercentile"
          ],
          "description": "Comparison operator applied to the field's value (e.g. `eq`, `neq`, `in`). The full operator list lives in the API reference."
        },
        "value": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            },
            {
              "type": "array",
              "items": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  }
                ]
              }
            }
          ],
          "description": "Right-hand value compared against the field. Arrays are required for `in` / `notIn`-style operators."
        }
      },
      "required": [
        "op",
        "value"
      ]
    },
    "FilterSet": {
      "type": "object",
      "additionalProperties": {
        "type": "array",
        "items": {
          "$ref": "#/$defs/FilterCondition"
        }
      },
      "description": "Filter set keyed by field name. Each entry holds an array of conditions ANDed together for that field; field-level groups are also ANDed across the set."
    }
  }
}

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/latitude-so-create-experiment-body"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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