---
title: "GET /applications/{applicationId}/index/{indexId}/documents/{documentId}/content"
method: GET
path: "/applications/{applicationId}/index/{indexId}/documents/{documentId}/content"
---

# GET /applications/{applicationId}/index/{indexId}/documents/{documentId}/content

`GET /applications/{applicationId}/index/{indexId}/documents/{documentId}/content`

Retrieves the content of a document that was ingested into Amazon Q Business. This API validates user authorization against document ACLs before returning a pre-signed URL for secure document access. You can download or view source documents referenced in chat responses through the URL.

## Path parameters

- `applicationId` string, required
- `indexId` string, required
- `documentId` string, required

## Query parameters

- `dataSourceId` string
- `outputFormat` 'RAW' | 'EXTRACTED'

## Response `200`

Success

- GetDocumentContentResponse
  - `presignedUrl` string, required — A pre-signed URL that provides temporary access to download the document content directly from Amazon Q Business. The URL expires after 5 minutes for security purposes. This URL is generated only after successful ACL validation.
  - `mimeType` string, required — The MIME type of the document content. When outputFormat is RAW, this corresponds to the original document's MIME type (e.g., application/pdf, text/plain, application/vnd.openxmlformats-officedocument.wordprocessingml.document). When outputFormat is EXTRACTED, the MIME type is always application/json.

## Other responses

- `480` — InternalServerException
- `481` — ResourceNotFoundException
- `482` — ThrottlingException
- `483` — ValidationException
- `484` — AccessDeniedException

---

[API](https://skmtc.net/aws/apis/qbusiness.md) · [All operations](https://skmtc.net/aws/apis/qbusiness/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/qbusiness/versions/82966d6c4053/schema)
