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

# Benchmark Tradeoff At Scale Route

GET https://app.termina.ai/api/v1/group/{group_id}/deal/{deal_id}/data/benchmark/tradeoff-at-scale/{category}

Get tradeoff models for a specific category at a given revenue scale.

Tradeoff models show the relationship between two metrics (e.g., growth vs. margin)
for companies at a similar revenue scale.

Reference: https://docs.termina.ai/api-reference/data/benchmark/get-tradeoff-at-scale

## Authentication

- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Servers

- `https://app.termina.ai` (Production server, default)
- `https://app.termina.dev` (Development server)
- `http://localhost:8000` (Local development server)

## Request

### Path parameters

- `group_id` (integer, required)
- `deal_id` (integer, required)
- `category` (string, required)

### Query parameters

- `revenue` (double, required) — Annualized revenue scale for which to obtain benchmarks
- `model` (list of string, optional, nullable)

## Response

### 200

Successful Response

- `map from string to TradeoffModel`

## Errors

### 422 Unprocessable Entity Error

Validation Error

- `detail` (list of ValidationError, optional)

## Types

### TradeoffModel

- `scale` (Scale, required) — Describes the revenue range of the data whose points represent the trade off.
- `raw_data` (list of map from string to double, required) — Raw data points used to generate the tradeoff model. Each dictionary contains exactly two key-value pairs representing the x-metric and y-metric being compared. The keys are dynamic metric names that vary by model - for example, '12m_growth_vs_margin' uses 'quarterly_operating_margin' (x) and 'cmgr12' (y). Use the /data/benchmark/metadata/models endpoint to see which columns each model uses.
- `discarded_raw_data` (list of map from string to double, required) — Additional raw data points which were not used in the model fit due to outlier status. Contains the same metric keys as raw_data. These points were excluded to prevent skewing the tradeoff distribution.
- `areas` (list of Area, required) — Areas representing the confidence regions of the tradeoff model. The x-y coordinates describe an elliptical surface containing (1 - alpha) share of the data points, showing the typical tradeoff distribution at this revenue scale.

### ValidationError

- `loc` (list of ValidationErrorLocItems, required)
- `msg` (string, required)
- `type` (string, required)
- `input` (any, optional)
- `ctx` (ValidationErrorCtx, optional)

### Scale

- `metric` (string, required) — The metric whose scale is used to subset the benchmark data.
- `low` (double, required) — Low end of the scale.
- `high` (double, required) — High end of the scale.

### Area

- `alpha` (double, required) — Quantile significance level for the area, which represents the share of data points expected to lie beyond the band.
- `x` (list of double, required) — List of x values for the area.
- `y` (list of double, required) — List of y values for the area.

### ValidationErrorLocItems

### ValidationErrorCtx

## Examples

**Response**

```json
{
  "12m_growth_vs_margin": {
    "scale": {
      "metric": "rolling_3m_annualized_revenue",
      "low": 100000,
      "high": 1000000
    },
    "raw_data": [
      {
        "cmgr12": 0.075,
        "quarterly_operating_margin": -0.5
      },
      {
        "cmgr12": 0.08,
        "quarterly_operating_margin": -0.1
      }
    ],
    "discarded_raw_data": [
      {
        "cmgr12": 0.075,
        "quarterly_operating_margin": -10
      }
    ],
    "areas": [
      {
        "alpha": 0.2,
        "x": [
          -0.1,
          0,
          0.1
        ],
        "y": [
          0.05,
          0.025,
          0.06
        ]
      }
    ]
  }
}
```

**SDK Code**

```python
import requests

url = "https://app.termina.ai/api/v1/group/1/deal/1/data/benchmark/tradeoff-at-scale/category"

querystring = {"revenue":"1.1"}

headers = {"Authorization": "Bearer <token>"}

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

print(response.json())
```

```javascript
const url = 'https://app.termina.ai/api/v1/group/1/deal/1/data/benchmark/tradeoff-at-scale/category?revenue=1.1';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

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://app.termina.ai/api/v1/group/1/deal/1/data/benchmark/tradeoff-at-scale/category?revenue=1.1"

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

	req.Header.Add("Authorization", "Bearer <token>")

	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://app.termina.ai/api/v1/group/1/deal/1/data/benchmark/tradeoff-at-scale/category?revenue=1.1")

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

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

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://app.termina.ai/api/v1/group/1/deal/1/data/benchmark/tradeoff-at-scale/category?revenue=1.1")
  .header("Authorization", "Bearer <token>")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://app.termina.ai/api/v1/group/1/deal/1/data/benchmark/tradeoff-at-scale/category?revenue=1.1', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://app.termina.ai/api/v1/group/1/deal/1/data/benchmark/tradeoff-at-scale/category?revenue=1.1");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://app.termina.ai/api/v1/group/1/deal/1/data/benchmark/tradeoff-at-scale/category?revenue=1.1")! 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()
```