---
title: "Export scan results"
method: GET
path: "/scans/{id}/results"
tags: ["Scans"]
---

# Export scan results

`GET /scans/{id}/results`

## Request

- Base URL: `https://app.codethreat.com/api/v1`
- URL: `https://app.codethreat.com/api/v1/scans/{id}/results`
- Auth: API key in header `X-API-Key`

Export scan results in various formats (JSON, SARIF, CSV, XML, JUnit)

## Path parameters

- `id` string, required

## Query parameters

- `format` 'json' | 'sarif' | 'csv' | 'xml' | 'junit'
- `severity` string[]
- `includeFixed` boolean
- `includeSuppressed` boolean

## Response `200`

Successful response

- object

---

[API](https://skmtc.dev/codethreat/apis/codethreat-api.md) - [All operations](https://skmtc.dev/codethreat/apis/codethreat-api/llms.txt) - [OpenAPI document](https://skmtc.dev/codethreat/apis/codethreat-api/revisions/18f11fecbb30?raw)
