> This page is for Remediation Orchestrator.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/remediation-orchestrator/llms.txt.

# List run-level artifacts for a screen test orchestration

GET //api/v1/screen-test/runs/{workflowID}/artifacts

Returns the run-level artifacts declared by the v2 results of one orchestration, oldest run first and in the order the producer declared them within a run. artifact\_id is the identifier /api/v1/screen-test/run-artifacts/\{artifactID}/download-url takes. It is a row ID that is re-minted when a run's results are re-ingested, so a stale ID answers 404 there; re-list rather than conclude the artifact is gone. producer\_artifact\_id is the UUID the results payload assigned, and no endpoint accepts it. result\_id and test\_name identify the test that first referenced the artifact and are null for artifacts no test claimed. name and type are producer-supplied; name is reduced to a bare file name server-side, and when nothing usable remains it is reported as artifact- followed by the artifact\_id. downloadable is false while the artifact's location is not yet an object-store URI, and download-url answers 404 for it. 1.0.x results have no artifacts concept and contribute no rows.

Reference: https://docs.nvidia.com/remediation-orchestrator/reference/rest-api/screen-test/list-run-level-artifacts-for-a-screen-test-orchestration

## Request

### Path parameters

- `workflowID` (string, required) — Orchestration workflow ID

### Query parameters

- `page` (integer, optional, default: 1) — 1-based page number
- `page_size` (integer, optional, default: 100) — Artifacts per page (1-200)

## Response

### 200

OK

- `data` (list of runArtifactResponse, optional)
- `has_more` (boolean, optional)
- `page` (integer, optional)
- `page_size` (integer, optional)
- `total_count` (integer, optional)

## Errors

### 400 Bad Request Error

Bad Request

- `string`

### 404 Not Found Error

Not Found

- `string`

### 500 Internal Server Error

Internal Server Error

- `string`

### 503 Service Unavailable Error

Service Unavailable

- `string`

## Types

### runArtifactResponse

- `artifact_id` (integer, optional)
- `child_run_id` (string, optional)
- `created_at` (string, optional)
- `downloadable` (boolean, optional)
- `name` (string, optional)
- `producer_artifact_id` (string, optional)
- `result_id` (integer, optional, nullable)
- `summary_id` (integer, optional)
- `test_name` (string, optional, nullable)
- `type` (string, optional)

## Examples

**Response**

```json
{
  "data": [
    {
      "artifact_id": 1,
      "child_run_id": "string",
      "created_at": "string",
      "downloadable": true,
      "name": "string",
      "producer_artifact_id": "string",
      "result_id": 1,
      "summary_id": 1,
      "test_name": "string",
      "type": "string"
    }
  ],
  "has_more": true,
  "page": 1,
  "page_size": 1,
  "total_count": 1
}
```

**SDK Code**

```python
import requests

url = "https://api.example.com/api/v1/screen-test/runs/workflowID/artifacts"

response = requests.get(url)

print(response.json())
```

```javascript
const url = 'https://api.example.com/api/v1/screen-test/runs/workflowID/artifacts';
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 := "https://api.example.com/api/v1/screen-test/runs/workflowID/artifacts"

	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("https://api.example.com/api/v1/screen-test/runs/workflowID/artifacts")

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

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("https://api.example.com/api/v1/screen-test/runs/workflowID/artifacts")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.example.com/api/v1/screen-test/runs/workflowID/artifacts');

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

```csharp
using RestSharp;

var client = new RestClient("https://api.example.com/api/v1/screen-test/runs/workflowID/artifacts");
var request = new RestRequest(Method.GET);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "https://api.example.com/api/v1/screen-test/runs/workflowID/artifacts")! 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()
```