Try it free

Get document metadata

  • Latest Dynatrace
  • Reference
  • Published Oct 13, 2026

Retrieve document metadata in Dynatrace with the Document API, including snapshot metadata when you request a specific version.

GETSaaShttps://{your-environment-id}.apps.dynatrace.com/platform/document/v1/documents/{id}/metadata

Overview

You pass the document id and can optionally use snapshot-version, admin-access, and add-fields. The response returns the document metadata, or the metadata of the requested snapshot when you specify a snapshot version.

Authentication

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.

Parameters

ParameterTypeDescriptionInRequired
idstring

System-generated or user-given id of a document.

pathRequired
snapshot-versioninteger

Snapshot version, to be used if you want to access a snapshot of the document.

queryOptional
admin-accessboolean

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.

queryOptional
add-fieldsstring

Comma-separated list of field names that are added to the default set of fields. You can include the following additional fields:

  • userContext.lastAccessedTime
  • userContext.isFavorite
  • modificationInfo.lastModifyingAppId
queryOptional

Response

Response codes

CodeDescription
200-
401-
403-
404-
500-
503-
default-
Related tags
Platform APIDynatrace Platform