# Report APIs

Use APIs to pull reports (signed-off and draft) and case data, including the subject, sample, and report details. The reports are in a PDF output, and case data is in a JSON output.

## Pull Signed-off and Draft Report PDFs

Use this API to pull a PDF of the report for a case. If the report is a draft (e.g., case status is not "Report(s) Signed-Off"), the PDF will include a watermark stating "DRAFT".

1. From the API page, navigate to the DrsPullController section.
2. Select **GET /drs/{apiVersion}/draftreport/case/{caseId}/reports/{reportId}/pdf**
3. In the Parameters table, update the description for the following required parameters:
   * **apiVersion** — This value should be `v1`.
   * **caseId** — The case ID for the case. To get this information, open the case in Connected Insights and copy the case ID from the URL (for example, `https://{domain}.connectedinsights.illumina.com/interpretation/{caseId}/reports/{reportId}/draft-report`).
   * **reportId** — The ID associated with the report. To get this information, open the case in Connected Insights, go to the **Report** page, and copy the report ID from the URL (for example, `https://{domain}.connectedinsights.illumina.com/interpretation/{caseId}/reports/{reportId}/draft-report`).
4. \[Optional]Update the description for the following optional parameters:
   * **Accept-Language** — The applicable language for the data.
   * **reportLanguage** — The applicable language for the generated report.
5. Select **Execute**.

## Pull Case Data

Use this API to pull case data in JSON format. Case data includes subject, sample, and report details. If the report is a draft (e.g., case status is not "Report(s) Signed-Off"), the JSON will include the information in the draft report.

1. From the API page, navigate to the DrsPullController section.
2. Select **GET /drs/{apiVersion}/draftreport/case/{caseId}/reportjson**.
3. In the Parameters table, update the description for the following required parameters:
   * **apiVersion** — This value should be `v1`.
   * **caseId** — The case ID for the case. To get this information, open the case in Connected Insights and copy the case ID from the URL (for example, `https://{domain}.connectedinsights.illumina.com/interpretation/{caseId}/reports/{reportId}/draft-report`).
4. \[Optional] Update the description for Accept-Language with the applicable language for the data.
   * **Accept-Language** — The applicable language for the data.
5. Select **Execute**.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.connected.illumina.com/connected-insights/resources-and-references/a-introduction/a-report.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
