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

# Create Agent Experiment

> Create a new agent experiment



## OpenAPI

````yaml post /api/v2/agents/experiment/create
openapi: 3.0.0
info:
  version: 1.0.0
  title: Octave API
  description: API for Octave workspace management and AI-powered content generation
servers:
  - url: https://app.octavehq.com
security:
  - ApiKeyAuth: []
paths:
  /api/v2/agents/experiment/create:
    post:
      tags:
        - Agents
      summary: Create Agent Experiment
      description: Create a new agent experiment
      operationId: createAgentExperiment
      requestBody:
        description: Agent experiment creation input
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                description:
                  type: string
                agentType:
                  type: string
                  enum:
                    - PROSPECTOR
                    - CONTENT
                    - EMAIL
                    - ENRICH_PERSON
                    - ENRICH_COMPANY
                    - QUALIFY_PERSON
                    - QUALIFY_COMPANY
                    - CALL_PREP
                    - CONTEXT
                runStrategy:
                  type: string
                  enum:
                    - RANDOM
                    - ROUND_ROBIN
                    - WEIGHTED
                agentOIds:
                  type: array
                  items:
                    type: string
                weights:
                  type: array
                  items:
                    type: object
                    properties:
                      oId:
                        type: string
                      weight:
                        type: number
                    required:
                      - oId
                      - weight
              required:
                - name
                - agentType
                - runStrategy
                - agentOIds
              description: Input for creating an agent experiment
      responses:
        '200':
          description: Agent experiment created successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  _metadata:
                    $ref: '#/components/schemas/Metadata'
                  oId:
                    type: string
                  name:
                    type: string
                  description:
                    type: string
                  agentType:
                    type: string
                    enum:
                      - PROSPECTOR
                      - CONTENT
                      - EMAIL
                      - ENRICH_PERSON
                      - ENRICH_COMPANY
                      - QUALIFY_PERSON
                      - QUALIFY_COMPANY
                      - CALL_PREP
                      - CONTEXT
                  runStrategy:
                    type: string
                    enum:
                      - RANDOM
                      - ROUND_ROBIN
                      - WEIGHTED
                  agents:
                    type: array
                    items:
                      type: object
                      properties:
                        oId:
                          type: string
                        name:
                          type: string
                        costToRun:
                          type: number
                      required:
                        - oId
                        - name
                  weights:
                    type: array
                    nullable: true
                    items:
                      type: object
                      properties:
                        oId:
                          type: string
                        weight:
                          type: number
                      required:
                        - oId
                        - weight
                  user:
                    type: object
                    nullable: true
                    properties:
                      oId:
                        type: string
                        nullable: true
                      firstName:
                        type: string
                        nullable: true
                      lastName:
                        type: string
                        nullable: true
                  createdAt:
                    type: string
                  updatedAt:
                    type: string
                required:
                  - _metadata
                  - oId
                  - name
                  - agentType
                  - runStrategy
                  - agents
                  - createdAt
                  - updatedAt
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                type: object
                properties:
                  _metadata:
                    $ref: '#/components/schemas/Metadata'
                  message:
                    type: string
                required:
                  - _metadata
                  - message
      deprecated: false
components:
  schemas:
    Metadata:
      type: object
      properties:
        usage:
          type: number
          default: 0
          description: API usage
          example: 0
        requestId:
          type: string
          description: Request ID
          example: requestId
        message:
          type: string
          description: Message
          example: message
        timestamp:
          type: string
          description: Timestamp
          example: '2021-01-01T00:00:00.000Z'
      required:
        - requestId
        - timestamp
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: api_key

````