Say why a tag is recommended for a document.
The documents behind the recommendation, one group per signal: related (near-duplicates, attachments, cross-references), similar (text), recent (your own recent tagging), folder (tagging in the document's folders) and similar_details (similar metadata). Each group has its total and its first documents. 404 when the tag is not one you could be offered. Needs View Tag Recommendation Explanations, View Tag Recommendations, View Document Metadata, View Tags and read access to the document.
| |
|---|
| Scope | documents:read |
| Asynchronous | No |
| MCP tool | get_document_recommended_tag_explanation |
| Portal permissions | view_tag_recommendation_explanations, view_tag_recommendations, view_document_metadata, view_tags |
Parameters
| Name | In | Type | Required | Description |
|---|
document_id | path | string | Required | |
recommended_tag_id | path | string | Required | |
Docwize-Version | header | string (date) | Optional | |
If-None-Match | header | string | Optional | Answers 304 when the representation is unchanged (resources that publish an ETag). |
Responses
Errors
The problem codes this operation can answer with. Each code links to its page.
Schemas
RecommendedTagExplanation
| Field | Type | Required | Description |
|---|
document_embedded | boolean or null | Required | false when the document is not indexed yet; null when that could not be checked. |
evidence | array of TagEvidenceGroup | Required | Only the signals that found documents carrying the tag. |
recommended_tag_id | string | Required | |
tag_name | string | Required | |
TagEvidenceDocument
| Field | Type | Required | Description |
|---|
date | string or null | Required | The document's date as the Portal formats it. |
description | string or null | Required | |
distance | number or null | Required | Similar documents only: the embedding distance. |
document_id | string | Required | |
document_number | string or null | Required | |
document_type | string or null | Required | |
folder | string or null | Required | The document's folder paths, separated by semicolons. |
score | number or null | Required | Similar documents only: 1 / (1 + distance), higher is more alike. |
tagged_at | string or null | Required | Recent and folder taggings only: when the tag was put on the document. |
TagEvidenceGroup
| Field | Type | Required | Description |
|---|
documents | array of TagEvidenceDocument | Required | |
kind | string | Required | related, similar, recent, folder or similar_details (an open enum). |
total | integer | Required | How many documents the signal found; documents holds the first of them. ≥ -2147483648; ≤ 2147483647 |