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

# Create Experiment

> Create an experiment



## OpenAPI

````yaml POST /monitor/experiments
openapi: 3.1.0
info:
  title: Basalt API
  description: Basalt API
  version: 0.2.1
servers:
  - url: https://api.getbasalt.ai
    description: Basalt Endpoint API
security:
  - bearerAuth: []
paths:
  /monitor/experiments:
    post:
      summary: Create an experiment
      description: Create an experiment
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                featureSlug:
                  type: string
                  description: The slug of the feature to create an experiment on
                  example: my-feature
                name:
                  type: string
                  description: The name of the experiment
                  example: My Experiment
              required:
                - featureSlug
                - name
      responses:
        '200':
          description: The created experiment
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    description: The ID of the experiment
                    example: '123'
                  name:
                    type: string
                    description: The name of the experiment
                    example: My Experiment
                  featureSlug:
                    type:
                      - string
                      - 'null'
                    description: The slug of the feature this experiment belongs to
                    example: my-feature
                  createdAt:
                    type: string
                    description: The creation timestamp of the experiment
                    example: '2024-03-20T12:00:00Z'
                required:
                  - id
                  - name
                  - createdAt
        '400':
          description: Bad Request - Invalid body parameters
        '404':
          description: Not found - No feature found for the given slug
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````