> This page is for Voice Agents.

> Sarvam Voice Agents (Samvaad) is a voice AI agent platform for Indian languages: build, test and deploy AI calling agents on your own phone numbers, from ₹3 a minute. Start here: https://docs.sarvam.ai/voice-agents/why-voice-agents.
> For clean Markdown of any page, append `.md` to the page URL.
> For a complete documentation index, see https://docs.sarvam.ai/llms.txt. For a section index, append `/llms.txt` to any section URL (for example https://docs.sarvam.ai/voice-agents/llms.txt).
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.sarvam.ai/_mcp/server.

# List experiments

GET https://apps.sarvam.ai/api/scheduling/v1/orgs/{org_id}/workspaces/{workspace_id}/experiments

List experiments in the workspace.

Reference: https://docs.sarvam.ai/voice-agents/api/experiments/list

## Request

### Path parameters

- `org_id` (string, required)
- `workspace_id` (string, required)

### Query parameters

- `offset` (integer, optional, default: 0) — Number of records to skip
- `limit` (integer, optional, default: 10) — Number of records to return (max 100)
- `sort_by` (string, optional, nullable, default: created_at) — Field to sort by
- `sort_order` (string, optional, nullable, default: desc) — Sort order (asc or desc)

### Headers

- `X-API-Key` (string, required) — Your workspace API key.

## Response

### 200

Successful Response

- `items` (list of ExperimentResponse, required) — A/B tests on this page
- `total` (integer, required) — Total number of A/B tests matching the query
- `limit` (integer, required) — Maximum number of items per page
- `offset` (integer, required) — Number of items skipped
- `next_page_uri` (string, optional, nullable) — URI to fetch the next page, or null if this is the last page
- `prev_page_uri` (string, optional, nullable) — URI to fetch the previous page, or null if this is the first page

## Types

### ExperimentResponse

An experiment and its variants.

- `experiment_id` (string, required) — Id to pass as app_config.experiment_id when creating a campaign.
- `name` (string, required)
- `app_type` (enum, required)
  - Allowed values: `agent`
- `variants` (list of ExperimentVariant, required)
- `created_by` (string, required)
- `created_at` (datetime, required)
- `updated_at` (datetime, required)
- `description` (string, optional, nullable)
- `updated_by` (string, optional, nullable)

### ExperimentVariant

One arm of an A/B test, including the server-minted variant id.

- `variant_id` (string, required) — Server-minted id. Returned on create and sent on the call webhook.
- `name` (string, required) — Variant name. Unique within the A/B test. Letters, digits, spaces, hyphens, and underscores.
- `traffic_percentage` (integer, required) — Share of attempts, from 1 to 100. All variants must sum to 100.
- `app_config` (VariantAppConfig, required) — Agent version this variant runs.

### VariantAppConfig

The agent version a variant runs. Dial rate, numbers, and retries stay on the campaign.

- `app_id` (string, required) — Agent under test. Every variant in one A/B test must use the same app_id.
- `app_version` (integer, required) — Committed version of that agent. Versions must differ across variants.

## Examples

**Response**

```json
{
  "items": [
    {
      "experiment_id": "greeting-te-9f1c2a7b-4d3e",
      "name": "greeting-test",
      "app_type": "agent",
      "variants": [
        {
          "variant_id": "control-1a2b3c4d-5e6f",
          "name": "control",
          "traffic_percentage": 50,
          "app_config": {
            "app_id": "payment-reminder-agent",
            "app_version": 3
          }
        }
      ],
      "created_by": "user@company.com",
      "created_at": "2026-10-28T08:00:00Z",
      "updated_at": "2026-10-28T08:00:00Z",
      "description": "string",
      "updated_by": "string"
    }
  ],
  "total": 1,
  "limit": 10,
  "offset": 0,
  "next_page_uri": "string",
  "prev_page_uri": "string"
}
```

**SDK Code**

```python
import requests

url = "https://apps.sarvam.ai/api/scheduling/v1/orgs/org_id/workspaces/workspace_id/experiments"

headers = {"X-API-Key": "<your-api-key>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript
const url = 'https://apps.sarvam.ai/api/scheduling/v1/orgs/org_id/workspaces/workspace_id/experiments';
const options = {method: 'GET', headers: {'X-API-Key': '<your-api-key>'}};

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"
	"net/http"
	"io"
)

func main() {

	url := "https://apps.sarvam.ai/api/scheduling/v1/orgs/org_id/workspaces/workspace_id/experiments"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("X-API-Key", "<your-api-key>")

	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://apps.sarvam.ai/api/scheduling/v1/orgs/org_id/workspaces/workspace_id/experiments")

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

request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<your-api-key>'

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.get("https://apps.sarvam.ai/api/scheduling/v1/orgs/org_id/workspaces/workspace_id/experiments")
  .header("X-API-Key", "<your-api-key>")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://apps.sarvam.ai/api/scheduling/v1/orgs/org_id/workspaces/workspace_id/experiments', [
  'headers' => [
    'X-API-Key' => '<your-api-key>',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://apps.sarvam.ai/api/scheduling/v1/orgs/org_id/workspaces/workspace_id/experiments");
var request = new RestRequest(Method.GET);
request.AddHeader("X-API-Key", "<your-api-key>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["X-API-Key": "<your-api-key>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://apps.sarvam.ai/api/scheduling/v1/orgs/org_id/workspaces/workspace_id/experiments")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

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()
```