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

# Get Rollback Options

> Returns the list of available versions to roll back to for a digital employee.

### **Code Examples**

```http cURL theme={null}
curl --request GET \
  --url 'https://api.tess.im/digital-employees/123/rollback-options?limit=5' \
  --header 'Authorization: Bearer YOUR_API_KEY' \
  --header 'x-workspace-id: 10'
```

```json Node.js theme={null}
const axios = require('axios');

const config = {
  method: 'get',
  url: 'https://api.tess.im/digital-employees/123/rollback-options',
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY',
    'x-workspace-id': '10'
  },
  params: {
    limit: 5
  }
};

try {
  const response = await axios(config);
  console.log(response.data);
} catch (error) {
  console.error(error);
}
```

```python Python theme={null}
import requests

url = "https://api.tess.im/digital-employees/123/rollback-options"
headers = {
    "Authorization": "Bearer YOUR_API_KEY",
    "x-workspace-id": "10"
}
params = {
    "limit": 5
}

response = requests.get(url, headers=headers, params=params)
print(response.json())
```

```php PHP theme={null}
<?php
$curl = curl_init();

curl_setopt_array($curl, [
  CURLOPT_URL => "https://api.tess.im/digital-employees/123/rollback-options?limit=5",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "Authorization: Bearer YOUR_API_KEY",
    "x-workspace-id: 10"
  ]
]);

$response = curl_exec($curl);
curl_close($curl);
echo $response;
```

```java Java theme={null}
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;

HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("https://api.tess.im/digital-employees/123/rollback-options?limit=5"))
    .header("Authorization", "Bearer YOUR_API_KEY")
    .header("x-workspace-id", "10")
    .GET()
    .build();

HttpResponse<String> response = client.send(request,
    HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
```

```go Go theme={null}
package main

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

func main() {
    client := &http.Client{}
    req, _ := http.NewRequest("GET", "https://api.tess.im/digital-employees/123/rollback-options?limit=5", nil)
    req.Header.Add("Authorization", "Bearer YOUR_API_KEY")
    req.Header.Add("x-workspace-id", "10")
    resp, _ := client.Do(req)
    defer resp.Body.Close()
    body, _ := ioutil.ReadAll(resp.Body)
    fmt.Println(string(body))
}
```

```jsonnet .NET theme={null}
using System.Net.Http;

using var client = new HttpClient();
client.DefaultRequestHeaders.Add("Authorization", "Bearer YOUR_API_KEY");
client.DefaultRequestHeaders.Add("x-workspace-id", "10");

var response = await client.GetAsync(
    "https://api.tess.im/digital-employees/123/rollback-options?limit=5"
);
Console.WriteLine(await response.Content.ReadAsStringAsync());
```

```ruby Ruby theme={null}
require 'uri'
require 'net/http'

uri = URI('https://api.tess.im/digital-employees/123/rollback-options')
uri.query = URI.encode_www_form({ limit: 5 })
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true

request = Net::HTTP::Get.new(uri)
request['Authorization'] = 'Bearer YOUR_API_KEY'
request['x-workspace-id'] = '10'

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

### **Headers**

> [!NOTE]
>
> Pass your API key as a Bearer token in the `Authorization` header: `Authorization: Bearer YOUR_API_KEY`.

**x-workspace-id** `integer`

ID of the workspace. If not provided, the user's selected workspace will be used.

### **Path Parameters**

**employeeId** `integer` *required*

ID of the digital employee whose rollback options you want to retrieve.

### **Query Parameters**

**limit** `integer`

Number of versions to return. Default: `5`. Min: `1`. Max: `20`.

### **Response**

```json theme={null}
{
  "current_version": 8,
  "items": [
    {
      "version": 7,
      "change_source": "update",
      "changed_fields": ["name", "heartbeat_cron"],
      "changed_by": { "id": 1, "name": "Alice" },
      "created_at": "2026-06-24T17:00:00Z"
    },
    {
      "version": 6,
      "change_source": "update",
      "changed_fields": ["system_prompt_override"],
      "changed_by": { "id": 1, "name": "Alice" },
      "created_at": "2026-06-23T10:00:00Z"
    }
  ]
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.