> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://nemo-platform.docs.buildwithfern.com/nemo/platform/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://nemo-platform.docs.buildwithfern.com/nemo/platform/_mcp/server.

# Create Experiment

POST https://host.com/apis/intake/v2/workspaces/{workspace}/experiments
Content-Type: application/json

Reference: https://nemo-platform.docs.buildwithfern.com/nemo/platform/nemo/platform/documentation/reference/api-reference/experiments/create-experiment-apis-intake-v-2-workspaces-workspace-experiments-post

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: Nemo Platform API
  version: 1.0.0
paths:
  /apis/intake/v2/workspaces/{workspace}/experiments:
    post:
      operationId: create-experiment-apis-intake-v-2-workspaces-workspace-experiments-post
      summary: Create Experiment
      tags:
        - subpackage_experiments
      parameters:
        - name: workspace
          in: path
          required: true
          schema:
            type: string
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExperimentResponse'
        '409':
          description: Experiment already exists
          content:
            application/json:
              schema:
                description: Any type
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ExperimentRequest'
servers:
  - url: https://host.com
    description: Default
components:
  schemas:
    ExperimentRequest:
      type: object
      properties:
        name:
          type: string
          description: Producer-supplied, workspace-unique experiment id.
        experiment_group_id:
          type: string
          description: >-
            Entity id of the owning ExperimentGroup; optional. Soft reference,
            not validated.
        agent_name:
          type: string
          description: Name of the agent under test.
        agent_version:
          type: string
          description: Version of the agent under test.
        dataset_name:
          type: string
          description: Producer-supplied dataset name.
        dataset_version:
          type: string
          description: Producer-supplied dataset version.
        source_link:
          type: string
          format: uri
          description: Optional URL for the source experiment.
        metadata:
          type: object
          additionalProperties:
            description: Any type
          description: Free-form producer metadata.
        description:
          type: string
          description: Human-readable description.
        summary:
          type: string
          description: Human-authored summary of results.
      required:
        - name
        - agent_name
        - agent_version
        - dataset_name
      description: Request body for creating an Experiment.
      title: ExperimentRequest
    EvaluatorAggregate:
      type: object
      properties:
        sum:
          type: number
          format: double
        mean:
          type: number
          format: double
        median:
          type: number
          format: double
        p90:
          type: number
          format: double
        p95:
          type: number
          format: double
        p99:
          type: number
          format: double
        count:
          type: integer
          default: 0
      description: >-
        Aggregate statistics over evaluator scores or session-level metric
        values.
      title: EvaluatorAggregate
    ExperimentResponse:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        workspace:
          type: string
        experiment_group_id:
          type: string
          description: >-
            Entity id of the owning ExperimentGroup; null when ungrouped. Soft
            reference, not validated.
        agent_name:
          type: string
        agent_version:
          type: string
        dataset_name:
          type: string
        dataset_version:
          type: string
        source_link:
          type: string
          format: uri
        metadata:
          type: object
          additionalProperties:
            description: Any type
        description:
          type: string
        summary:
          type: string
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
        evaluator_names:
          type: array
          items:
            type: string
        model_names:
          type: array
          items:
            type: string
          description: >-
            Distinct model names observed across ingested sessions for this
            experiment.
        aggregate_scores:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/EvaluatorAggregate'
        run_count:
          type: integer
          default: 0
          description: >-
            Number of distinct ingested experiment sessions; one session is
            treated as one run.
        cost_usd:
          $ref: '#/components/schemas/EvaluatorAggregate'
        latency_ms:
          $ref: '#/components/schemas/EvaluatorAggregate'
      required:
        - id
        - name
        - workspace
        - agent_name
        - agent_version
        - dataset_name
      description: Experiment as served by the API, including ClickHouse-hydrated rollups.
      title: ExperimentResponse
    ValidationErrorLocItems:
      oneOf:
        - type: string
        - type: integer
      title: ValidationErrorLocItems
    ValidationError:
      type: object
      properties:
        loc:
          type: array
          items:
            $ref: '#/components/schemas/ValidationErrorLocItems'
        msg:
          type: string
        type:
          type: string
        input:
          description: Any type
        ctx:
          type: object
          additionalProperties:
            description: Any type
      required:
        - loc
        - msg
        - type
      title: ValidationError
    HTTPValidationError:
      type: object
      properties:
        detail:
          type: array
          items:
            $ref: '#/components/schemas/ValidationError'
      title: HTTPValidationError

```

## Examples



**Request**

```json
{
  "name": "experiment_alpha_2024",
  "agent_name": "NemoAgent",
  "agent_version": "v2.3.1",
  "dataset_name": "ImageNet-2023"
}
```

**Response**

```json
{
  "id": "exp_123e4567-e89b-12d3-a456-426614174000",
  "name": "experiment_alpha_2024",
  "workspace": "research_team_42",
  "agent_name": "NemoAgent",
  "agent_version": "v2.3.1",
  "dataset_name": "ImageNet-2023",
  "experiment_group_id": "group_987f6543-e21b-45d3-b789-123456789abc",
  "dataset_version": "v1.0",
  "source_link": "https://nemo-platform.org/experiments/exp_123e4567-e89b-12d3-a456-426614174000",
  "metadata": {},
  "description": "Initial experiment testing NemoAgent performance on ImageNet-2023 dataset.",
  "summary": "Achieved baseline accuracy of 78.5% with average latency of 120ms.",
  "created_at": "2024-01-15T09:30:00Z",
  "updated_at": "2024-01-15T09:30:00Z",
  "evaluator_names": [
    "accuracy_evaluator",
    "latency_evaluator"
  ],
  "model_names": [
    "resnet50",
    "efficientnet_b0"
  ],
  "aggregate_scores": {},
  "run_count": 15,
  "cost_usd": {
    "sum": 45.75,
    "mean": 3.05,
    "median": 3,
    "p90": 4.5,
    "p95": 5,
    "p99": 6,
    "count": 15
  },
  "latency_ms": {
    "sum": 1800,
    "mean": 120,
    "median": 118,
    "p90": 150,
    "p95": 160,
    "p99": 180,
    "count": 15
  }
}
```

**SDK Code**

```python
import requests

url = "https://host.com/apis/intake/v2/workspaces/workspace/experiments"

payload = {
    "name": "experiment_alpha_2024",
    "agent_name": "NemoAgent",
    "agent_version": "v2.3.1",
    "dataset_name": "ImageNet-2023"
}
headers = {"Content-Type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript
const url = 'https://host.com/apis/intake/v2/workspaces/workspace/experiments';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json'},
  body: '{"name":"experiment_alpha_2024","agent_name":"NemoAgent","agent_version":"v2.3.1","dataset_name":"ImageNet-2023"}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://host.com/apis/intake/v2/workspaces/workspace/experiments"

	payload := strings.NewReader("{\n  \"name\": \"experiment_alpha_2024\",\n  \"agent_name\": \"NemoAgent\",\n  \"agent_version\": \"v2.3.1\",\n  \"dataset_name\": \"ImageNet-2023\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://host.com/apis/intake/v2/workspaces/workspace/experiments")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n  \"name\": \"experiment_alpha_2024\",\n  \"agent_name\": \"NemoAgent\",\n  \"agent_version\": \"v2.3.1\",\n  \"dataset_name\": \"ImageNet-2023\"\n}"

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://host.com/apis/intake/v2/workspaces/workspace/experiments")
  .header("Content-Type", "application/json")
  .body("{\n  \"name\": \"experiment_alpha_2024\",\n  \"agent_name\": \"NemoAgent\",\n  \"agent_version\": \"v2.3.1\",\n  \"dataset_name\": \"ImageNet-2023\"\n}")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://host.com/apis/intake/v2/workspaces/workspace/experiments', [
  'body' => '{
  "name": "experiment_alpha_2024",
  "agent_name": "NemoAgent",
  "agent_version": "v2.3.1",
  "dataset_name": "ImageNet-2023"
}',
  'headers' => [
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://host.com/apis/intake/v2/workspaces/workspace/experiments");
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"name\": \"experiment_alpha_2024\",\n  \"agent_name\": \"NemoAgent\",\n  \"agent_version\": \"v2.3.1\",\n  \"dataset_name\": \"ImageNet-2023\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Content-Type": "application/json"]
let parameters = [
  "name": "experiment_alpha_2024",
  "agent_name": "NemoAgent",
  "agent_version": "v2.3.1",
  "dataset_name": "ImageNet-2023"
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://host.com/apis/intake/v2/workspaces/workspace/experiments")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```