> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://www.comet.com/docs/opik/llms.txt.

# Get why rules have not scored a trace

GET http://localhost:5173/api/v1/private/automations/evaluators/traces/{trace_id}/scoring-statuses

Get, per rule, why an experiment trace has no score from it yet: retrying, failed or skipped. A rule with no entry has scored the trace or not reported on it

Reference: https://www.comet.com/docs/opik/reference/rest-api/automation-rule-evaluators/get-online-scoring-statuses

## Servers

- `http://localhost:5173/api` (Local server, default)
- `https://www.comet.com/opik/api` (Opik Cloud)

## Request

### Path parameters

- `trace_id` (string, required)

## Response

### 200

Online scoring statuses

- `content` (list of OnlineScoringStatus, optional)

## Types

### OnlineScoringStatus

- `rule_id` (string, optional)
- `suite_assertion` (boolean, optional) — Set for a test suite's assertion judge, whose rule id is not stable
- `state` (enum, optional)
  - Allowed values: `retrying`, `failed`, `skipped`
- `reason` (enum, optional)
  - Allowed values: `not_configured`, `authentication`, `not_found`, `rejected`, `refused`, `rate_limited`, `timeout`, `unreachable`, `server_error`, `no_score`, `unresolved_arguments`, `other`
- `attempt` (integer, optional) — The failed delivery while retrying; 0 otherwise
- `max_attempts` (integer, optional) — Deliveries before giving up while retrying; 0 otherwise
- `updated_at` (datetime, optional)

## Examples

**Response**

```json
{
  "content": [
    {
      "rule_id": "string",
      "suite_assertion": true,
      "state": "retrying",
      "reason": "not_configured",
      "attempt": 1,
      "max_attempts": 1,
      "updated_at": "2024-01-15T09:30:00Z"
    }
  ]
}
```

**SDK Code**

```python
import requests

url = "http://localhost:5173/api/v1/private/automations/evaluators/traces/trace_id/scoring-statuses"

response = requests.get(url)

print(response.json())
```

```javascript
const url = 'http://localhost:5173/api/v1/private/automations/evaluators/traces/trace_id/scoring-statuses';
const options = {method: 'GET'};

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:5173/api/v1/private/automations/evaluators/traces/trace_id/scoring-statuses"

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

	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:5173/api/v1/private/automations/evaluators/traces/trace_id/scoring-statuses")

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

request = Net::HTTP::Get.new(url)

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:5173/api/v1/private/automations/evaluators/traces/trace_id/scoring-statuses")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'http://localhost:5173/api/v1/private/automations/evaluators/traces/trace_id/scoring-statuses');

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

```csharp
using RestSharp;

var client = new RestClient("http://localhost:5173/api/v1/private/automations/evaluators/traces/trace_id/scoring-statuses");
var request = new RestRequest(Method.GET);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "http://localhost:5173/api/v1/private/automations/evaluators/traces/trace_id/scoring-statuses")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

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