> ## Documentation Index
> Fetch the complete documentation index at: https://developers.argosidentity.com/llms.txt
> Use this file to discover all available pages before exploring further.

# GET /analyses/:analysisId/report

> 분석 결과를 PDF 리포트로 다운로드합니다. 분석 상태가 completed일 때만 사용할 수 있습니다.

## Endpoint

```
GET /v1/analyses/{analysisId}/report
```

## 요청

```bash theme={null}
curl -X GET "http://client-omni-api.argosidentity.com/v1/analyses/{analysisId}/report?locale=en&includeRawData=false" \
  -H "x-api-key: your-api-key-here" \
  -o report.pdf
```

## 쿼리 파라미터

| 파라미터             | 타입        | 필수 | 기본값     | 설명                      |
| ---------------- | --------- | -- | ------- | ----------------------- |
| `locale`         | `string`  |    | `en`    | 리포트 언어: `en`, `ko`      |
| `includeRawData` | `boolean` |    | `false` | 리포트에 원시 추출 데이터를 포함할지 여부 |

***

## 응답 (200 OK)

응답은 다음 헤더가 포함된 바이너리 PDF 파일입니다:

| 헤더                    | 값                                                 |
| --------------------- | ------------------------------------------------- |
| `Content-Type`        | `application/pdf`                                 |
| `Content-Disposition` | `attachment; filename="analysis_{id}_report.pdf"` |

<Note>
  응답 본문은 바이너리 PDF 데이터입니다. `curl`의 `-o` 플래그(또는 사용 중인 HTTP 클라이언트의 동등한 옵션)를 사용하여 파일을 디스크에 직접 저장하세요.
</Note>

<Warning>
  리포트는 분석 상태가 `completed`일 때만 사용할 수 있습니다. 다른 상태의 분석에 대해 리포트를 요청하면 `400` 에러가 반환됩니다.
</Warning>

***

## 에러 코드

| Status | Code                   | 설명                       |
| ------ | ---------------------- | ------------------------ |
| 400    | `REPORT_NOT_AVAILABLE` | 분석이 `completed` 상태가 아닙니다 |
| 404    | `ANALYSIS_NOT_FOUND`   | 지정된 분석을 찾을 수 없습니다        |
