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

# ✨ List review routing rules

GET http://localhost:8000/api/projects/{id}/review-routing-rules/

This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)

List ordered review routing rules for a project.

Reference: https://api.labelstud.io/api-reference/api-reference/projects/review-routing-rules/list

## Authentication

- `Authorization` header (required) (prefixed with ` Token   `) — The token (or API key) must be passed as a request header. You can find your user token on the User Account page in Label Studio. Example: curl [https://label-studio-host/api/projects](https://label-studio-host/api/projects) -H "Authorization: Token \[your-token]"

## Request

### Path parameters

- `id` (integer, required)

### Query parameters

- `ordering` (string, optional) — Which field to use when ordering the results.

## Response

### 200

- `list of ReviewRoutingRule`

## Types

### ReviewRoutingRule

- `created_at` (datetime, required) — Time this rule was created
- `order` (integer, required) — Position in the rule list (rules are evaluated in ascending order)
- `updated_at` (datetime, required) — Last time this rule was updated
- `agreement_threshold` (string, optional, nullable) — Agreement threshold (0..1) compared against the rule operator. Required when operator is set.
- `dimension` (integer, optional, nullable) — Dimension whose agreement is compared. Null => compare overall task agreement. Deleting the dimension cascades to the rule (a dimension-scoped rule has no meaning without its dimension; falling back to overall agreement would silently change the cohort).
- `id` (integer, optional)
- `operator` (enum, optional, nullable) — Comparison operator applied to the agreement value. Null => catch-all rule. * `lt` - \< * `lte` - \<= * `gt` - > * `gte` - >= * `eq` - =
  - Allowed values: `lt`, `lte`, `gt`, `gte`, `eq`
- `sample_rate` (string, optional) — Sample rate (0..1) of matching tasks routed for review. 1 always routes, 0 never routes.

## Examples

**Response**

```json
[
  {
    "created_at": "2024-01-15T09:30:00Z",
    "order": 1,
    "updated_at": "2024-01-15T09:30:00Z",
    "agreement_threshold": "string",
    "dimension": 1,
    "id": 1,
    "operator": "lt",
    "sample_rate": "string"
  }
]
```

**SDK Code**

```python
import requests

url = "http://localhost:8000/api/projects/1/review-routing-rules/"

headers = {"Authorization": "Token  <api_key>"}

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

print(response.json())
```

```javascript
const url = 'http://localhost:8000/api/projects/1/review-routing-rules/';
const options = {method: 'GET', headers: {Authorization: 'Token  <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 := "http://localhost:8000/api/projects/1/review-routing-rules/"

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

	req.Header.Add("Authorization", "Token  <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("http://localhost:8000/api/projects/1/review-routing-rules/")

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

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Token  <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("http://localhost:8000/api/projects/1/review-routing-rules/")
  .header("Authorization", "Token  <api_key>")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'http://localhost:8000/api/projects/1/review-routing-rules/', [
  'headers' => [
    'Authorization' => 'Token  <api_key>',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("http://localhost:8000/api/projects/1/review-routing-rules/");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Token  <api_key>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Authorization": "Token  <api_key>"]

let request = NSMutableURLRequest(url: NSURL(string: "http://localhost:8000/api/projects/1/review-routing-rules/")! 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()
```