> ## Documentation Index
> Fetch the complete documentation index at: https://docs.erdo.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# ListExperimentsAPI mirrors erdo_list_experiments.




## OpenAPI

````yaml /api/openapi.json get /v1/experiments
openapi: 3.0.0
info:
  title: Erdo API
  description: >-
    Erdo's REST API: query and write datasets, run agents, manage threads,
    integrations, pages, evals, workstreams, and experiments. Authenticate with
    a Bearer API key (erdo_api_...) or scoped token (erdo_token_...).
  version: '2026-07-25'
servers:
  - url: https://api.erdo.ai
    description: Production
security:
  - bearerAuth: []
paths:
  /v1/experiments:
    get:
      summary: |
        ListExperimentsAPI mirrors erdo_list_experiments.
      operationId: GET:mcp.ListExperimentsAPI
      parameters:
        - allowEmptyValue: true
          explode: true
          in: query
          name: workstream_slug
          required: false
          schema:
            type: string
          style: form
        - allowEmptyValue: true
          explode: true
          in: query
          name: scope
          required: false
          schema:
            type: string
          style: form
        - allowEmptyValue: true
          explode: true
          in: query
          name: status
          required: false
          schema:
            items:
              type: string
            type: array
          style: form
        - allowEmptyValue: true
          explode: true
          in: query
          name: limit
          required: false
          schema:
            format: int32
            maximum: 2147483647
            minimum: -2147483648
            type: integer
          style: form
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  experiment_runs:
                    items:
                      $ref: '#/components/schemas/types.ExperimentRun'
                    type: array
                  variants_by_experiment_run_id:
                    additionalProperties:
                      items:
                        $ref: '#/components/schemas/types.ExperimentVariant'
                      type: array
                    description: >
                      Embedded so list-page cards can render the variant summary
                      without a per-card fetch. Experiments with no variants are
                      omitted; the frontend should treat a missing entry as an
                      empty slice.
                    title: >
                      VariantsByExperimentRunID maps experiment_run_id (string)
                      → its variants.
                    type: object
                type: object
          description: Success response
        default:
          $ref: '#/components/responses/APIError'
components:
  schemas:
    types.ExperimentRun:
      description: |
        Sibling to Workstream, can be hosted by a workstream or standalone.
      properties:
        created_at:
          format: date-time
          type: string
        decided_at:
          format: date-time
          type: string
        decision:
          type: string
        decision_rule_markdown:
          type: string
        guardrail_metrics:
          items:
            type: string
          type: array
        hypothesis_markdown:
          type: string
        id:
          format: uuid
          type: string
        organization_id:
          format: uuid
          type: string
        outcome_markdown:
          type: string
        primary_metric:
          type: string
        primary_thread_id:
          format: uuid
          type: string
        project_id:
          format: uuid
          type: string
        scope:
          type: string
        slug:
          type: string
        started_at:
          format: date-time
          type: string
        status:
          type: string
        title:
          type: string
        updated_at:
          format: date-time
          type: string
        workstream_id:
          format: uuid
          type: string
      title: |
        ExperimentRun is a structured test with hypothesis, variants, decision.
      type: object
    types.ExperimentVariant:
      properties:
        allocation_percent:
          format: int32
          maximum: 2147483647
          minimum: -2147483648
          type: integer
        created_at:
          format: date-time
          type: string
        experiment_run_id:
          format: uuid
          type: string
        id:
          format: uuid
          type: string
        is_control:
          type: boolean
        key:
          type: string
        label:
          type: string
        treatment_class:
          description: >
            (TreatmentClassTaxonomy) — DECLARED by the producing agent, never
            derived from content. It is the privacy boundary the cross-customer
            prior distiller aggregates on. Nil for the control and for
            treatments that carry no class.
          title: >
            TreatmentClass is the variant's structural class from the fixed
            taxonomy
          type: string
        treatment_resource_id:
          format: uuid
          type: string
        treatment_resource_type:
          type: string
        treatment_url:
          description: >
            page resource — the wind-tunnel persona panel can visit either. Set
            for variants whose page is not an Erdo artifact (an agency's client
            landing page); mutually exclusive with TreatmentResourceType/ID.
            Public http(s) URLs only, never a signed-in Erdo workspace URL.
          title: >
            TreatmentURL is an external page URL this variant tests INSTEAD OF
            an Erdo
          type: string
      title: |
        ExperimentVariant is one variant in an experiment.
      type: object
  responses:
    APIError:
      content:
        application/json:
          schema:
            externalDocs:
              url: https://pkg.go.dev/encore.dev/beta/errs#Error
            properties:
              code:
                description: Error code
                example: not_found
                externalDocs:
                  url: https://pkg.go.dev/encore.dev/beta/errs#ErrCode
                type: string
              details:
                description: Error details
                type: object
              message:
                description: Error message
                type: string
            title: APIError
            type: object
      description: Error response
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: An Erdo API key (erdo_api_...) or scoped token (erdo_token_...).

````