Download document content in Dynatrace with the Document API, returning the latest content or a requested snapshot with the original content type.
| GET | SaaS | https://{your-environment-id}.apps.dynatrace.com/platform/document/v1/documents/{id}/content |
You pass the document id and can optionally use filename, snapshot-version, and admin-access. The response returns the document content, and the Content-Type header matches the value used during upload.
To execute this request, you need a platform token or OAuth access token with document:documents:read scope. To learn how to obtain and use it, see Tokens and authentication.
| Parameter | Type | Description | In | Required |
|---|---|---|---|---|
| id | string | System-generated or user-given id of a document. | path | Required |
| filename | string | The optional | query | Optional |
| snapshot-version | integer | Snapshot version, to be used if you want to access a snapshot of the document. | query | Optional |
| admin-access | boolean | Indicates whether the operation should be performed with elevated permissions - additionally requires document:documents:admin. If provided, the user effectively operates as owner of all documents. This isn't supported for ready-made documents. | query | Optional |
| Code | Description |
|---|---|
| 200 | - |
| 401 | - |
| 403 | - |
| 404 | - |
| 500 | - |
| 503 | - |
| default | - |