Skip to main content
GET
/
v1
/
evals
/
workbench-setups
/
{setup_id}
Get Workbench Setup
curl --request GET \
  --url https://api.bland.ai/v1/evals/workbench-setups/{setup_id} \
  --header 'authorization: <authorization>'
import requests

url = "https://api.bland.ai/v1/evals/workbench-setups/{setup_id}"

headers = {"authorization": "<authorization>"}

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

print(response.text)
const options = {method: 'GET', headers: {authorization: '<authorization>'}};

fetch('https://api.bland.ai/v1/evals/workbench-setups/{setup_id}', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
  CURLOPT_URL => "https://api.bland.ai/v1/evals/workbench-setups/{setup_id}",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "authorization: <authorization>"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
package main

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

func main() {

	url := "https://api.bland.ai/v1/evals/workbench-setups/{setup_id}"

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

	req.Header.Add("authorization", "<authorization>")

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

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

	fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://api.bland.ai/v1/evals/workbench-setups/{setup_id}")
  .header("authorization", "<authorization>")
  .asString();
require 'uri'
require 'net/http'

url = URI("https://api.bland.ai/v1/evals/workbench-setups/{setup_id}")

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

request = Net::HTTP::Get.new(url)
request["authorization"] = '<authorization>'

response = http.request(request)
puts response.read_body
{
  "errors": null,
  "data": {
    "setup": {
      "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "org_id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
      "key": "onboarding-quality-check",
      "name": "Onboarding Quality Check",
      "description": "Evaluates tone, accuracy, and resolution rate across onboarding calls.",
      "current_version_id": "c3d4e5f6-a7b8-9012-cdef-123456789012",
      "active_version_id": "d4e5f6a7-b8c9-0123-defa-234567890123",
      "metadata": {},
      "created_at": "2026-03-15T08:00:00.000Z",
      "updated_at": "2026-05-20T14:00:00.000Z",
      "deleted_at": null
    },
    "current_version": {
      "id": "c3d4e5f6-a7b8-9012-cdef-123456789012",
      "org_id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
      "workbench_setup_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "version_number": 4,
      "name": "Onboarding Quality Check",
      "description": "Evaluates tone, accuracy, and resolution rate across onboarding calls.",
      "state": "editable",
      "attached_agents": [
        {
          "eval_agent_id": "e5f6a7b8-c9d0-1234-efab-345678901234",
          "eval_agent_version_id": "f6a7b8c9-d0e1-2345-fabc-456789012345",
          "weight": 50,
          "target_level_keys": ["good", "excellent"]
        }
      ],
      "pass_threshold_pct": 80,
      "run_mode": "audio",
      "default_test_config_id": null,
      "default_call_ids": [],
      "created_from_version_id": "d4e5f6a7-b8c9-0123-defa-234567890123",
      "created_by": "9a8b7c6d-5e4f-3210-9876-543210fedcba",
      "created_at": "2026-05-20T14:00:00.000Z",
      "updated_at": "2026-05-20T14:00:00.000Z"
    }
  }
}

Headers

authorization
string
required
Your API key for authentication.

Path Parameters

setup_id
string
required
The ID of the workbench setup to retrieve.

Response

data
object
An object containing the setup and its current draft version.
errors
null
null on success.
{
  "errors": null,
  "data": {
    "setup": {
      "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "org_id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
      "key": "onboarding-quality-check",
      "name": "Onboarding Quality Check",
      "description": "Evaluates tone, accuracy, and resolution rate across onboarding calls.",
      "current_version_id": "c3d4e5f6-a7b8-9012-cdef-123456789012",
      "active_version_id": "d4e5f6a7-b8c9-0123-defa-234567890123",
      "metadata": {},
      "created_at": "2026-03-15T08:00:00.000Z",
      "updated_at": "2026-05-20T14:00:00.000Z",
      "deleted_at": null
    },
    "current_version": {
      "id": "c3d4e5f6-a7b8-9012-cdef-123456789012",
      "org_id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
      "workbench_setup_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "version_number": 4,
      "name": "Onboarding Quality Check",
      "description": "Evaluates tone, accuracy, and resolution rate across onboarding calls.",
      "state": "editable",
      "attached_agents": [
        {
          "eval_agent_id": "e5f6a7b8-c9d0-1234-efab-345678901234",
          "eval_agent_version_id": "f6a7b8c9-d0e1-2345-fabc-456789012345",
          "weight": 50,
          "target_level_keys": ["good", "excellent"]
        }
      ],
      "pass_threshold_pct": 80,
      "run_mode": "audio",
      "default_test_config_id": null,
      "default_call_ids": [],
      "created_from_version_id": "d4e5f6a7-b8c9-0123-defa-234567890123",
      "created_by": "9a8b7c6d-5e4f-3210-9876-543210fedcba",
      "created_at": "2026-05-20T14:00:00.000Z",
      "updated_at": "2026-05-20T14:00:00.000Z"
    }
  }
}