Zelto Experiments API

Prospective measurement of two externally routed prompt versions across independent monitor outcomes.

Operations 12

GET /v1/experiments/monitor-groups List reusable experiment monitor groups #
POST /v1/experiments/preflight Review an experiment before launch #
GET /v1/experiments List experiments #
POST /v1/experiments Launch an experiment #
GET /v1/experiments/{id} Get an experiment and its independent outcome results #
PATCH /v1/experiments/{id} Update mutable experiment settings #
DELETE /v1/experiments/{id} Delete an experiment #
POST /v1/experiments/{id}/conclude Permanently conclude an experiment #
GET /v1/experiments/{id}/evaluations List durable evaluation runs #
POST /v1/experiments/{id}/evaluations Retry missing or failed observations #
GET /v1/experiments/{id}/evaluations/{runId} Get evaluation progress #
GET /v1/experiments/{id}/conversations List experiment observations by call #

Work with this as data

Every API 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 apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • 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 API
curl "https://apis.io/api/v1/apis/zelto:zelto-experiments-api"
All apis
curl "https://apis.io/api/v1/apis?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. See our Privacy Policy and Terms.

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

OpenAPI Specification

zelto-experiments-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Zelto REST Experiments API
  version: v1
  description: Programmatic access to your Zelto organization. Every endpoint is scoped to the organization the API key belongs to. Mint a key at Settings → Integrations → API Call Upload.
servers:
- url: https://api.zelto.ai
  description: Production
security:
- bearerAuth: []
tags:
- name: Experiments
  description: Prospective measurement of two externally routed prompt versions across independent monitor outcomes.
paths:
  /v1/experiments/monitor-groups:
    get:
      summary: List reusable experiment monitor groups
      description: Returns this organization's saved groups and ordered monitor IDs. Requires Observability and the Experiments v2 rollout flag. Empty groups remain visible if their source monitors were deleted.
      operationId: listExperimentMonitorGroups
      tags:
      - Experiments
      responses:
        '200':
          description: Saved monitor groups.
          content:
            application/json:
              schema:
                type: object
                required:
                - data
                properties:
                  data:
                    type: array
                    items:
                      type: object
                      required:
                      - id
                      - name
                      - metricIds
                      properties:
                        id:
                          type: string
                          format: uuid
                        name:
                          type: string
                        metricIds:
                          type: array
                          items:
                            type: string
                            format: uuid
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
  /v1/experiments/preflight:
    post:
      summary: Review an experiment before launch
      description: Validates the immutable experiment definition and returns recent traffic, identity quality, leakage, and projected evaluation cost. Requires Observability, the Experiments v2 rollout flag, and owner/admin access.
      operationId: preflightExperiment
      tags:
      - Experiments
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ExperimentCreate'
      responses:
        '200':
          description: Preflight summary.
        '400':
          $ref: '#/components/responses/ValidationFailed'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
  /v1/experiments:
    get:
      summary: List experiments
      operationId: listExperiments
      tags:
      - Experiments
      responses:
        '200':
          description: Experiments visible to this organization.
        '401':
          $ref: '#/components/responses/Unauthorized'
    post:
      summary: Launch an experiment
      description: Launches immediately using server time and runs indefinitely until an operator explicitly concludes it. There is no automatic end date or statistical stopping rule. Creates or reuses a monitor group and freezes its definitions for both versions. Zelto does not route callers. Requires Observability, the Experiments v2 rollout flag, and owner/admin access.
      operationId: createExperiment
      tags:
      - Experiments
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ExperimentCreate'
      responses:
        '201':
          description: Experiment launched.
        '400':
          $ref: '#/components/responses/ValidationFailed'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
  /v1/experiments/{id}:
    parameters:
    - name: id
      in: path
      required: true
      schema:
        type: string
        format: uuid
    get:
      summary: Get an experiment and its independent outcome results
      operationId: getExperiment
      tags:
      - Experiments
      responses:
        '200':
          description: Experiment definition, latest evaluation progress, and outcome-level estimates.
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
    patch:
      summary: Update mutable experiment settings
      description: Only name, description, expected allocation, and notification email addresses may change after launch.
      operationId: updateExperiment
      tags:
      - Experiments
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              minProperties: 1
              properties:
                name:
                  type: string
                  minLength: 1
                  maxLength: 255
                description:
                  type:
                  - string
                  - 'null'
                  maxLength: 2000
                expectedArmAPercent:
                  type: integer
                  minimum: 1
                  maximum: 99
                notifications:
                  type: object
                  required:
                  - emails
                  properties:
                    emails:
                      type: array
                      maxItems: 20
                      items:
                        type: string
                        format: email
      responses:
        '200':
          description: Settings updated.
        '400':
          $ref: '#/components/responses/ValidationFailed'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
    delete:
      summary: Delete an experiment
      operationId: deleteExperiment
      tags:
      - Experiments
      responses:
        '200':
          description: Experiment deleted.
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
  /v1/experiments/{id}/conclude:
    post:
      summary: Permanently conclude an experiment
      description: Closes the call-time window permanently. Missing observations may still finish.
      operationId: concludeExperiment
      tags:
      - Experiments
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: Experiment concluded.
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
  /v1/experiments/{id}/evaluations:
    get:
      summary: List durable evaluation runs
      operationId: listExperimentEvaluations
      tags:
      - Experiments
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: Evaluation runs and progress.
        '401':
          $ref: '#/components/responses/Unauthorized'
    post:
      summary: Retry missing or failed observations
      operationId: startExperimentEvaluation
      tags:
      - Experiments
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '202':
          description: A run was started or the active run was returned.
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
  /v1/experiments/{id}/evaluations/{runId}:
    get:
      summary: Get evaluation progress
      operationId: getExperimentEvaluation
      tags:
      - Experiments
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: runId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: Evaluation progress.
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
  /v1/experiments/{id}/conversations:
    get:
      summary: List experiment observations by call
      operationId: listExperimentConversations
      tags:
      - Experiments
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - $ref: '#/components/parameters/Limit'
      responses:
        '200':
          description: Outcome-level call observations with terminal statuses and result details.
        '401':
          $ref: '#/components/responses/Unauthorized'
components:
  schemas:
    ExperimentCreate:
      type: object
      required:
      - name
      - agentId
      - armAVersionId
      - armBVersionId
      - outcomeMetricIds
      - primaryMetricId
      - stableRoutingConfirmed
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 255
        description:
          type:
          - string
          - 'null'
          maxLength: 2000
        agentId:
          type: string
          format: uuid
        armAVersionId:
          type: string
          format: uuid
        armBVersionId:
          type: string
          format: uuid
        armAName:
          type:
          - string
          - 'null'
          maxLength: 120
        armBName:
          type:
          - string
          - 'null'
          maxLength: 120
        cohortFilters:
          type: array
          maxItems: 12
          items:
            type: object
            additionalProperties: true
        assignmentUnit:
          oneOf:
          - type: object
            required:
            - kind
            properties:
              kind:
                const: auto
          - type: object
            required:
            - kind
            - key
            properties:
              kind:
                const: metadata
              key:
                type: string
                minLength: 1
                maxLength: 120
        expectedArmAPercent:
          type: integer
          minimum: 1
          maximum: 99
          default: 50
        outcomeMetricIds:
          type: array
          minItems: 1
          items:
            type: string
            format: uuid
        primaryMetricId:
          type: string
          format: uuid
        monitorGroupId:
          type: string
          format: uuid
          description: Reuse a saved group from GET /v1/experiments/monitor-groups. outcomeMetricIds must match the group's current metricIds. Cannot be combined with newMonitorGroupName.
        newMonitorGroupName:
          type: string
          minLength: 1
          maxLength: 255
          description: Save outcomeMetricIds as a reusable organization group when launching. Cannot be combined with monitorGroupId.
        notifications:
          type: object
          properties:
            emails:
              type: array
              maxItems: 20
              items:
                type: string
                format: email
        stableRoutingConfirmed:
          const: true
          description: Confirms that traffic is assigned consistently outside Zelto.
    Error:
      type: object
      required:
      - error
      properties:
        error:
          type: string
          description: Human-readable error message, e.g. Unauthorized or Validation failed.
        message:
          type: string
        details:
          type: object
          additionalProperties: true
  responses:
    Forbidden:
      description: The key is valid but not allowed to perform this operation (e.g. a read-only org-scoped customer key calling a service-only endpoint).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    ValidationFailed:
      description: Request body failed validation.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: Missing or invalid API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: Resource not found in your organization.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  parameters:
    Limit:
      name: limit
      in: query
      required: false
      description: Items per page. Default 50, max 200.
      schema:
        type: integer
        minimum: 1
        maximum: 200
        default: 50
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Send `Authorization: Bearer YOUR_API_KEY`. The key resolves to a single organization.'