Try it free

Search for relevant documents

  • Latest Dynatrace
  • Reference
  • Published Oct 13, 2026

Search relevant documents in Dynatrace with the Davis CoPilot Document Search API using search texts, collections, and optional excluded document IDs.

POSTSaaShttps://{your-environment-id}.apps.dynatrace.com/platform/davis/copilot/v1/skills/document-search:execute

Overview

Allows to query documents (Dashboards, Notebooks, …) relevant for your input. The payload is a JSON dictionary provided from the response. Please review the examples for the correct payload formatting.

Parameters:

  • texts: List of search strings.
  • collections: List of document collections to search in.
  • exclude (Optional): List of document ids to exclude from the search.

Please note, this endpoint is in preview and is subject to the Dynatrace preview conditions, as linked in the overview.

Authentication

To execute this request, you need a platform token or OAuth access token with davis-copilot:document-search:execute scope. To learn how to obtain and use it, see Tokens and authentication.

Parameters

ParameterTypeDescriptionInRequired
bodyDocumentSearchRequest-bodyRequired

Request body objects

The DocumentSearchRequest object

ElementTypeDescriptionRequired
textsstring[]-Required
collectionsstring[]

The name of the document collections corresponding to the names in the vectorstore.

Required
excludestring[]

Must be a uuid hash matching a document (for now, no patterns/wildcards)

Optional

Request body JSON model

This is a model of the request body, showing the possible elements. It has to be adjusted for usage in an actual request.

{
"texts": [
"search-string 1",
"search-string 2",
"DQL1",
"DQL2"
],
"collections": [
"documentCollection 1",
"documentCollection 2",
"documentCollection 3"
],
"exclude": [
"documentId1",
"documentId2",
"documentId3"
]
}

Response

Response codes

CodeTypeDescription
200DocumentSearchResponse

List of documents with their relevance scores

4XXClientErrorResponse-
5XXInternalErrorResponse-

Response body objects

The DocumentSearchResponse object

ElementTypeDescription
messageTokenstring

Must be a random uuid hash to identify the response

resultsScoredDocument[]-
statusStatus-
The element can hold these values
  • SUCCESSFUL
  • SUCCESSFUL_WITH_WARNINGS
  • FAILED

The ScoredDocument object

ElementTypeDescription
documentIdstring-
relevanceScorenumber-
documentMetadataDocumentMetadata-

The DocumentMetadata object

ElementTypeDescription
idstring-
externalIdstring

Is deprecated and will be removed. For now, it is a copy of id in order to remain backwards compatible.

namestring-
typestring

Type of document (notebook or dashboard)

descriptionstring

Users description of the document

versionstring

Starting at 1, every modification of the document to either metadata or content increases the version number

The Status object

The ClientErrorResponse object

ElementTypeDescription
errorClientErrorResponseObject-

The ClientErrorResponseObject object

ElementTypeDescription
codeinteger-
messagestring-

Response body JSON models

{
"messageToken": "<some UUID hash>",
"results": [
{
"documentId": "<some UUID hash>",
"relevanceScore": 0.9999,
"documentMetadata": {
"id": "<some UUID hash>",
"externalId": "<some UUID hash>",
"name": "Name of document",
"type": "notebook",
"description": "This notebook analyses problems",
"version": "<some UUID hash>"
}
}
],
"status": "SUCCESSFUL"
}
{
"error": {
"code": 400,
"message": "Bad Request"
}
}
Related tags
Platform APIDynatrace PlatformAI Observability